#include <WEMPolygon.h>

Public Member Functions | |
| WEMPolygon () | |
| Standard constructor. | |
| WEMPolygon (const WEMPolygon &p) | |
| Standard copy constructor. | |
| virtual | ~WEMPolygon () |
| Standard destructor. | |
| void | clone (WEMPolygon *polygon) |
| Clone given triangle. | |
| virtual void | computeNormal () |
| Compute normal. | |
| virtual unsigned int | getNumNodes () const |
| Get number of nodes. | |
| virtual void | setNumNodes (unsigned int numNodes) |
| Set number of nodes. | |
| virtual int | getIndex (WEMNode *node) const |
| Get index of given node. | |
| virtual WEMNode * | getNodeAt (unsigned int index) |
| Get node at given index in face. | |
| virtual const WEMNode * | getNodeAt (unsigned int index) const |
| Get node at given index in face. | |
| virtual void | setNode (unsigned int index, WEMNode *node) |
| Set given node to given index in face. Notice that the number of nodes is not changed here!!! | |
| virtual void | replace (WEMNode *orig, WEMNode *replacement) |
| Replace given orig node by given replace node. | |
| virtual bool | contains (WEMNode *node) const |
| Does this face contain the given node? | |
| virtual void | addNode (WEMNode *node) |
| Add node (dynamic). | |
| virtual Vector3 | getNodePositionAt (unsigned int index) const |
| Get the position of a node at the given index. | |
| virtual int | getIndex (WEMEdge *edge) const |
| Get index of given edge. | |
| virtual WEMEdge * | getEdgeAt (unsigned int index) |
| Get edge at given index in face. | |
| virtual const WEMEdge * | getEdgeAt (unsigned int index) const |
| Get edge at given index in face. | |
| virtual void | setEdge (unsigned int index, WEMEdge *edge) |
| Set given edge to given index in face. | |
| virtual void | replace (WEMEdge *orig, WEMEdge *replacement) |
| Replace given orig node by given replace edge. | |
| virtual bool | contains (WEMEdge *edge) const |
| Does this face contain the given edge? | |
| virtual Vector3 | getCentroid () const |
| Returns the geometric centroid of a face. | |
| virtual double | getPerimeter () const |
| Calculate perimeter of face. | |
| virtual double | getArea () const |
| Calculate area of face. | |
| virtual WEMNode * | getOther (WEMNode *, WEMNode *) |
| Returns the node incident to this face that is not given as a parameter. | |
| virtual const WEMNode * | getOther (WEMNode *, WEMNode *) const |
| Returns the node incident to this face that is not given as a parameter. | |
| virtual WEMEdge * | getOther (WEMEdge *, WEMEdge *) |
| Returns the edge incident to this face that is not given as a parameter. | |
| virtual const WEMEdge * | getOther (WEMEdge *, WEMEdge *) const |
| Returns the edge incident to this face that is not given as a parameter. | |
| virtual WEMEdge * | getEdgeNotContaining (WEMNode *) |
| Returns the edge not containing given node. | |
| virtual const WEMEdge * | getEdgeNotContaining (WEMNode *) const |
| Returns the edge not containing given node. | |
| virtual double | getQuality () const |
| Calculate quality of face. | |
| virtual int | isConcave () const |
| Is this face a concave polygon? Return number of concavities. | |
| virtual void | mirror () |
| Mirror face -> edge information gets corrupted!!! Use WEM::buildEdgeConnectivity afterwards. | |
Definition at line 20 of file WEMPolygon.h.
| ml::WEMPolygon::WEMPolygon | ( | ) |
Standard constructor.
| ml::WEMPolygon::WEMPolygon | ( | const WEMPolygon & | p | ) |
Standard copy constructor.
| virtual ml::WEMPolygon::~WEMPolygon | ( | ) | [virtual] |
Standard destructor.
| virtual void ml::WEMPolygon::addNode | ( | WEMNode * | node | ) | [inline, virtual] |
| void ml::WEMPolygon::clone | ( | WEMPolygon * | polygon | ) |
Clone given triangle.
| virtual void ml::WEMPolygon::computeNormal | ( | ) | [virtual] |
| virtual bool ml::WEMPolygon::contains | ( | WEMEdge * | edge | ) | const [virtual] |
| virtual bool ml::WEMPolygon::contains | ( | WEMNode * | node | ) | const [virtual] |
| virtual double ml::WEMPolygon::getArea | ( | ) | const [virtual] |
| virtual Vector3 ml::WEMPolygon::getCentroid | ( | ) | const [virtual] |
| virtual const WEMEdge* ml::WEMPolygon::getEdgeAt | ( | unsigned int | index | ) | const [inline, virtual] |
Get edge at given index in face.
Reimplemented from ml::WEMFace.
Definition at line 62 of file WEMPolygon.h.
References getEdgeAt().
Referenced by getEdgeAt().
| virtual WEMEdge* ml::WEMPolygon::getEdgeAt | ( | unsigned int | index | ) | [inline, virtual] |
Get edge at given index in face.
Reimplemented from ml::WEMFace.
Definition at line 60 of file WEMPolygon.h.
Returns the edge not containing given node.
Implements ml::WEMFace.
Definition at line 87 of file WEMPolygon.h.
Returns the edge not containing given node.
Implements ml::WEMFace.
Definition at line 85 of file WEMPolygon.h.
| virtual int ml::WEMPolygon::getIndex | ( | WEMEdge * | edge | ) | const [virtual] |
| virtual int ml::WEMPolygon::getIndex | ( | WEMNode * | node | ) | const [virtual] |
| virtual const WEMNode* ml::WEMPolygon::getNodeAt | ( | unsigned int | index | ) | const [inline, virtual] |
Get node at given index in face.
Implements ml::WEMFace.
Definition at line 45 of file WEMPolygon.h.
References getNodeAt().
Referenced by getNodeAt().
| virtual WEMNode* ml::WEMPolygon::getNodeAt | ( | unsigned int | index | ) | [inline, virtual] |
Get node at given index in face.
Implements ml::WEMFace.
Definition at line 43 of file WEMPolygon.h.
| virtual Vector3 ml::WEMPolygon::getNodePositionAt | ( | unsigned int | index | ) | const [inline, virtual] |
Get the position of a node at the given index.
Implements ml::WEMFace.
Definition at line 55 of file WEMPolygon.h.
| virtual unsigned int ml::WEMPolygon::getNumNodes | ( | ) | const [inline, virtual] |
Returns the edge incident to this face that is not given as a parameter.
Implements ml::WEMFace.
Definition at line 83 of file WEMPolygon.h.
Returns the edge incident to this face that is not given as a parameter.
Implements ml::WEMFace.
Definition at line 81 of file WEMPolygon.h.
Returns the node incident to this face that is not given as a parameter.
Implements ml::WEMFace.
Definition at line 79 of file WEMPolygon.h.
Returns the node incident to this face that is not given as a parameter.
Implements ml::WEMFace.
Definition at line 77 of file WEMPolygon.h.
| virtual double ml::WEMPolygon::getPerimeter | ( | ) | const [virtual] |
| virtual double ml::WEMPolygon::getQuality | ( | ) | const [virtual] |
Calculate quality of face.
The quality of a triangle is defined as the ratio of the square root of its surface area to its perimeter relative to this same ratio for an equilateral triangle with the same area. The quality is then one for an equilateral triangle and tends to zero for a very stretched triangle.
Implements ml::WEMFace.
| virtual int ml::WEMPolygon::isConcave | ( | ) | const [virtual] |
| virtual void ml::WEMPolygon::mirror | ( | ) | [virtual] |
Mirror face -> edge information gets corrupted!!! Use WEM::buildEdgeConnectivity afterwards.
Implements ml::WEMFace.
| virtual void ml::WEMPolygon::setEdge | ( | unsigned int | index, | |
| WEMEdge * | edge | |||
| ) | [inline, virtual] |
Set given edge to given index in face.
Reimplemented from ml::WEMFace.
Definition at line 64 of file WEMPolygon.h.
| virtual void ml::WEMPolygon::setNode | ( | unsigned int | index, | |
| WEMNode * | node | |||
| ) | [inline, virtual] |
Set given node to given index in face. Notice that the number of nodes is not changed here!!!
Reimplemented from ml::WEMFace.
Definition at line 47 of file WEMPolygon.h.
| virtual void ml::WEMPolygon::setNumNodes | ( | unsigned int | numNodes | ) | [inline, virtual] |
1.5.8