The methods in this class are grouped below.
(Links go to the PatchMesh Class Reference
page.)
- Constructors / Destructor
- PatchMesh::PatchMesh()
PatchMesh::PatchMesh(PatchMesh&
fromPatch)
PatchMesh::Init()
PatchMesh::~PatchMesh()
PatchMesh::CopyPatchDataFrom(PatchMesh
&fromPatchMesh)
- Vert Access
- PatchMesh::setNumVerts(int
ct, BOOL keep = FALSE)
PatchMesh::getNumVerts()
PatchMesh::setVert(int
i, const Point3 &xyz)
PatchMesh::setVert(int
i, float x, float y, float z)
PatchMesh::getVert(int
i)
PatchMesh::getVertPtr(int
i)
- TVert Access
- PatchMesh::setNumTVerts(int
ct, BOOL keep=FALSE)
PatchMesh::getNumTVerts()
const;
PatchMesh::setNumTVertsChannel(int
mp, int ct, BOOL keep=FALSE)
PatchMesh::getNumTVertsChannel(int
mp) const;
PatchMesh::mapVerts(int
mp) const;
PatchMesh::setNumMapVerts(int
mp, int ct, BOOL keep = FALSE)
PatchMesh::getNumMapVerts(int
mp) const;
PatchMesh::setTVert(int
i, const UVVert &xyz)
PatchMesh::setTVert(int
i, float x, float y, float z)
PatchMesh::setTVertChannel(int
channel, int i, const UVVert &xyz)
PatchMesh::setTVertChannel(int
channel, int i, float x, float y, float z)
PatchMesh::setTVPatchChannel(int
channel, int i, TVPatch &tvp)
PatchMesh::setTVPatch(int
i, TVPatch &tvp)
PatchMesh::setMapVert(int
mp, int i, const UVVert &xyz)
PatchMesh::setMapVert(int
mp, int i, float x, float y, float z)
PatchMesh::setMapPatch(int
mp, int i, const TVPatch &tvp)
PatchMesh::getMapVert(int
mp, int i)
PatchMesh::getMapVertPtr(int
mp, int i)
PatchMesh::getMapPatch(int
mp, int i)
PatchMesh::getTVert(int
i)
PatchMesh::getTVertPtr(int
i)
PatchMesh::getTVertChannel(int
channel, int i)
PatchMesh::getTVertPtrChannel(int
channel, int i)
- TVPatch Access
- PatchMesh::setNumTVPatches(int
ct, BOOL keep=FALSE, int oldCt=0)
PatchMesh::setNumTVPatchesChannel(int
channel, int ct, BOOL keep=FALSE, int oldCt=0)
PatchMesh::setNumMapPatches(int
channel, int ct, BOOL keep=FALSE, int oldCt=0)
PatchMesh::getTVPatchChannel(int
channel, int i)
PatchMesh::getTVPatch(int
i)
- Vec Access
- PatchMesh::setNumVecs(int
ct, BOOL keep = FALSE)
PatchMesh::getNumVecs()
PatchMesh::setVec(int
i, const Point3 &xyz)
PatchMesh::setVec(int
i, float x, float y, float z)
PatchMesh::getVec(int
i)
PatchMesh::getVecPtr(int
i)
- Patch Access
- PatchMesh::setNumPatches(int
ct, BOOL keep = FALSE)
PatchMesh::getNumPatches()
- Edge Access
- PatchMesh::setNumEdges(int
ct, BOOL keep = FALSE)
PatchMesh::getNumEdges()
- RVert Access
- PatchMesh::getRVert(int
i)
PatchMesh::getRVertPtr(int
i)
- Material / Mapping Access
- PatchMesh::setMtlIndex(MtlID
i)
PatchMesh::getMtlIndex()
PatchMesh::setNumMaps(int
ct, BOOL keep=TRUE)
PatchMesh::setMapSupport(int
chan, BOOL init=TRUE)
PatchMesh::getNumMaps()
PatchMesh::getMapSupport(int
mp)
PatchMesh::NumMapChannels()
PatchMesh::ApplyUVWMap(int
type, float utile, float vtile, float wtile,
PatchMesh::ChangePatchToLinearMapping(int
index)
PatchMesh::ChangePatchToCurvedMapping(int
index)
PatchMesh::ArePatchesLinearMapped(int
index)
PatchMesh::ArePatchesCurvedMapped(int
index)
PatchMesh::RecordTopologyTags()
PatchMesh::Transform(Matrix3
&tm)
PatchMesh::Weld(float
thresh, BOOL weldIdentical=FALSE, int startVert=0)
PatchMesh::DeletePatchParts(BitArray
&delVerts, BitArray &delPatches)
PatchMesh::Subdivide(int
type, BOOL propagate)
PatchMesh::AddPatch(int
type)
PatchMesh::AddHook()
PatchMesh::AddHook(int
index)
PatchMesh::AddHook(int
vertIndex, int segIndex)
PatchMesh::RemoveHook()
PatchMesh::UpdateHooks()
PatchMesh::CreateExtrusion(int
type = PATCH_PATCH, BOOL edgeClone=FALSE)
PatchMesh::AverageNormals(int
type = PATCH_PATCH)
PatchMesh::PatchNormal(int
index)
PatchMesh::MoveNormal(float
amount, BOOL useLocalNorms, int type)
PatchMesh::FlipPatchNormal(int
index)
PatchMesh::UnifyNormals(BOOL
useSel)
PatchMesh::AutoSmooth(float
angle, BOOL useSel, BOOL preventIndirectSmoothing)
PatchMesh::CreateBevel()
PatchMesh::Bevel(float
amount, int smoothStart, int smoothEnd)
PatchMesh::GetBevelDir(int
patchVertID)
- buildLinkages() / computeInteriors() / ApplyConstraints() /
GetEdge()
- PatchMesh::buildLinkages(int
patch = -1)
PatchMesh::computeInteriors()
PatchMesh::ApplyConstraints(BOOL
selOnly = FALSE)
PatchMesh::GetEdge(int
v1, int v12, int v21, int v2, int p)
- ClonePatchParts() / SingleEdgesOnly() / GetElement() /
WeldEdges()
- PatchMesh::ClonePatchParts(BitArray *patches = NULL)
PatchMesh::SingleEdgesOnly()
PatchMesh::GetElement(int
index)
PatchMesh::WeldEdges()
- Selection Weights
- PatchMesh::GetVSelectionWeights()
PatchMesh::SupportVSelectionWeights()
- Conversion to Mesh
- PatchMesh::ComputeMesh(Mesh&
msh, DWORD convertFlags)
- Render / Snap / Hit Test
- PatchMesh::render(GraphicsWindow *gw, Material *ma, RECT *rp, int
compFlags, int mumMat=1)
PatchMesh::select(GraphicsWindow *gw, Material *ma,
HitRegion *hr, int abortOnHit = FALSE, int numMat=1)
PatchMesh::snap(GraphicsWindow
*gw, SnapInfo *snap, IPoint2 *p, Matrix3 &tm)
PatchMesh::SubObjectHitTest(GraphicsWindow *gw, Material *ma,
HitRegion *hr, DWORD flags, SubPatchHitList& hitList,
int numMat=1)
- Bounding Box Methods
- PatchMesh::buildBoundingBox()
PatchMesh::getBoundingBox(Matrix3 *tm=NULL)
PatchMesh::renderGizmo(GraphicsWindow
*gw)
- Data Flow Evaluation
- PatchMesh::InvalidateGeomCache()
PatchMesh::FreeAll()
PatchMesh::ShallowCopy(PatchMesh
*amesh, ChannelMask channels)
PatchMesh::DeepCopy(PatchMesh
*amesh, ChannelMask channels)
PatchMesh::NewAndCopyChannels(ChannelMask
channels)
PatchMesh::FreeChannels(ULONG_PTR
channels, int zeroOthers=1)
- Display Flags Access
- PatchMesh::SetDispFlag(DWORD
f)
PatchMesh::GetDispFlag(DWORD
f)
PatchMesh::ClearDispFlag(DWORD
f)
- Selection Access
- PatchMesh::VertSel()
PatchMesh::PatchSel()
PatchMesh::EdgeSel()
PatchMesh::VertexTempSel()
- Tri / Quad Patch Creation
- PatchMesh::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);
PatchMesh::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);
- Get/Set Mesh Steps and Adaptive Switch/TessApprox
- PatchMesh::SetMeshSteps(int
steps)
PatchMesh::GetMeshSteps()
PatchMesh::SetMeshStepsRender(int
steps)
PatchMesh::GetMeshStepsRender()
PatchMesh::SetShowInterior(BOOL
si)
PatchMesh::GetShowInterior()
PatchMesh::SetAdaptive(BOOL
sw)
PatchMesh::GetAdaptive()
PatchMesh::SetViewTess(TessApprox
tess)
PatchMesh::GetViewTess()
PatchMesh::SetProdTess(TessApprox
tess)
PatchMesh::GetProdTess()
PatchMesh::SetDispTess(TessApprox
tess)
PatchMesh::GetDispTess()
PatchMesh::GetViewTessNormals()
PatchMesh::SetViewTessNormals(BOOL
use)
PatchMesh::GetProdTessNormals()
PatchMesh::SetProdTessNormals(BOOL
use)
PatchMesh::GetViewTessWeld()
PatchMesh::SetViewTessWeld(BOOL
weld)
PatchMesh::GetProdTessWeld()
PatchMesh::SetProdTessWeld(BOOL
weld)
- Dump()
- PatchMesh::Dump()
PatchMesh::IntersectRay(Ray&
ray, float& at, Point3& norm)
- Operators:
- PatchMesh::operator=(PatchMesh&
fromPatchMesh)
PatchMesh::operator=(Mesh&
fromMesh)