Detailed Description
- See also:
- Class DWORDTab, Template Class Tab, Class
MEdge, Class
Mesh.
- Description:
- This class represents an edge adjacency list for meshes. For
any given vertex in a mesh this class has a table of DWORDs. These
DWORDs are indices into the edge table (Tab<MEdge> edge). The edges table
stores the edges adjacent to the vertex. So, each vertex has a list
of indices into the edge list that give it the list of edges
adjacent to the vertex. All methods of the class are implemented by
the system.
- Data Members:
- DWORDTab
*list;
This is an array of DWORDTabs, one per vertex. The Tab is a
list of indices into the edge list, one for each edge adjacent to
the vertex.
Tab<MEdge> edges;
The table of edges.
int nverts;
The size of list.
#include <meshadj.h>
List of all
members.
Public Member Functions
|
DllExport |
AdjEdgeList
(Mesh &amesh) |
DllExport |
~AdjEdgeList
() |
DllExport
void |
AddEdge
(DWORD fi, DWORD v1, DWORD v2) |
DWORDTab & |
operator[]
(int i) |
DllExport
int |
FindEdge
(DWORD v0, DWORD v1) |
DllExport
int |
FindEdge
(DWORDTab
&vmap, DWORD v0, DWORD v1) |
DllExport
void |
TransferEdges
(DWORD from, DWORD to, DWORD except1, DWORD except2, DWORD
del) |
DllExport
void |
RemoveEdge
(DWORD from, DWORD e) |
DllExport
void |
OrderAllEdges
(Face *faces) |
DllExport
void |
OrderVertEdges
(DWORD v, Face *faces,
Tab< DWORD >
*flist=NULL) |
DllExport
void |
GetFaceList
(DWORD v, Tab< DWORD
> &flist) |
DllExport
void |
MyDebugPrint
() |
void |
AddEdgeToVertex
(DWORD v, DWORD e) |
Public Attributes
|
DWORDTab * |
list |
Tab< MEdge > |
edges |
int |
nverts |
Constructor & Destructor Documentation
- Parameters:
-
Mesh& amesh
The mesh to build the adjacency list from.
Member Function Documentation
DllExport void AddEdge |
( |
DWORD |
fi, |
|
|
DWORD |
v1, |
|
|
DWORD |
v2 |
|
) |
|
|
DllExport int FindEdge |
( |
DWORD |
v0, |
|
|
DWORD |
v1 |
|
) |
|
|
- Parameters:
- DWORD v0, DWORD v1
The vertices.
- Returns:
- The index into the edge table.
DllExport int FindEdge |
( |
DWORDTab & |
vmap, |
|
|
DWORD |
v0, |
|
|
DWORD |
v1 |
|
) |
|
|
DllExport void TransferEdges |
( |
DWORD |
from, |
|
|
DWORD |
to, |
|
|
DWORD |
except1, |
|
|
DWORD |
except2, |
|
|
DWORD |
del |
|
) |
|
|
DllExport void RemoveEdge |
( |
DWORD |
from, |
|
|
DWORD |
e |
|
) |
|
|
DllExport void OrderAllEdges |
( |
Face
* |
faces |
) |
|
- Parameters:
- Face
*faces
A pointer to the faces for this mesh.
DllExport void OrderVertEdges |
( |
DWORD |
v, |
|
|
Face
* |
faces, |
|
|
Tab< DWORD > * |
flist = NULL |
|
) |
|
|
- Parameters:
- DWORD v
The vertex whose edges should be ordered.
Face
*faces
A pointer to the faces for this mesh.
Tab<DWORD>
*flist=NULL
If non-NULL, this points to an array where the faces using this
vertex should be stored (in order).
DllExport void GetFaceList |
( |
DWORD |
v, |
|
|
Tab< DWORD > & |
flist |
|
) |
|
|
- Parameters:
- DWORD v
The vertex to check.
Tab<DWORD> &
flist
The table of faces.
DllExport void MyDebugPrint |
( |
|
) |
|
void AddEdgeToVertex |
( |
DWORD |
v, |
|
|
DWORD |
e |
|
) |
|
[inline] |
- Parameters:
- DWORD v
The vertex the edge is added to.
DWORD e
The edge to add.
Member Data Documentation
AdjEdgeList AdjEdgeList AdjEdgeList
AdjEdgeList AdjEdgeList AdjEdgeList AdjEdgeList AdjEdgeList
AdjEdgeList AdjEdgeList
AdjEdgeList AdjEdgeList AdjEdgeList
AdjEdgeList AdjEdgeList AdjEdgeList AdjEdgeList AdjEdgeList
AdjEdgeList AdjEdgeList