#include <edge.h>
Public Member Functions | |
| Edge (Vertex *=NULL, Edge *=NULL, Edge *=NULL, Face *=NULL, bool=true) | |
| ~Edge () | |
| float | distanceTo (Coordinates c) const |
| float | distanceTo (float x, float y) const |
| float | squareDistanceTo (Coordinates c) const |
| float | squareDistanceTo (float x, float y) const |
| bool | coordOnTheStrictRight (Coordinates) const |
| bool | coordOnTheRight (Coordinates) const |
| bool | coordOnTheStrictLeft (Coordinates) const |
| bool | coordOnTheLeft (Coordinates) const |
| Vertex * | originVertex () const |
| Vertex * | destinVertex () const |
| Edge * | oppositeEdge () const |
| Edge * | nextLeftEdge () const |
| Edge * | prevLeftEdge () const |
| Edge * | nextRightEdge () const |
| Edge * | prevRightEdge () const |
| Edge * | rotLeftEdge () const |
| Edge * | rotRightEdge () const |
| Face * | leftFace () const |
| Face * | rightFace () const |
| bool | isVisible () const |
| bool | isConstraigned () const |
| bool | isExternal () const |
| unsigned int | getID () const |
| float | length () const |
| float | squareLength () const |
| Coordinates | middle () const |
| void | setOriginVertex (Vertex *v) |
| void | setOppositeEdge (Edge *e) |
| void | setNextLeftEdge (Edge *e) |
| void | setLeftFace (Face *f, short ttl=4) |
| void | setVisibility (bool v) |
| void | setConstraigned (bool c) |
Public Attributes | |
| bool | passing |
Edge is the main object of quad-edge representation.
| Edge::Edge | ( | Vertex * | orgn = NULL, |
| Edge * | oppst = NULL, |
||
| Edge * | nxt_lft = NULL, |
||
| Face * | fc = NULL, |
||
| bool | visible = true |
||
| ) |
Given references to other objects, if not NULL, will be modified as possible. (calls to accessors setEdge)
| orgn | origin Vertex of this Edge |
| oppst | opposite Edge |
| nxt_left | next left Edge |
| Face | delimited by this Edge |
| visible | necessary for quad-edge representation, and be only set to true if user know exactly what he do |
| Edge::~Edge | ( | ) |
Frees.
| bool Edge::coordOnTheLeft | ( | Coordinates | c | ) | const |
| c | evaluated Coordinates |
| bool Edge::coordOnTheRight | ( | Coordinates | c | ) | const |
| c | evaluated Coordinates |
| bool Edge::coordOnTheStrictLeft | ( | Coordinates | c | ) | const |
| c | evaluated Coordinates |
| bool Edge::coordOnTheStrictRight | ( | Coordinates | c | ) | const |
| c | evaluated Coordinates |
|
inline |
| c | target Coordinates |
|
inline |
| x | x coordinate of target |
| y | y coordinate of target |
| bool Edge::isExternal | ( | ) | const |
| float Edge::length | ( | ) | const |
| Coordinates Edge::middle | ( | ) | const |
|
inline |
| c | target Coordinates |
| float Edge::squareDistanceTo | ( | float | px, |
| float | py | ||
| ) | const |
| x | x coordinate of target |
| y | y coordinate of target |
| x | x coordinate of target |
| y | y coordinate of target Return square of distance between the edge and given coordinates. |
| float Edge::squareLength | ( | ) | const |
1.8.1.2