This reference page is linked to from the following overview topics: Modeling, Meshes, Principal Classes, Creating a Patch, Texture Coordinates.
#include <patch.h>
Public Member Functions |
|
CoreExport int | HookFixTopology () |
CoreExport | PatchMesh () |
CoreExport | PatchMesh (PatchMesh &fromPatch) |
CoreExport void | Init () |
CoreExport | ~PatchMesh () |
CoreExport PatchMesh & | operator= (PatchMesh &fromPatchMesh) |
CoreExport PatchMesh & | operator= (Mesh &fromMesh) |
CoreExport void | CopyPatchDataFrom (PatchMesh &fromPatchMesh) |
CoreExport BOOL | setNumVerts (int ct, BOOL keep=FALSE) |
int | getNumVerts (void) |
CoreExport BOOL | setNumVecs (int ct, BOOL keep=FALSE) |
int | getNumVecs (void) |
CoreExport BOOL | setNumPatches (int ct, BOOL keep=FALSE) |
int | getNumPatches (void) |
CoreExport BOOL | setNumEdges (int ct, BOOL keep=FALSE) |
int | getNumEdges (void) |
void | setVert (int i, const Point3 &xyz) |
void | setVert (int i, float x, float y, float z) |
void | setVec (int i, const Point3 &xyz) |
void | setVec (int i, float x, float y, float z) |
PatchVert & | getVert (int i) |
PatchVert * | getVertPtr (int i) |
PatchVec & | getVec (int i) |
PatchVec * | getVecPtr (int i) |
PRVertex & | getRVert (int i) |
PRVertex * | getRVertPtr (int i) |
PRVertex & | getRVec (int i) |
PRVertex * | getRVecPtr (int i) |
BOOL | setNumTVertsChannel (int mp, int ct, BOOL keep=FALSE) |
BOOL | setNumTVerts (int ct, BOOL keep=FALSE) |
int | getNumTVertsChannel (int mp) const |
int | getNumTVerts () const |
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 |
BOOL | setNumTVPatchesChannel (int channel, int ct, BOOL keep=FALSE, int oldCt=0) |
BOOL | setNumTVPatches (int ct, BOOL keep=FALSE, int oldCt=0) |
CoreExport BOOL | setNumMapPatches (int channel, int ct, BOOL keep=FALSE, int oldCt=0) |
void | setTVertChannel (int channel, int i, const UVVert &xyz) |
void | setTVert (int i, const UVVert &xyz) |
void | setTVertChannel (int channel, int i, float x, float y, float z) |
void | setTVert (int i, float x, float y, float z) |
void | setTVPatchChannel (int channel, int i, TVPatch &tvp) |
void | setTVPatch (int i, TVPatch &tvp) |
PatchTVert & | getTVertChannel (int channel, int i) |
PatchTVert & | getTVert (int i) |
PatchTVert * | getTVertPtrChannel (int channel, int i) |
PatchTVert * | getTVertPtr (int i) |
TVPatch & | getTVPatchChannel (int channel, int i) |
TVPatch & | getTVPatch (int i) |
void | setMapVert (int mp, int i, const UVVert &xyz) |
void | setMapVert (int mp, int i, float x, float y, float z) |
void | setMapPatch (int mp, int i, const TVPatch &tvp) |
PatchTVert & | getMapVert (int mp, int i) |
PatchTVert * | getMapVertPtr (int mp, int i) |
TVPatch & | getMapPatch (int mp, int i) |
void | setMtlIndex (MtlID i) |
MtlID | getMtlIndex (void) |
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 void | renderGizmo (GraphicsWindow *gw) |
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 flags, SubPatchHitList &hitList, int numMat=1) |
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) |
void | SetDispFlag (DWORD f) |
DWORD | GetDispFlag (DWORD f) |
void | ClearDispFlag (DWORD f) |
BitArray & | VecSel () |
BitArray & | VertSel () |
BitArray & | EdgeSel () |
BitArray & | PatchSel () |
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) |
int | GetEdge (int v1, int v12, int v21, int v2, int p) |
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) |
int | getNumMaps () |
CoreExport void | setMapSupport (int chan, BOOL init=TRUE) |
BOOL | getMapSupport (int mp) |
int | NumMapChannels () |
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 BOOL | WeldEdges () |
CoreExport void | DeletePatchParts (BitArray &delVerts, BitArray &delPatches) |
CoreExport void | ClonePatchParts (BitArray *patches=NULL) |
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 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) |
CoreExport BaseInterface * | GetInterface (Interface_ID id) |
CoreExport void | SetVertexWeightCount (int i) |
CoreExport void | SetVertexWeight (int i, float w) |
CoreExport float | VertexWeight (int i) |
CoreExport bool | VertexWeightSupport () |
CoreExport float * | GetVSelectionWeights () |
CoreExport void | SupportVSelectionWeights () |
CoreExport int | VertexWeightSelectLevel () |
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 () |
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 |
MtlID | mtlIndex |
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 |
Tab< 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 |
CoreExport ~PatchMesh | ( | ) |
CoreExport int HookFixTopology | ( | ) |
CoreExport void Init | ( | ) |
CoreExport void CopyPatchDataFrom | ( | PatchMesh & | fromPatchMesh | ) |
CoreExport BOOL setNumVerts | ( | int | ct, |
BOOL | keep = FALSE |
||
) |
int getNumVerts | ( | void | ) | [inline] |
{ return numVerts; }
CoreExport BOOL setNumVecs | ( | int | ct, |
BOOL | keep = FALSE |
||
) |
int getNumVecs | ( | void | ) | [inline] |
CoreExport BOOL setNumPatches | ( | int | ct, |
BOOL | keep = FALSE |
||
) |
int getNumPatches | ( | void | ) | [inline] |
CoreExport BOOL setNumEdges | ( | int | ct, |
BOOL | keep = FALSE |
||
) |
int getNumEdges | ( | void | ) | [inline] |
void setVert | ( | int | i, |
const Point3 & | xyz | ||
) | [inline] |
void setVert | ( | int | i, |
float | x, | ||
float | y, | ||
float | z | ||
) | [inline] |
void setVec | ( | int | i, |
const Point3 & | xyz | ||
) | [inline] |
void setVec | ( | int | i, |
float | x, | ||
float | y, | ||
float | z | ||
) | [inline] |
PatchVert& getVert | ( | int | i | ) | [inline] |
{ return verts[i]; }
PatchVert* getVertPtr | ( | int | i | ) | [inline] |
{ return verts+i; }
PatchVec& getVec | ( | int | i | ) | [inline] |
{ return vecs[i]; }
PatchVec* getVecPtr | ( | int | i | ) | [inline] |
{ return vecs+i; }
PRVertex& getRVert | ( | int | i | ) | [inline] |
PRVertex* getRVertPtr | ( | int | i | ) | [inline] |
PRVertex& getRVec | ( | int | i | ) | [inline] |
{ return rVecs[i]; }
PRVertex* getRVecPtr | ( | int | i | ) | [inline] |
{ return rVecs+i; }
BOOL setNumTVertsChannel | ( | int | mp, |
int | ct, | ||
BOOL | keep = FALSE |
||
) | [inline] |
{ return setNumMapVerts (mp?0:1, ct, keep); }
BOOL setNumTVerts | ( | int | ct, |
BOOL | keep = FALSE |
||
) | [inline] |
{ return setNumMapVerts (1, ct, keep); }
int getNumTVertsChannel | ( | int | mp | ) | const [inline] |
{ return numTVerts[mp?0:1]; }
int getNumTVerts | ( | void | ) | const [inline] |
{ return getNumMapVerts(1); }
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 |
BOOL setNumTVPatchesChannel | ( | int | channel, |
int | ct, | ||
BOOL | keep = FALSE , |
||
int | oldCt = 0 |
||
) | [inline] |
{ return setNumMapPatches (channel?0:1, ct, keep, oldCt); }
BOOL setNumTVPatches | ( | int | ct, |
BOOL | keep = FALSE , |
||
int | oldCt = 0 |
||
) | [inline] |
{ return setNumMapPatches (1, ct, keep, oldCt); }
CoreExport BOOL setNumMapPatches | ( | int | channel, |
int | ct, | ||
BOOL | keep = FALSE , |
||
int | oldCt = 0 |
||
) |
void setTVertChannel | ( | int | channel, |
int | i, | ||
const UVVert & | xyz | ||
) | [inline] |
{ tVerts[channel?0:1][i] = xyz; }
void setTVert | ( | int | i, |
const UVVert & | xyz | ||
) | [inline] |
{ tVerts[1][i] = xyz; }
void setTVertChannel | ( | int | channel, |
int | i, | ||
float | x, | ||
float | y, | ||
float | z | ||
) | [inline] |
void setTVert | ( | int | i, |
float | x, | ||
float | y, | ||
float | z | ||
) | [inline] |
void setTVPatchChannel | ( | int | channel, |
int | i, | ||
TVPatch & | tvp | ||
) | [inline] |
{ tvPatches[channel?0:1][i] = tvp; }
void setTVPatch | ( | int | i, |
TVPatch & | tvp | ||
) | [inline] |
PatchTVert& getTVertChannel | ( | int | channel, |
int | i | ||
) | [inline] |
{ return tVerts[channel?0:1][i]; }
PatchTVert& getTVert | ( | int | i | ) | [inline] |
{ return tVerts[1][i]; }
PatchTVert* getTVertPtrChannel | ( | int | channel, |
int | i | ||
) | [inline] |
{ return tVerts[channel?0:1]+i; }
PatchTVert* getTVertPtr | ( | int | i | ) | [inline] |
{ return tVerts[1]+i; }
TVPatch& getTVPatchChannel | ( | int | channel, |
int | i | ||
) | [inline] |
{ return tvPatches[channel?0:1][i]; }
TVPatch& getTVPatch | ( | int | i | ) | [inline] |
void setMapVert | ( | int | mp, |
int | i, | ||
const UVVert & | xyz | ||
) | [inline] |
{ mapVerts(mp)[i] = xyz; }
void setMapVert | ( | int | mp, |
int | i, | ||
float | x, | ||
float | y, | ||
float | z | ||
) | [inline] |
{ Point3 MV(x,y,z); setMapVert (mp, i, MV); }
void setMapPatch | ( | int | mp, |
int | i, | ||
const TVPatch & | tvp | ||
) | [inline] |
{ mapPatches(mp)[i] = tvp; }
PatchTVert& getMapVert | ( | int | mp, |
int | i | ||
) | [inline] |
{ return mapVerts(mp)[i]; }
PatchTVert* getMapVertPtr | ( | int | mp, |
int | i | ||
) | [inline] |
{ return mapVerts(mp) + i; }
TVPatch& getMapPatch | ( | int | mp, |
int | i | ||
) | [inline] |
{ return mapPatches(mp)[i]; }
void setMtlIndex | ( | MtlID | i | ) | [inline] |
MtlID getMtlIndex | ( | void | ) | [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 void renderGizmo | ( | GraphicsWindow * | gw | ) |
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 | flags, | ||
SubPatchHitList & | hitList, | ||
int | numMat = 1 |
||
) |
CoreExport void buildBoundingBox | ( | void | ) |
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 |
||
) |
void SetDispFlag | ( | DWORD | f | ) | [inline] |
{ dispFlags |= f; }
DWORD GetDispFlag | ( | DWORD | f | ) | [inline] |
{ return dispFlags & f; }
void ClearDispFlag | ( | DWORD | f | ) | [inline] |
{ dispFlags &= ~f; }
BitArray& VertSel | ( | ) | [inline] |
BitArray& EdgeSel | ( | ) | [inline] |
BitArray& PatchSel | ( | ) | [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 | ) |
int GetEdge | ( | int | v1, |
int | v12, | ||
int | v21, | ||
int | v2, | ||
int | p | ||
) |
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 |
||
) |
int getNumMaps | ( | ) | [inline] |
CoreExport void setMapSupport | ( | int | chan, |
BOOL | init = TRUE |
||
) |
BOOL getMapSupport | ( | int | mp | ) | [inline] |
int NumMapChannels | ( | ) | [inline] |
{ return MAX_MESHMAPS; }
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 BOOL WeldEdges | ( | ) |
CoreExport void ClonePatchParts | ( | BitArray * | patches = NULL |
) |
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 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 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 | ) |
CoreExport BaseInterface* GetInterface | ( | Interface_ID | id | ) | [virtual] |
Reimplemented from BaseInterfaceServer.
CoreExport void SetVertexWeightCount | ( | int | i | ) |
CoreExport void SetVertexWeight | ( | int | i, |
float | w | ||
) | [inline] |
{ assert( mpVertexWeights ); if ( i >= numVertexWeights ) return; mpVertexWeights[i] = w; }
CoreExport float VertexWeight | ( | int | i | ) | [inline] |
{ if ( !mpVertexWeights ) return 0.0f; if ( i >= numVertexWeights ) return 0.0f; return mpVertexWeights[i]; }
CoreExport bool VertexWeightSupport | ( | ) | [inline] |
{ if ( mpVertexWeights ) return true; return false; }
CoreExport float* GetVSelectionWeights | ( | ) | [inline] |
{ return mpVertexWeights; }
CoreExport void SupportVSelectionWeights | ( | ) |
CoreExport int VertexWeightSelectLevel | ( | ) | [inline] |
{ return mVertexWeightSelectLevel; }
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 class Patch [friend] |
friend class MaxGraphics::IPatchMeshInternal
[friend] |