vtf-logo

Face< 1, T > Class Template Reference

A 1-D face on a b-rep. More...

List of all members.

Public Types

typedef T Number
 The number type.
typedef Number Point
 A Cartesian point.
typedef geom::BBox< 1, NumberBBox
 A bounding box.

Public Member Functions

Constructors, etc.
 Face ()
 Default constructor. Unititialized memory.
 Face (const Point location, const int orientation, const int index, const Point left, const Point right, const Number max_distance)
 Construct a face.
 Face (const Face &other)
 Copy constructor.
Face & operator= (const Face &other)
 Assignment operator.
void make (const Point location, const int orientation, const int index, const Point left, const Point right, const Number max_distance)
 Construct a face.
 ~Face ()
 Trivial destructor.
Accessors.
Point getLocation () const
 Return the location of the face.
int getOrientation () const
 Return the orientation of the face.
Point getNormal () const
 Return the normal to the face.
int getFaceIndex () const
 Return the index of this face in the b-rep.
const BBoxgetDomain () const
 Return the domain containing possible closest points.
Mathematical operations.
bool isValid () const
 Return true if the face is valid.
Number computeDistance (const Point p) const
 Return the signed distance to the face.
Number computeDistanceUnsigned (const Point p) const
 Return the unsigned distance to the face.


Detailed Description

template<typename T>
class Face< 1, T >

A 1-D face on a b-rep.


Constructor & Destructor Documentation

template<typename T>
Face< 1, T >::Face ( const Point  location,
const int  orientation,
const int  index,
const Point  left,
const Point  right,
const Number  max_distance 
) [inline]

Construct a face.

Parameters:
location is the Cartesian location of the face.
orientation is +-1.
index is the index of the face.
left is the location of the left neighbor.
right is the location of the right neighbor.
max_distance is how far the distance is being computed.


Member Function Documentation

template<typename T>
void Face< 1, T >::make ( const Point  location,
const int  orientation,
const int  index,
const Point  left,
const Point  right,
const Number  max_distance 
) [inline]

Construct a face.

Parameters:
location is the Cartesian location of the face.
orientation is +-1.
index is the index of the face.
left is the location of the left neighbor.
right is the location of the right neighbor.
max_distance is how far the distance is being computed.


The documentation for this class was generated from the following file:
Generated on Fri Aug 24 12:55:43 2007 for Closest Point Transform by  doxygen 1.4.7