|
Developer Documentation |
|
Centre for Vision, Speech & Signal Processing |
Comments:
-----------------------------------------------------
MeshEdgeC represents an edge in the polgonal mesh MeshC
An edge consist of pointers to two nodes
Variables:
- OrthoProjection3to1dC local;
-
local 1D projection
- int local_set;
-
flag local coordinates setup
Methods:
- MeshEdgeC()
-
Empty edge
- MeshEdgeC(MeshNodeC * node1,MeshNodeC * node2)
-
- ~MeshEdgeC()
-
Destruct edge
Access to Edge Data
-------------------
- MeshNodeC * Node1()
-
Pointer to 1st edge node
- MeshNodeC * Node2()
-
Pointer to 2nd edge node
Operations on Edge
------------------
- BooleanT IsBound()
-
Test if edge is on bounary
0(Nelem^2) operations - worst case
- IntT IsEqual(MeshEdgeC & edge)
-
is this edge equal to edge e (undirected)
- Vector3dC NearestPoint(const Vector3dC & v)
-
Position of nearest point on edge to vector v
- void SetLocal()
-
Setup local coordinates
- Vector3dC Proj(const Vector3dC & v)
-
- Vector3dC ProjGlobal(const RealT & v)
-
- RealT ProjLocal(const Vector3dC & point)
-
- IntT IsInside(const Vector3dC & v)
-
|
Programmer:Adrian Hilton, Documentation by CxxDoc: Tue Mar 20 10:49:27 2001
|