#include <patch.h>
Class Description
- See also:
- Class PatchMesh,
Template Class
Tab, Working with
Patches.
- Description:
- This class stores the information associated with a patch
vertex and provides methods to access the data associated with this
vertex. All methods of this class are implemented by the
system.
- Data Members:
- Point3
p;
The vertex location.
IntTab vectors;
The list of vectors attached to this vertex. There can be any
number of vectors attached to a vertex. For example consider the
north pole of a sphere made from a set of triangular patches. If
there were 16 patches meeting at this point there would be 16
vectors. The table contains the indices of these vectors. This is
set up automatically when a developer calls
buildLinkages().
Note: typedef Tab<int> IntTab;
Note that the methods below allow a developer to manipulate the
tables of this class. Developers must be careful when doing so as
it is easy to corrupt the patch data structures. It may be easier
for developers to manipulate the patches, delete vertices, etc., by
manipulating them in the PatchMesh and then call
buildLinkages() again. The methods below do work however and
may be used.
IntTab patches;
The list of patches using this vertex.
IntTab edges;
This data member is available in release 4.0 and later only.
The list of edges using this vertex. This table will be set up
automatically when a developer calls buildLinkages().
DWORD flags;
The patch vertex flags
PVERT_COPLANAR
This constrains things such that this vertex and all the vectors
that are attached to it are coplanar. If this is set, and you call
ApplyConstraints(), the system will adjust the vectors to
the average plane that they are in and then constrain them to
it.
PVERT_CORNER
The vertex is a corner.
PVERT_HIDDEN
The vertex is hidden.
int aux1;
Used to track topo changes during editing (Edit Patch).
int aux2;
Used to track topology changes during editing (PatchMesh).
Constructor & Destructor Documentation
Member Function Documentation
- Parameters:
- PatchVert& from
The patch vertex to copy from.
CoreExport void ResetData |
( |
|
) |
|
CoreExport int FindVector |
( |
int |
index |
) |
|
- Parameters:
- int index
The index in the PatchMesh class vectors table
(vecs) of the vector to find.
CoreExport void AddVector |
( |
int |
index |
) |
|
- Parameters:
- int index
The index in the PatchMesh class vectors table
(vecs) of the vector to add.
CoreExport void DeleteVector |
( |
int |
index |
) |
|
- Parameters:
- int index
The index in the PatchMesh class vectors table
(vecs) of the vector to delete.
CoreExport int FindPatch |
( |
int |
index |
) |
|
- Parameters:
- int index
The index in the PatchMesh class patches table
(patches) of the patch to find.
CoreExport void AddPatch |
( |
int |
index |
) |
|
- Parameters:
- int index
The index in the PatchMesh class patches table
(patches) of the patch to add.
CoreExport void DeletePatch |
( |
int |
index |
) |
|
- Parameters:
- int index
The index in the PatchMesh class patches table
(patches) of the patch to delete.
CoreExport int FindEdge |
( |
int |
index |
) |
|
- Parameters:
- int index
The index in the PatchMesh class edges table
(edges) of the edge to find.
CoreExport void AddEdge |
( |
int |
index |
) |
|
- Parameters:
- int index
The index in the PatchMesh class edges table
(edges) of the edge to add.
CoreExport void DeleteEdge |
( |
int |
index |
) |
|
- Parameters:
- int index
The index in the PatchMesh class edges table
(edges) of the edge to delete.
void Transform |
( |
Matrix3 & |
tm |
) |
[inline] |
- Parameters:
- Matrix3
&tm
The matrix which transforms the point.
CoreExport void SetHidden |
( |
BOOL |
sw = TRUE |
) |
[inline] |
- Parameters:
- BOOL sw = TRUE
TRUE to set to hidden; FALSE for visible.
BOOL IsHidden |
( |
|
) |
[inline] |
Member Data Documentation