c8445aeb9e
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2767 127b21dd-08f5-0310-b4b7-95ae10353056
28 lines
708 B
Objective-C
28 lines
708 B
Objective-C
#import "icosmesh.h"
|
|
|
|
@class JAVertexSet, JAIcosTriangle;
|
|
|
|
|
|
@interface JAIcosMesh: NSObject
|
|
{
|
|
@private
|
|
JAVertexSet *_vertexSet;
|
|
NSMutableArray *_indices;
|
|
NSUInteger _maxIndex;
|
|
}
|
|
|
|
// Vertex set may optionally be specified, so one can be shared between multiple meshes.
|
|
+ (id) meshWithVertexSet:(JAVertexSet *)vertexSet;
|
|
- (id) initWithVertexSet:(JAVertexSet *)vertexSet;
|
|
|
|
@property (readonly) JAVertexSet *vertexSet;
|
|
@property (readonly) NSUInteger faceCount;
|
|
@property (readonly) NSUInteger maxIndex;
|
|
|
|
- (void) addTriangle:(JAIcosTriangle *)triangle;
|
|
- (void) addTriangles:(NSArray *)triangles;
|
|
|
|
- (NSArray *) indexArray; // NSArray of faceCount * 3 NSNumbers, being indices into vertexSet.
|
|
|
|
@end
|