-
Notifications
You must be signed in to change notification settings - Fork 0
/
aeroCADLoftedSurf.h
57 lines (46 loc) · 1.39 KB
/
aeroCADLoftedSurf.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
//
// aeroCADLoftedSurf.h
// aeroCAD
//
// Created by Jeff Glaum on 8/5/10.
// Copyright 2010 Jeff Glaum. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import "aeroCADCurve.h"
#import "aeroCADLighting.h"
#import "aeroCADTypes.h"
@interface aeroCADLoftedSurf : NSObject {
BOOL _selected;
// Lofted surface direction vector.
VECTOR3D _direction;
int _curveCount;
// Actual curve data is sampled for rendering.
aeroCADCurve **_curves;
CGFloat _curveSampleStep;
int _curveSampleCount;
aeroCADCurve **_curveSamples;
// Wireframe rendering connects parameterized curves - coarse stepping (sampling of parameterized curves).
CGFloat _curveWireStep;
int _curveWireCount;
// Shading requires finer stepping (sampling of parameterized curves).
CGFloat _curveShadeStep;
int _curveShadeCount;
int _triangleCount;
TRIANGLE *_shadeTriangles;
}
@property(assign) TRIANGLE *_shadeTriangles;
@property(assign) int _triangleCount;
- (id) init;
- (void) setDirection:(VECTOR3D)dir;
- (BOOL) addCurve:(aeroCADCurve *)curve;
- (BOOL) finishEditing;
- (BOOL) drawSelf:(BOOL)fShade;
- (BOOL) setColor:(NSColor *)color;
- (void) showNormals;
- (aeroCADLoftedSurf *) copySelf;
- (BOOL) hitTest:(NSPoint) pt;
- (BOOL) loftSurface: (aeroCADCurve *) profc1 :(aeroCADCurve *) profc2 :(aeroCADCurve *) drivec;
- (BOOL) invertSurface;
- (BOOL) toggleSelected;
- (BOOL) isSelected;
@end