3ds Max C++ API Reference
NURBSCurveSurfaceIntersectionPoint Class Reference

#include <surf_api.h>

+ Inheritance diagram for NURBSCurveSurfaceIntersectionPoint:

Public Member Functions

DllExport NURBSCurveSurfaceIntersectionPoint (void)
 
virtual DllExport ~NURBSCurveSurfaceIntersectionPoint (void)
 
DllExport NURBSCurveSurfaceIntersectionPointoperator= (const NURBSCurveSurfaceIntersectionPoint &pt)
 
DllExport void SetSeed (double seed)
 
DllExport double GetSeed ()
 
DllExport void SetParent (int pnum, int index)
 
DllExport void SetParentId (int pnum, NURBSId id)
 
DllExport int GetParent (int pnum)
 
DllExport NURBSId GetParentId (int pnum)
 
DllExport BOOL GetTrimCurve ()
 
DllExport void SetTrimCurve (BOOL trim)
 
DllExport BOOL GetFlipTrim ()
 
DllExport void SetFlipTrim (BOOL flip)
 
- Public Member Functions inherited from NURBSPoint
DllExport NURBSPoint ()
 
virtual DllExport Point3 GetPosition (TimeValue t)
 
virtual DllExport void GetPosition (TimeValue t, float &x, float &y, float &z)
 
virtual DllExport void GetPosition (TimeValue t, double &x, double &y, double &z)
 
- Public Member Functions inherited from NURBSObject
DllExport NURBSObject (void)
 
virtual DllExport ~NURBSObject (void)
 
DllExport NURBSObjectoperator= (const NURBSObject &pt)
 
DllExport void SetName (const MCHAR *name)
 
DllExport const MCHARGetName (void)
 
DllExport NURBSType GetType () const
 
DllExport NURBSKind GetKind () const
 
DllExport NURBSId GetId () const
 
DllExport void SetId (NURBSId id)
 
DllExport void SetNSet (NURBSSet *nset)
 
DllExport void SetObject (Object *object)
 
DllExport ObjectGetMAXObject ()
 
DllExport NURBSSetGetNSet ()
 
DllExport int GetIndex ()
 
DllExport BOOL IsSelected ()
 
DllExport void SetSelected (BOOL set)
 

Protected Member Functions

DllExport void Clean (NURBSIdTab ids)
 
- Protected Member Functions inherited from NURBSObject
DllExport void Clean (NURBSIdTab ids)
 

Protected Attributes

NURBSId mParentId [2]
 
int mParentIndex [2]
 
double mSeed
 
BOOL mTrimCurve
 
BOOL mFlipTrim
 
- Protected Attributes inherited from NURBSPoint
double mX
 
double mY
 
double mZ
 
- Protected Attributes inherited from NURBSObject
MCHAR mName [NURBS_NAME_SIZE]
 
NURBSType mType
 
NURBSKind mKind
 
NURBSId mId
 
ObjectmpObject
 
NURBSSetmpNSet
 
BOOL mSelected
 

Friends

class NURBSSet
 

Additional Inherited Members

- Static Public Member Functions inherited from MaxHeapOperators
static UtilExport voidoperator new (size_t size)
 Standard new operator used to allocate objects If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new (size_t size, const std::nothrow_t &e)
 Standard new operator used to allocate objects if there is insufficient memory, NULL will be returned. More...
 
static UtilExport voidoperator new (size_t size, const char *filename, int line)
 New operator used to allocate objects that takes the filename and line number where the new was called If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new (size_t size, int block_type, const char *filename, int line)
 New operator used to allocate objects that takes the type of memory, filename and line number where the new was called If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new (size_t size, const std::nothrow_t &e, const char *filename, int line)
 New operator used to allocate objects that takes the filename and line number where the new was called If there is insufficient memory, NULL will be returned. More...
 
