Mesh Library - Edge
Sturcture: | Edge |
source: | edge.c |
Definition:
struct edge{
HalfEdge *he1;
HalfEdge *he2;
Solid *esolid;
Edge *next;
Edge *prev;
int alive;
};
Data Members:
- he1,he2 - two halfedges attached to the current edge.
- esolid - back pointer to the solid this edge belongs to
- next,prev - edge pointers in the edge list of esolid, no geometric
meaning
- alive - indicating if this edge is alive
Methods:
- void EdgeConstruct( Solid ** s, HalfEdge * he1, HalfEdge * he2);
Construc an edge, which belongs to s, and with he1 and he2 attached
- void EdgeDestruct( Edge ** e);
Desctruct the edge e
- Face * EdgeFirstFace( Edge * e );
Return one face adjacent to edge e
- Face * EdgeSecondFace( Edge *);
Return another face adjacent to edge e