3ds Max C++ API Reference
NURBSTextureSurface Class Reference

#include <surf_api.h>

+ Inheritance diagram for NURBSTextureSurface:

Public Member Functions

DllExport NURBSTextureSurface (void)
 
DllExport ~NURBSTextureSurface (void)
 
DllExport NURBSTextureSurface (NURBSTextureSurface &tsurf)
 
DllExport NURBSTextureSurfaceoperator= (const NURBSTextureSurface &surf)
 
DllExport NURBSTexSurfType MapperType ()
 
DllExport void SetMapperType (NURBSTexSurfType type)
 
DllExport void SetParent (int index)
 
DllExport void SetParentId (NURBSId id)
 
DllExport int GetParent () const
 
DllExport NURBSId GetParentId () const
 
DllExport void SetNumPoints (int u, int v)
 
DllExport int GetNumUPoints (void) const
 
DllExport int GetNumVPoints (void) const
 
DllExport void GetNumPoints (int &u, int &v) const
 
DllExport NURBSTexturePointGetPoint (int u, int v)
 
DllExport const NURBSTexturePointGetPoint (int u, int v) const
 
DllExport void SetPoint (int u, int v, NURBSTexturePoint &pnt)
 

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 NURBSControlVertex, Class NURBSSurface, Class NURBSTexturePoint.

Description:
A NURBS texture surface is a surface associated with the surface sub-object. 3ds Max uses the texture surface to control how materials are mapped. In effect, changing the texture surface stretches or otherwise changes the UV coordinates for the surface, altering the mapping.

This class provides access to the NURBS Texture Surface. This is a 2D (not 3D) surface that lives in the parameter space of the corresponding NURBSSurface which controls the texture mapping used by the NURBSSurface.

Constructor & Destructor Documentation

◆ NURBSTextureSurface() [1/2]

Remarks
Constructor. The data members are initialized as follows:

mMapperType = kNMapDefault;

mpPoints = NULL;

◆ ~NURBSTextureSurface()

Remarks
Destructor. Any mpPoints are deleted.

◆ NURBSTextureSurface() [2/2]

Member Function Documentation

◆ operator=()

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

The surface to assign.

◆ MapperType()

DllExport NURBSTexSurfType MapperType ( )
Remarks
Returns the NURBS Texture Surface Type. See NURBSTextureSurface Types.

◆ SetMapperType()

DllExport void SetMapperType ( NURBSTexSurfType  type)
Remarks
Sets the NURBS Texture Surface Type.
Parameters:
NURBSTexSurfType type

The type to set. See NURBSTextureSurface Types.

◆ SetParent()

DllExport void SetParent ( int  index)
Remarks
This sets the Id of the "source" surface for a kNMapSurfaceMapper texture surface, it should be NULL in other cases. This is only used if the NURBSTexSurfType is set the kNMapSufaceMapper. In that case the texture surface is generated by projecting the texture of another NURBS surface sub-object in the NURBS model. The projection travels along the direction of the normals of the source surface. Projected texture surfaces are relational. This method set the parent surface which is projected.
Parameters:
int index

The index in the NURBSSet of the source surface.

◆ SetParentId()

DllExport void SetParentId ( NURBSId  id)
Remarks
This sets the index in the NURBSSet of the "source" surface for a kNMapSurfaceMapper texture surface. This is only used if the NURBSTexSurfType is set the kNMapSufaceMapper. In that case the texture surface is generated by projecting the texture of another NURBS surface sub-object in the NURBS model. The projection travels along the direction of the normals of the source surface. Projected texture surfaces are relational. This method set the parent surface which is projected.
Parameters:
NURBSId id

The ID of the source surface.

◆ GetParent()

DllExport int GetParent ( ) const
Remarks
Returns the index in the NURBSSet of the surface that's mapped.

◆ GetParentId()

DllExport NURBSId GetParentId ( ) const
Remarks
Returns the ID of the surface that's mapped.

◆ SetNumPoints()

DllExport void SetNumPoints ( int  u,
int  v 
)
Remarks
Sets the number of points in U and V for the texture surface.
Parameters:
int u

The number of points in U.

int v

The number of points in V.

◆ GetNumUPoints()

DllExport int GetNumUPoints ( void  ) const
Remarks
Returns the number of points in U.

◆ GetNumVPoints()

DllExport int GetNumVPoints ( void  ) const
Remarks
Returns the number of points in V.

◆ GetNumPoints()

DllExport void GetNumPoints ( int u,
int v 
) const
Remarks
Retrieves the number of points in U and V.
Parameters:
int &u

The number of points in U is returned here.

int &v

The number of points in V is returned here.

◆ GetPoint() [1/2]

DllExport NURBSTexturePoint* GetPoint ( int  u,
int  v 
)
Remarks
Returns a pointer to the specified NURBS Texture Point.
Parameters:
int u

Specifies the U point.

int v

Specifies the V point.

◆ GetPoint() [2/2]

DllExport const NURBSTexturePoint* GetPoint ( int  u,
int  v 
) const

◆ SetPoint()

DllExport void SetPoint ( int  u,
int  v,
NURBSTexturePoint pnt 
)
Remarks
Sets the specified NURBS Texture Point.
Parameters:
int u

Specifies the U point.

int v

Specifies the V point.

NURBSTexturePoint& pnt

The point to set.