static UtilExport voidoperator new (size_t size, unsigned long flags)
 New operator used to allocate objects that takes extra flags to specify special operations If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new (size_t size, const std::nothrow_t &e, unsigned long flags)
 New operator used to allocate objects that takes extra flags to specify special operations If there is insufficient memory, NULL will be returned. More...
 
static UtilExport voidoperator new[] (size_t size)
 New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new[] (size_t size, const std::nothrow_t &e)
 New operator used to allocate arrays of objects If there is insufficient memory, NULL will be returned. More...
 
static UtilExport voidoperator new[] (size_t size, const char *filename, int line)
 New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new[] (size_t size, int block_type, const char *filename, int line)
 New operator used to allocate arrays of objects. More...
 
static UtilExport voidoperator new[] (size_t size, const std::nothrow_t &e, const char *filename, int line)
 New operator used to allocate arrays of objects If there is insufficient memory, NULL will be returned. More...
 
static UtilExport voidoperator new[] (size_t size, unsigned long flags)
 New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new[] (size_t size, const std::nothrow_t &e, unsigned long flags)
 New operator used to allocate arrays of objects If there is insufficient memory, NULL will be returned. More...
 
static UtilExport void operator delete (void *ptr)
 Standard delete operator used to deallocate an object If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete (void *ptr, const std::nothrow_t &e)
 Standard delete operator used to deallocate an object If the pointer is invalid, nothing will happen. More...
 
static UtilExport void operator delete (void *ptr, const char *filename, int line)
 Delete operator used to deallocate an object that takes the filename and line number where the delete was called If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete (void *ptr, int block_type, const char *filename, int line)
 Delete operator used to deallocate an object that takes the type of memory, filename and line number where the delete was called If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete (void *ptr, const std::nothrow_t &e, const char *filename, int line)
 Delete operator used to deallocate an object that takes the filename and line number where the delete was called If the pointer is invalid, nothing will happen. More...
 
static UtilExport void operator delete (void *ptr, unsigned long flags)
 Delete operator used to deallocate an object that takes extra flags to specify special operations If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete (void *ptr, const std::nothrow_t &e, unsigned long flags)
 Delete operator used to deallocate an object that takes extra flags to specify special operations If the pointer is invalid, nothing will happen. More...
 
static UtilExport void operator delete[] (void *ptr)
 Standard delete operator used to deallocate an array of objects If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete[] (void *ptr, const std::nothrow_t &e)
 Standard delete operator used to deallocate an array of objects If the pointer is invalid, nothing will happen. More...
 
static UtilExport void operator delete[] (void *ptr, const char *filename, int line)
 Delete operator used to deallocate an array of objects that takes the filename and line number where the delete was called If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete[] (void *ptr, int block_type, const char *filename, int line)
 Delete operator used to deallocate an array of objects that takes the type of memory, filename and line number where the delete was called If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete[] (void *ptr, const std::nothrow_t &e, const char *filename, int line)
 Delete operator used to deallocate an array of objects that takes the filename and line number where the delete was called If the pointer is invalid, nothing will happen. More...
 
static UtilExport void operator delete[] (void *ptr, unsigned long flags)
 Delete operator used to deallocate an array of objects that takes extra flags to specify special operations If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete[] (void *ptr, const std::nothrow_t &e, unsigned long flags)
 Delete operator used to deallocate an array of objects that takes extra flags to specify special operations If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport voidoperator new (size_t size, void *placement_ptr)
 Placement new operator. More...
 
static UtilExport void operator delete (void *ptr, void *placement_ptr)
 Placement delete operator. More...
 
static UtilExport voidaligned_malloc (size_t size, size_t alignment)
 Allocates memory on a specified alignment boundary. More...
 
static UtilExport voidaligned_realloc (void *ptr, size_t size, size_t alignment)
 Reallocates memory on a specified alignment boundary. More...
 
static UtilExport void aligned_free (void *ptr)
 Frees a block of memory that was allocated with aligned_malloc/aligned_realloc. More...
 

Detailed Description

