Class NURBSProjectNormalCurve
See Also: Class NURBSCurve, Class Point2.
class NURBSProjectNormalCurve : public NURBSCurve
Description:
This class is available in release 2.5 and later only.
This class provides access to the Normal Proejcted Curve. A Normal Projected curve lies on a surface. It is based on an existing curve, which is projected onto the surface in the direction of the surface's normals.
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:
NURBSProjectNormalCurve(void);
Remarks:
Constructor.
Prototype:
virtual ~NURBSProjectNormalCurve(void);
Remarks:
Destructor.
Prototype:
void SetParent(int pnum, int index);
Remarks:
Sets the surface or curve used by specifying its index into the NURBSSet.
Parameters:
int pnum
Pass 0 for the surface and 1 for the curve.
int index
The index in the NURBSSet of the surface or curve.
Prototype:
void SetParentId(int pnum, NURBSId id);
Remarks:
Sets the surface or curve used by specifying its NURBSId.
Parameters:
int pnum
Pass 0 for the surface and 1 for the curve.
NURBSId id
The id of the surface or curve.
Prototype:
int GetParent(int pnum);
Remarks:
Returns the index in the NURBSSet of the surface or curve in use.
Parameters:
int pnum
Pass 0 for the surface and 1 for the curve.
Prototype:
NURBSId GetParentId(int pnum);
Remarks:
Returns the NURBSId of the surface or curve in use.
Parameters:
int pnum
Pass 0 for the surface and 1 for the curve.
Prototype:
BOOL GetTrim();
Remarks:
Returns the state of the trim flag. When set the surface is trimmed against the curve. When not set, the surface isn’t trimmed
Prototype:
void SetTrim(BOOL trim);
Remarks:
Sets the state of the trim flag. When set the surface is trimmed against the curve. When not set, the surface isn’t trimmed
Parameters:
BOOL trim
TRUE to trim; FALSE to not trim.
Prototype:
BOOL GetFlipTrim();
Remarks:
Returns the state of the trim flip flag. When set this trims the surface in the opposite direction
Prototype:
void SetFlipTrim(BOOL flip);
Remarks:
Sets the state of the trim flip flag. When set this trims the surface in the opposite direction
Parameters:
BOOL flip
TRUE to flip; FALSE to not flip.
Prototype:
void SetSeed(Point2& seed);
Remarks:
Sets the UV location of the seed value on the surface. If there is a choice of projections, the projection closest to the seed point is the one used to create the curve.
Parameters:
Point2& seed
The seed value to set.
Prototype:
Point2 GetSeed();
Remarks:
Returns the UV location of the seed value on the surface.
Prototype:
NURBSProjectNormalCurve & operator=(const NURBSProjectNormalCurve& curve);
Remarks:
Assignment operator.
Parameters:
const NURBSProjectNormalCurve& curve
The curve to assign.