vtf-logo

geom::IndexedEdgePolyhedron< T > Class Template Reference

Class for an indexed edge polyhedron in 3-D. More...

#include <IndexedEdgePolyhedron.h>

List of all members.

Public Types

typedef T Number
 The floating point number type.
typedef int SizeType
 The size type is a signed integer.
typedef ads::FixedArray<
3, Number
Point
 The representation of a point in 3 dimensions.
typedef ads::FixedArray<
2, int > 
IndexedEdge
 The representation of an indexed edge.
typedef VertexContainer::const_iterator VertexConstIterator
 A const iterator on vertices.
typedef VertexContainer::iterator VertexIterator
 An iterator on vertices.
typedef EdgeContainer::const_iterator EdgeConstIterator
 A const iterator on indexed edges.
typedef EdgeContainer::iterator EdgeIterator
 An iterator on indexed edges.

Public Member Functions

Constructors etc.
 IndexedEdgePolyhedron ()
 Default constructor. Uninitialized memory.
 IndexedEdgePolyhedron (const IndexedEdgePolyhedron &other)
 Copy constructor.
IndexedEdgePolyhedronoperator= (const IndexedEdgePolyhedron &other)
 Assignment operator.
 ~IndexedEdgePolyhedron ()
 Trivial destructor.
Mathematical functions.
void computeBBox (BBox< 3, Number > *bb) const
 Make a BBox containing the polyhedron.
Accesors.
SizeType getVerticesSize () const
 Return the number of vertices.
SizeType getEdgesSize () const
 Return the number of edges.
const PointgetVertex (const int n) const
 Return a const reference to the specified vertex.
const IndexedEdgegetEdge (const int n) const
 Return a const reference to the specified edge.
const PointgetEdgeSource (const int n) const
 Return a const reference to the specified edge source.
const PointgetEdgeTarget (const int n) const
 Return a const reference to the specified edge target.
Manipulators.
VertexIterator getVerticesBeginning ()
VertexIterator getVerticesEnd ()
EdgeIterator getEdgesBeginning ()
EdgeIterator getEdgesEnd ()
void insertVertex (const Point &x)
 Add a vertex.
void insertEdge (const int i, const int j)
 Add an edge.
void clear ()
 Clear the vertices and edges.
Equality.
bool isEqualTo (const IndexedEdgePolyhedron &x) const

Related Functions

(Note that these are not member functions.)

bool operator== (const IndexedEdgePolyhedron< T > &a, const IndexedEdgePolyhedron< T > &b)
 Return true if the polyhedra are equal.
bool operator!= (const IndexedEdgePolyhedron< T > &a, const IndexedEdgePolyhedron< T > &b)
 Return true if the polyhedra are not equal.


Detailed Description

template<typename T = double>
class geom::IndexedEdgePolyhedron< T >

Class for an indexed edge polyhedron in 3-D.

Parameters:
T is the number type. By default it is double.
This polyhedron stores vertices and indexed edges. (An edge is described by a pair of vertex indices.) With this representation, one can efficiently transform the vertices.


The documentation for this class was generated from the following file:
Generated on Fri Aug 24 12:56:03 2007 for Computational Geometry Package by  doxygen 1.4.7