NURBSOffsetSurface Class Reference
 
 
 
NURBSOffsetSurface Class Reference

This reference page is linked to from the following overview topics: NURBS Surface Classes.


#include <surf_api.h>

Inheritance diagram for NURBSOffsetSurface:
NURBSSurface NURBSObject MaxHeapOperators

Class Description

See also:
Class NURBSSurface.

Description:
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.

Public Member Functions

DllExport  NURBSOffsetSurface (void)
virtual DllExport  ~NURBSOffsetSurface (void)
DllExport NURBSOffsetSurface operator= (const NURBSOffsetSurface &surf)
DllExport void  SetParent (int index)
DllExport void  SetParentId (NURBSId id)
DllExport int  GetParent (void)
DllExport NURBSId  GetParentId (void)
DllExport void  SetDistance (TimeValue t, double d)
DllExport double  GetDistance (TimeValue t)

Friends

class  NURBSSet

Constructor & Destructor Documentation

DllExport NURBSOffsetSurface ( void  )
Remarks:
Constructor. The data members are initialized as follows:

mType = kNOffsetSurface;

mpObject = NULL;

mpNSet = NULL;

mParentId = 0;

mParentIndex = -1;

mDistance = 0.0;
virtual DllExport ~NURBSOffsetSurface ( void  ) [virtual]
Remarks:
Destructor.

Member Function Documentation

DllExport NURBSOffsetSurface& operator= ( const NURBSOffsetSurface surf )
Remarks:
Assignment operator.
Parameters:
const NURBSOffsetSurface& surf

The surface to assign.
DllExport 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.
DllExport void SetParentId ( NURBSId  id )
Remarks:
Sets the Id of the parent surface.
Parameters:
NURBSId id

The Id to set.
DllExport int GetParent ( void  )
Remarks:
Returns the index in the NURBSSet of the parent surface.
DllExport NURBSId GetParentId ( void  )
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.
DllExport 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.
DllExport 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:

Friends And Related Function Documentation

friend class NURBSSet [friend]