See also
Class NURBSPoint.

Description:
This class is used to create a dependent point at the intersection of a curve and a surface.
Data Members:
protected:

NURBSId mParentId[2];

The NURBSIds of the parent surface and curve. Parent 0 should be the surface parent 1 should be the curve.

int mParentIndex[2];

The NURBSSet indexes of the parent surface and curve. Parent 0 should be the surface parent 1 should be the curve.

double mSeed;

The seed location is a U position along the length of the parent curve.

BOOL mTrimCurve;

The trim curve flag.

BOOL mFlipTrim;

The trim flip flag.

Constructor & Destructor Documentation

◆ NURBSCurveSurfaceIntersectionPoint()

Remarks
Constructor. The data members are initialized as follows:

mType = kNCurveSurfaceIntersectionPoint;

mpObject = NULL;

mpNSet = NULL;

mParentId[0] = mParentId[1] = 0;

mParentIndex[0] = mParentIndex[1] = -1;

mSeed = 0.5;

mTrimCurve = FALSE;

mFlipTrim = FALSE;

◆ ~NURBSCurveSurfaceIntersectionPoint()

Remarks
Destructor.

Member Function Documentation

◆ Clean()

DllExport void Clean ( NURBSIdTab  ids)
protected
Remarks
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.

◆ operator=()

Remarks
Assignment operator.
Parameters:
const NURBSCurveSurfaceIntersectionPoint &pt

The point to assign.

◆ SetSeed()

DllExport void SetSeed ( double  seed)
Remarks
Sets the seed value.
Parameters:
double seed

The U position along the length of the parent curve.

◆ GetSeed()

DllExport double GetSeed ( )
Remarks
Returns the seed value.

◆ SetParent()

DllExport void SetParent ( int  pnum,
int  index 
)
Remarks
Establishes the curve or surface used by specifying its index in the NURBSSet.
Parameters:
int pnum

Pass 0 for the surface; 1 for the curve.

int index

The index in the NURBSSet of the curve or surface.

◆ SetParentId()

DllExport void SetParentId ( int  pnum,
NURBSId  id 
)
Remarks
Establishes the curve or surface used by specifying its NURBSId.
Parameters:
int pnum

Pass 0 for the surface; 1 for the curve.

NURBSId id

The id to set.

◆ GetParent()

DllExport int GetParent ( int  pnum)
Remarks
Returns the index in the NURBSSet of the parent curve or surface.
Parameters:
int pnum

Pass 0 for the surface; 1 for the curve.

◆ GetParentId()

DllExport NURBSId GetParentId ( int  pnum)
Remarks
Returns the NURBSId of the parent curve or surface.
Parameters:
int pnum

Pass 0 for the surface; 1 for the curve.

◆ GetTrimCurve()

DllExport BOOL GetTrimCurve ( )
Remarks
Returns the state of the trim curve flag. TRUE causes trimming; FALSE does not.

◆ SetTrimCurve()

DllExport void SetTrimCurve ( BOOL  trim)
Remarks
Sets the state of the trim curve flag.
Parameters:
BOOL trim

TRUE to trim; FALSE to not trim.

◆ GetFlipTrim()

DllExport BOOL GetFlipTrim ( )
Remarks
Returns the state of the trim flip flag. TRUE for flipped; FALSE for not flipped.

◆ SetFlipTrim()

DllExport void SetFlipTrim ( BOOL  flip)
Remarks
Sets the state of the trim flip flag.
Parameters:
BOOL flip

TRUE to flip; FALSE to not flip.

Friends And Related Function Documentation

◆ NURBSSet

friend class NURBSSet
friend

Member Data Documentation

◆ mParentId

NURBSId mParentId[2]
protected

◆ mParentIndex

int mParentIndex[2]
protected

◆ mSeed

double mSeed
protected

◆ mTrimCurve

BOOL mTrimCurve
protected

◆ mFlipTrim

BOOL mFlipTrim
protected