|
Developer Documentation |
|
Centre for Vision, Speech & Signal Processing |
Comments:
-----------------------------------------------------
Mesh polygonal element
Consists of N nodes
Variables:
- IntT index;
-
- DListC nodes;
-
polygon nodes ccw order
- DListC elems;
-
elems (unordered)
DListC edges; // polygon edges unordered
MeshElemProjC local;
OrthoProjection3to2dC local;
local 2D projection
- int local_set;
-
flag local coordinates setup
Methods:
- MeshElemC()
-
- ~MeshElemC()
-
destruct
Access to Element Data
----------------------
- void SetIndex(const IntT i)
-
Setup element index
- IntT Index()
-
Get element index
Operations
----------
- BooleanT IsBound()
-
Test if the element is on the mesh boundary
- Vector3dC Normal()
-
Evaluate the element normal
Normal direction from ccw node ordering
- MeshNearestPointT NearestPoint(const Vector3dC & v)
-
nearest point on element to vector v
- void InsNode(MeshNodeC * node)
-
Insert pointer to element node (ccw order)
- void InsElem(MeshElemC * elem)
-
Insert pointer to an adjacent element
- DListC<MeshNodeC *> & Nodes()
-
Get a list of pointers to element nodes
- DListC<MeshElemC *> & Elems()
-
Get a list of pointers to adjacent elements
LOCAL COORDINATE FRAME
- MeshElemProjC GetLocal()
-
Compute local coordinates
void SetLocal();
store local coordinates
- Vector3dC Proj(const Vector3dC & point)
-
- Vector3dC ProjGlobal(const Point2dC & point)
-
- Point2dC ProjLocal(const Vector3dC & p)
-
- IntT IsInside(const Vector3dC & v)
-
|
Programmer:Adrian Hilton, Documentation by CxxDoc: Tue Mar 20 10:49:27 2001
|