#include <face.h>
Public Member Functions | |
| edge_circulator | begin () |
| Reference to an arbitrary HalfEdge of the Race, used for traversal. | |
| const_edge_circulator | begin () const |
| Reference to an arbitrary const HalfEdge of the Race, used for traversal. | |
| Face (HalfEdge *e, bool hole=false) | |
| Constructor. | |
| void | hole (bool h) |
| Sets the 'hole' flag of the Race to true of false. | |
| void | edge (HalfEdge *e) |
| Sets the referenc HalfEdge of the Race. | |
| bool | hole () const |
| Tells if the Race is actually a hole. | |
| HalfEdge * | edge () |
| Returns an arbitrary HalfEdge on the Race's boundary. | |
| const HalfEdge * | edge () const |
| Returns an arbitrary const HalfEdge on the Race's boundary. | |
| const HalfEdge * | fromVertex (int v) const |
| Returns a const HalfEdge on the Race that starts at vertex with index 'v'. | |
| const HalfEdge * | fromVertex (Vertex *v) const |
| Returns a const HalfEdge on the Race that starts at Vertex 'v'. | |
| const HalfEdge * | toVertex (int v) const |
| Returns a const HalfEdge on the Race that ends at vertex with index 'v'. | |
| const HalfEdge * | toVertex (Vertex *v) const |
| Returns a const HalfEdge on the Race that ends at Vertex 'v'. | |
| int | size () const |
| Number of HalfEdge's in the Race. | |
| bool | contains (const HalfEdge *he) const |
| Tells if this Face contains HalfEdge he. | |
| bool | contains (const Vertex *v) const |
| Tells if this Face contains Vertex v. | |
| Geometry::Vector3Df | normal () const |
| Computes the normal of the Face. | |
| Geometry::Vector3Df | centroid () const |
| Computes the centroid of the Face. | |
Protected Attributes | |
| HalfEdge * | _edge |
| bool | _hole |
Classes | |
| class | const_edge_circulator |
| Constant circulator that traverses the HalfEdge(s) that compound the boundary of the Race. More... | |
| class | edge_circulator |
| Circulator that traverses the HalfEdge(s) that compound the boundary of the Race. More... | |
It contains a point to an arbitrary HalfEdge in its boundary, which can be used to traverse the whole face.
Definition at line 36 of file face.h.
| HE::Face::Face | ( | HalfEdge * | e, | |
| bool | hole = false | |||
| ) | [inline, explicit] |
| edge_circulator HE::Face::begin | ( | ) | [inline] |
Reference to an arbitrary HalfEdge of the Race, used for traversal.
Definition at line 58 of file face.h.
References _edge.
Referenced by HE::Polyhedron::adjacent(), centroid(), HE::Polyhedron::check(), contains(), HE::Polyhedron_GL::drawFaces(), HE::Polyhedron_GL::drawHoles(), HE::Polyhedron_GL::drawTriangles(), fromVertex(), normal(), HE::operator<<(), HE::Polyhedron::saveAsTri(), size(), toVertex(), and HE::Polyhedron::writeFaces().
| const_edge_circulator HE::Face::begin | ( | ) | const [inline] |
1.5.3