HalfEdge Class Reference

HalfEdge objects are used in the process of polygon subdivision in MyObject::subdivide(). More...

#include <MyPoint.h>

Collaboration diagram for HalfEdge:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 HalfEdge ()
 HalfEdge (MyPolygon *_poly, MyPoint *_pnt, HalfEdge *_next)
void init (MyPolygon *_poly, MyPoint *_pnt, HalfEdge *_next)

Public Attributes

MyPoint * point
 point of origin of the half edge.
HalfEdge * pair
 matchin half-edge sibling
MyPolygon * poly
 the polygon this half edge is part of
HalfEdge * next
 the next half edge in the polygon circumference.
MyPoint * edgePoint
 the new point generated in this edge in the subdivision process this point is shared between the two edges which make the polygon edge.

Detailed Description

HalfEdge objects are used in the process of polygon subdivision in MyObject::subdivide().

For every subdivision iteration performed, a complete half-edge model is generated for the polygon mesh. a half-edge is a tupple of an edge of a polygon and one of the vertices it touces.

See also:
MyPolygon MyObject::subdivide()


Constructor & Destructor Documentation

HalfEdge::HalfEdge (  )  [inline]

HalfEdge::HalfEdge ( MyPolygon *  _poly,
MyPoint *  _pnt,
HalfEdge *  _next 
) [inline]


Member Function Documentation

void HalfEdge::init ( MyPolygon *  _poly,
MyPoint *  _pnt,
HalfEdge *  _next 
) [inline]


Member Data Documentation

point of origin of the half edge.

matchin half-edge sibling

the polygon this half edge is part of

the next half edge in the polygon circumference.

the new point generated in this edge in the subdivision process this point is shared between the two edges which make the polygon edge.


The documentation for this class was generated from the following file: