3ds Max C++ API Reference
|
#include <patch.h>
Public Attributes | |
int | numVerts |
int | numVecs |
int | numPatches |
int | numEdges |
Patch * | patches |
PatchVec * | vecs |
PatchEdge * | edges |
Tab< HookPoint > | hooks |
Tab< Point3 > | hookTopoMarkers |
Tab< Point3 > | hookTopoMarkersA |
Tab< Point3 > | hookTopoMarkersB |
Point3 * | normals |
BOOL | normalsBuilt |
PatchVert * | verts |
Tab< int > | numTVerts |
Tab< PatchTVert * > | tVerts |
Tab< TVPatch * > | tvPatches |
BitArray | vecSel |
BitArray | vertSel |
BitArray | edgeSel |
BitArray | patchSel |
int | bezVecVert |
DWORD | dispFlags |
DWORD | selLevel |
int | cacheSteps |
BOOL | cacheAdaptive |
BOOL | unrelaxedMeshValid |
BOOL | relaxedMeshValid |
Tab< Point3 > | extrudeDeltas |
MaxSDK::Array< ExtrudeData > | extrudeData |
Tab< Point3 > | edgeNormals |
Tab< int > | newEdges |
Tab< int > | newVerts |
BitArray | bevelEdges |
Tab< float > | edgeDistances |
float | mFalloff |
float | mPinch |
float | mBubble |
int | mEdgeDist |
int | mUseEdgeDist |
int | mAffectBackface |
int | mUseSoftSelections |
Friends | |
class | Patch |
class | MaxGraphics::IPatchMeshInternal |
Additional Inherited Members | |
![]() | |
static UtilExport void * | operator new (size_t size) |
Standard new operator used to allocate objects If there is insufficient memory, an exception will be thrown. | |
static UtilExport void * | operator 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. | |
static UtilExport void * | operator 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. | |
static UtilExport void * | operator 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. | |
static UtilExport void * | operator 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. | |
static UtilExport void * | operator 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. | |
static UtilExport void * | operator 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. | |
static UtilExport void * | operator new[] (size_t size) |
New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown. | |
static UtilExport void * | operator 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. | |
static UtilExport void * | operator 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. | |
static UtilExport void * | operator new[] (size_t size, int block_type, const char *filename, int line) |
New operator used to allocate arrays of objects. | |
static UtilExport void * | operator 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. | |
static UtilExport void * | operator 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. | |
static UtilExport void * | operator 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. | |
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. | |
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. | |
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. | |
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. | |
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. | |
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. | |
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. | |
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. | |
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. | |
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. | |
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. | |
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. | |
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. | |
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. | |
static UtilExport void * | operator new (size_t size, void *placement_ptr) |
Placement new operator. | |
static UtilExport void | operator delete (void *ptr, void *placement_ptr) |
Placement delete operator. | |
static UtilExport void * | aligned_malloc (size_t size, size_t alignment) |
Allocates memory on a specified alignment boundary. | |
static UtilExport void * | aligned_realloc (void *ptr, size_t size, size_t alignment) |
Reallocates memory on a specified alignment boundary. | |
static UtilExport void | aligned_free (void *ptr) |
Frees a block of memory that was allocated with aligned_malloc/aligned_realloc. | |
![]() | |
Tab< BaseInterface * > | interfaces |
CoreExport PatchMesh | ( | ) |
CoreExport PatchMesh | ( | PatchMesh & | fromPatch | ) |
CoreExport ~PatchMesh | ( | ) |
CoreExport int HookFixTopology | ( | ) |
CoreExport void Init | ( | ) |
CoreExport PatchMesh & operator= | ( | PatchMesh & | fromPatchMesh | ) |
CoreExport PatchMesh & operator= | ( | Mesh & | fromMesh | ) |
CoreExport void CopyPatchDataFrom | ( | PatchMesh & | fromPatchMesh | ) |
CoreExport BOOL setNumVerts | ( | int | ct, |
BOOL | keep = FALSE |
||
) |
CoreExport BOOL setNumVecs | ( | int | ct, |
BOOL | keep = FALSE |
||
) |
CoreExport BOOL setNumPatches | ( | int | ct, |
BOOL | keep = FALSE |
||
) |
CoreExport BOOL setNumEdges | ( | int | ct, |
BOOL | keep = FALSE |
||
) |
|
inline |
|
inline |
CoreExport BOOL setNumMapVerts | ( | int | mp, |
int | ct, | ||
BOOL | keep = FALSE |
||
) |
CoreExport int getNumMapVerts | ( | int | mp | ) | const |
CoreExport PatchTVert * mapVerts | ( | int | mp | ) | const |
CoreExport TVPatch * mapPatches | ( | int | mp | ) | const |
CoreExport BOOL setNumMapPatches | ( | int | channel, |
int | ct, | ||
BOOL | keep = FALSE , |
||
int | oldCt = 0 |
||
) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
CoreExport MtlID getPatchMtlIndex | ( | int | i | ) |
CoreExport void setPatchMtlIndex | ( | int | i, |
MtlID | id | ||
) |
CoreExport BOOL buildLinkages | ( | int | patch = -1 | ) |
CoreExport void computeInteriors | ( | ) |
CoreExport void computeAux | ( | ) |
CoreExport void render | ( | GraphicsWindow * | gw, |
Material * | ma, | ||
RECT * | rp, | ||
int | compFlags, | ||
int | numMat = 1 |
||
) |
CoreExport BOOL select | ( | GraphicsWindow * | gw, |
Material * | ma, | ||
HitRegion * | hr, | ||
int | abortOnHit = FALSE , |
||
int | numMat = 1 |
||
) |
CoreExport void snap | ( | GraphicsWindow * | gw, |
SnapInfo * | snap, | ||
IPoint2 * | p, | ||
Matrix3 & | tm | ||
) |
CoreExport BOOL SubObjectHitTest | ( | GraphicsWindow * | gw, |
Material * | ma, | ||
HitRegion * | hr, | ||
DWORD | vflags, | ||
SubPatchHitList & | hitList, | ||
int | numMat = 1 |
||
) |
CoreExport void renderGizmo | ( | GraphicsWindow * | gw | ) |
CoreExport void buildBoundingBox | ( | void | ) |
CoreExport Box3 getBoundingBox | ( | Matrix3 * | tm = NULL | ) |
CoreExport void GetDeformBBox | ( | Box3 & | box, |
Matrix3 * | tm = NULL , |
||
BOOL | useSel = FALSE |
||
) |
CoreExport void InvalidateGeomCache | ( | ) |
CoreExport void InvalidateMesh | ( | ) |
CoreExport void InvalidateRelaxedMesh | ( | ) |
CoreExport void FreeAll | ( | ) |
CoreExport void ShallowCopy | ( | PatchMesh * | amesh, |
ChannelMask | channels | ||
) |
CoreExport void DeepCopy | ( | PatchMesh * | amesh, |
ChannelMask | channels | ||
) |
CoreExport void NewAndCopyChannels | ( | ChannelMask | channels | ) |
CoreExport void FreeChannels | ( | ChannelMask | channels, |
int | zeroOthers = 1 |
||
) |
|
inline |
f | - The flags to set. See Patch Flags. |
|
inline |
f | - The flags to get. See Patch Flags. |
|
inline |
f | - The flags to clear. See Patch Flags. |
|
inline |
|
inline |
|
inline |
|
inline |
CoreExport BitArray VertexTempSel | ( | ) |
CoreExport void ApplyConstraints | ( | BOOL | selOnly = FALSE | ) |
CoreExport BOOL MakeQuadPatch | ( | int | index, |
int | va, | ||
int | vab, | ||
int | vba, | ||
int | vb, | ||
int | vbc, | ||
int | vcb, | ||
int | vc, | ||
int | vcd, | ||
int | vdc, | ||
int | vd, | ||
int | vda, | ||
int | vad, | ||
int | i1, | ||
int | i2, | ||
int | i3, | ||
int | i4, | ||
DWORD | sm | ||
) |
CoreExport BOOL MakeTriPatch | ( | int | index, |
int | va, | ||
int | vab, | ||
int | vba, | ||
int | vb, | ||
int | vbc, | ||
int | vcb, | ||
int | vc, | ||
int | vca, | ||
int | vac, | ||
int | i1, | ||
int | i2, | ||
int | i3, | ||
DWORD | sm | ||
) |
CoreExport void SetMeshSteps | ( | int | steps | ) |
CoreExport int GetMeshSteps | ( | ) |
CoreExport void SetMeshStepsRender | ( | int | steps | ) |
CoreExport int GetMeshStepsRender | ( | ) |
CoreExport void SetShowInterior | ( | BOOL | si | ) |
CoreExport BOOL GetShowInterior | ( | ) |
CoreExport void SetUsePatchNormals | ( | BOOL | usePatchNorm | ) |
CoreExport BOOL GetUsePatchNormals | ( | ) |
CoreExport void SetAdaptive | ( | BOOL | sw | ) |
CoreExport BOOL GetAdaptive | ( | ) |
CoreExport void SetViewTess | ( | TessApprox | tess | ) |
CoreExport TessApprox GetViewTess | ( | ) |
CoreExport void SetProdTess | ( | TessApprox | tess | ) |
CoreExport TessApprox GetProdTess | ( | ) |
CoreExport void SetDispTess | ( | TessApprox | tess | ) |
CoreExport TessApprox GetDispTess | ( | ) |
CoreExport BOOL GetViewTessNormals | ( | ) |
CoreExport void SetViewTessNormals | ( | BOOL | use | ) |
CoreExport BOOL GetProdTessNormals | ( | ) |
CoreExport void SetProdTessNormals | ( | BOOL | use | ) |
CoreExport BOOL GetViewTessWeld | ( | ) |
CoreExport void SetViewTessWeld | ( | BOOL | weld | ) |
CoreExport BOOL GetProdTessWeld | ( | ) |
CoreExport void SetProdTessWeld | ( | BOOL | weld | ) |
CoreExport Tab< int > GetEdge | ( | int | v1, |
int | v2 | ||
) | const |
CoreExport Tab< int > GetPatches | ( | int | v1, |
int | v2 | ||
) | const |
CoreExport Tab< int > GetPatches | ( | int | vert | ) | const |
CoreExport Tab< int > GetEdges | ( | int | vert | ) | const |
CoreExport Tab< int > GetVectors | ( | int | vert | ) | const |
CoreExport void setNumMaps | ( | int | ct, |
BOOL | keep = TRUE |
||
) |
|
inline |
CoreExport void setMapSupport | ( | int | chan, |
BOOL | init = TRUE |
||
) |
|
inline |
|
inline |
CoreExport void ApplyUVWMap | ( | int | type, |
float | utile, | ||
float | vtile, | ||
float | wtile, | ||
int | uflip, | ||
int | vflip, | ||
int | wflip, | ||
int | cap, | ||
const Matrix3 & | tm, | ||
int | channel = 1 |
||
) |
CoreExport BOOL RecordTopologyTags | ( | ) |
CoreExport void Transform | ( | Matrix3 & | tm | ) |
CoreExport BOOL Weld | ( | float | thresh, |
BOOL | weldIdentical = FALSE , |
||
int | startVert = 0 |
||
) |
CoreExport BOOL Weld | ( | int | fromVert, |
int | toVert | ||
) |
CoreExport void DeletePatchParts | ( | BitArray & | delVerts, |
BitArray & | delPatches | ||
) |
CoreExport void Subdivide | ( | int | type, |
BOOL | propagate | ||
) |
CoreExport void AddPatch | ( | int | type | ) |
CoreExport int AddHook | ( | ) |
CoreExport int AddHook | ( | int | index | ) |
CoreExport int AddHook | ( | int | vertIndex, |
int | segIndex | ||
) |
CoreExport int RemoveHook | ( | ) |
CoreExport int UpdateHooks | ( | ) |
CoreExport BOOL WeldEdges | ( | ) |
CoreExport void ClonePatchParts | ( | BitArray * | patches = NULL | ) |
CoreExport void CreateExtrusion | ( | int | type = PATCH_PATCH , |
BOOL | edgeClone = FALSE |
||
) |
CoreExport Point3 AverageNormals | ( | int | type = PATCH_PATCH | ) |
CoreExport Point3 PatchNormal | ( | int | index | ) |
CoreExport void BuildPatchNormals | ( | ) |
CoreExport void InvalidatePatchNormals | ( | ) |
CoreExport Point3 EdgeNormal | ( | int | index | ) |
CoreExport void MoveNormal | ( | float | amount, |
BOOL | useLocalNorms, | ||
int | type | ||
) |
CoreExport void FlipPatchNormal | ( | int | index | ) |
CoreExport void UnifyNormals | ( | BOOL | useSel | ) |
CoreExport void CreateBevel | ( | ) |
CoreExport void Bevel | ( | float | amount, |
int | smoothStart, | ||
int | smoothEnd | ||
) |
Point3 GetBevelDir | ( | int | patchVertID | ) |
CoreExport void Attach | ( | PatchMesh * | attPatch, |
int | mtlOffset | ||
) |
CoreExport void ChangePatchInterior | ( | int | index, |
int | type | ||
) |
CoreExport void ChangeVertType | ( | int | index, |
int | type | ||
) |
CoreExport BOOL SelVertsSameType | ( | ) |
CoreExport BOOL SelPatchesSameType | ( | ) |
CoreExport BOOL ResetVertexTangents | ( | int | index | ) |
CoreExport BOOL ResetVertexTangents | ( | bool | useSel = true , |
const BitArray * | vSel = NULL |
||
) |
CoreExport BOOL PatchSmoothVector | ( | bool | useSel = true , |
const BitArray * | vSel = NULL |
||
) |
CoreExport BOOL PatchSmoothVertex | ( | bool | useSel = true , |
const BitArray * | vSel = NULL |
||
) |
CoreExport BOOL PatchSmoothEdge | ( | bool | useSel = true , |
const BitArray * | eSel = NULL |
||
) |
CoreExport BOOL PatchSmoothPatch | ( | bool | useSel = true , |
const BitArray * | pSel = NULL |
||
) |
CoreExport void ShrinkSelection | ( | int | type | ) |
CoreExport void GrowSelection | ( | int | type | ) |
CoreExport void SelectEdgeRing | ( | BitArray & | eSel | ) |
CoreExport void SelectEdgeLoop | ( | BitArray & | eSel | ) |
CoreExport void Dump | ( | ) |
CoreExport void PrepareMesh | ( | ) |
CoreExport void PrepareUnrelaxedMesh | ( | ) |
CoreExport Mesh & GetMesh | ( | ) |
CoreExport Mesh & GetUnrelaxedMesh | ( | ) |
CoreExport void ComputeMesh | ( | Mesh & | m, |
DWORD | convertFlags | ||
) |
CoreExport int IntersectRay | ( | Ray & | ray, |
float & | at, | ||
Point3 & | norm | ||
) |
CoreExport IOResult Save | ( | ISave * | isave | ) |
CoreExport IOResult Load | ( | ILoad * | iload | ) |
CoreExport void AutoSmooth | ( | float | angle, |
BOOL | useSel, | ||
BOOL | preventIndirectSmoothing | ||
) |
CoreExport void ChangePatchToLinearMapping | ( | int | index | ) |
CoreExport void ChangePatchToCurvedMapping | ( | int | index | ) |
CoreExport BOOL ArePatchesLinearMapped | ( | int | index | ) |
CoreExport BOOL ArePatchesCurvedMapped | ( | int | index | ) |
CoreExport BOOL SingleEdgesOnly | ( | ) |
CoreExport BitArray & GetElement | ( | int | index | ) |
|
virtual |
Reimplemented from BaseInterfaceServer.
CoreExport void SetVertexWeightCount | ( | int | i | ) |
|
inline |
|
inline |
|
inline |
|
inline |
CoreExport void SupportVSelectionWeights | ( | ) |
|
inline |
CoreExport int UseEdgeDists | ( | ) |
CoreExport void SetUseEdgeDists | ( | int | edgeDist | ) |
CoreExport int EdgeDist | ( | ) |
CoreExport void SetEdgeDist | ( | int | edgeDist | ) |
CoreExport int UseSoftSelections | ( | ) |
CoreExport void SetUseSoftSelections | ( | int | useSoftSelections | ) |
CoreExport int AffectBackface | ( | ) |
CoreExport void SetAffectBackface | ( | int | affectBackface | ) |
CoreExport float Falloff | ( | ) |
CoreExport void SetFalloff | ( | float | falloff | ) |
CoreExport float Pinch | ( | ) |
CoreExport void SetPinch | ( | float | pinch | ) |
CoreExport float Bubble | ( | ) |
CoreExport void SetBubble | ( | float | bubble | ) |
CoreExport void InvalidateVertexWeights | ( | ) |
CoreExport void UpdateVertexDists | ( | ) |
CoreExport void UpdateEdgeDists | ( | ) |
CoreExport void UpdateVertexWeights | ( | ) |
CoreExport Point3 VertexNormal | ( | int | vIndex | ) |
CoreExport BOOL Relaxing | ( | ) |
CoreExport BOOL SetRelax | ( | BOOL | v | ) |
CoreExport BOOL SetRelaxViewports | ( | BOOL | v | ) |
CoreExport BOOL SetRelaxValue | ( | float | v | ) |
CoreExport BOOL SetRelaxIter | ( | int | v | ) |
CoreExport BOOL SetRelaxBoundary | ( | BOOL | v | ) |
CoreExport BOOL SetRelaxSaddle | ( | BOOL | v | ) |
CoreExport BOOL GetRelax | ( | ) |
CoreExport BOOL GetRelaxViewports | ( | ) |
CoreExport float GetRelaxValue | ( | ) |
CoreExport int GetRelaxIter | ( | ) |
CoreExport BOOL GetRelaxBoundary | ( | ) |
CoreExport BOOL GetRelaxSaddle | ( | ) |
|
friend |
|
friend |
int numVerts |
int numVecs |
int numPatches |
int numEdges |
Patch* patches |
PatchVec* vecs |
PatchEdge* edges |
Tab<Point3> hookTopoMarkers |
Tab<Point3> hookTopoMarkersA |
Tab<Point3> hookTopoMarkersB |
Point3* normals |
BOOL normalsBuilt |
PatchVert* verts |
Tab<PatchTVert *> tVerts |
BitArray vecSel |
BitArray vertSel |
BitArray edgeSel |
BitArray patchSel |
int bezVecVert |
DWORD dispFlags |
DWORD selLevel |
int cacheSteps |
BOOL cacheAdaptive |
BOOL unrelaxedMeshValid |
BOOL relaxedMeshValid |
Tab<Point3> extrudeDeltas |
MaxSDK::Array<ExtrudeData> extrudeData |
Tab<Point3> edgeNormals |
BitArray bevelEdges |
Tab<float> edgeDistances |
float mFalloff |
float mPinch |
float mBubble |
int mEdgeDist |
int mUseEdgeDist |
int mAffectBackface |
int mUseSoftSelections |