Class NURBSSurfaceNormalCurve
See Also: Class NURBSCurve.
class NURBSSurfaceNormalCurve : public NURBSCurve
Description:
This class is available in release 2.5 and later only.
This provides access to the Surface Normal Curve. This is a curve created at a specified distance from a surface and normal to it.
Note: The parent curve specified below must have one of the following types: surface-surface intersection, U Iso, V Iso, normal projected, vector projected, CV curve on surface, or point curve on surface.
Friend Classes:
friend class NURBSSet
Methods:
protected:
Prototype:
void Clean(NURBSIdTab ids);
Remarks:
This method is available in release 3.0 and later only.
This methods breaks the relation between this NURBSObject and a NURBSSet.
Parameters:
NURBSIdTab ids
A table with the IDs of each object in the NURBSSet.
public:
Prototype:
NURBSSurfaceNormalCurve(void);
Remarks:
Constructor. The data members are initialized as follows:
mType = kNSurfaceNormalCurve;
mpObject = NULL;
mpNSet = NULL;
mParentId = 0;
mParentIndex = -1;
Prototype:
virtual ~NURBSSurfaceNormalCurve(void);
Remarks:
Destructor.
Prototype:
void SetParent(int index);
Remarks:
Establishes the parent curve to use by passing its index in the NURBSSet.
Parameters:
int index
The index in the NURBSSet of the parent curve to use.
Prototype:
void SetParentId(NURBSId id);
Remarks:
Establishes the parent curve to use by passing its NURBSId.
Parameters:
NURBSId id
The id of the parent curve to use.
Prototype:
int GetParent();
Remarks:
Returns the index in the NURBSSet of the parent curve.
Prototype:
NURBSId GetParentId();
Remarks:
Returns the NURBSId of the parent curve.
Prototype:
void SetDistance(TimeValue t, double dist);
Remarks:
Set the distance along the normal of the curve from the surface at the specified time.
Parameters:
TimeValue t
The time at which to set the distance.
double dist
The distance along the normal from the surface to the curve.
Prototype:
double GetDistance(TimeValue t);
Remarks:
Returns the distance along the normal from the surface to the curve.
Parameters:
TimeValue t
The time at which to get the distance.
Prototype:
NURBSSurfaceNormalCurve & operator=(const NURBSSurfaceNormalCurve& curve);
Remarks:
Assignment operator.
Parameters:
const NURBSSurfaceNormalCurve& curve
The curve to assign.