Class NURBSOffsetSurface
See Also: Class NURBSSurface.
class NURBSOffsetSurface : public NURBSSurface
Description:
This class is available in release 2.0 and later only.
This class defines a dependent offset surface. An Offset surface is offset a specified distance from the original along the parent surface’s normals. Methods are available to get/set the parent index and parent Ids, and to get/set the offset distance of the surface.
All methods of this class are implemented by the system.
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:
NURBSOffsetSurface();
Remarks:
Constructor. The data members are initialized as follows:
mType = kNOffsetSurface;
mpObject = NULL;
mpNSet = NULL;
mParentId = 0;
mParentIndex = -1;
mDistance = 0.0;
Prototype:
virtual ~NURBSOffsetSurface();
Remarks:
Destructor.
Prototype:
void SetParent(int index);
Remarks:
Sets the index in the NURBSSet of the specified parent object.
Parameters:
int index
The index into the NURBSSet of the parent surface.
Prototype:
void SetParentId(NURBSId id);
Remarks:
Sets the Id of the parent surface.
Parameters:
NURBSId id
The Id to set.
Prototype:
int GetParent();
Remarks:
Returns the index in the NURBSSet of the parent surface.
Prototype:
NURBSId GetParentId();
Remarks:
Returns the NURBSId of the parent surface. Note that a NURBSId won't be valid until the object has been instantiated in the scene.
Prototype:
void SetDistance(TimeValue t, double d);
Remarks:
Sets the offset distance of the surface at the specified time.
Parameters:
TimeValue t
The time at which to set the offset a value.
double d
A distance of the offset in 3ds max units.
Prototype:
double GetDistance(TimeValue t);
Remarks:
Returns the distance of the offset at the specified time.
Parameters:
TimeValue t
The time at which to return the offset a value.
Operators:
Prototype:
NURBSOffsetSurface & operator=(const NURBSOffsetSurface& surf);
Remarks:
Assignment operator.
Parameters:
const NURBSOffsetSurface& surf
The surface to assign.