// // MyTube.h // B-spline // // Created by Alexander Powell on Wed Aug 28 2002. // Copyright (c) 2002 __MyCompanyName__. All rights reserved. // #import #import #import #import #import #import #import #import #import "MyPoint.h" #import "MyPolygon.h" #import "Subdivider.h" @interface MyTube : NSObject { NSMutableArray *points; // Points contains all points for the tube, in order of poly. NSMutableArray *normals; // Contains all normals, with a direct correspondence to the points. int pointsPerPoly; } - (MyTube*)subdivideWith:(int)subdivisionType; - (void)drawSelf; - (void)drawSolid; - (void)loadFromFile:(NSString *)filename; - (void)setPoints:(NSMutableArray *)newPoints; - (void)setPointsPerPoly:(int)newPointsPerPoly; @end