vtf-logo

cpt::BRep< 1, T > Class Template Reference

A class for a b-rep. More...

#include <BRep.h>

List of all members.

Public Types

typedef T Number
 The number type.
typedef ads::FixedArray<
1, Number
Point
 A point in 1-D.
typedef geom::BBox< 1, NumberBBox
 A bounding box.
typedef Grid< 1, NumberGrid
 The grid type.

Public Member Functions

 BRep ()
 Default constructor. An empty b-rep.
template<typename NumberInputIter, typename IntegerInputIter>
 BRep (NumberInputIter locationsBeginning, NumberInputIter locationsEnd, IntegerInputIter orientationsBeginning, IntegerInputIter orientationsEnd, const BBox &cartesianDomain, const Number maximumDistance)
 Construct from the faces of the b-rep. Throw away irrelevant ones.
 BRep (const BRep &other)
 Copy constructor.
BRep & operator= (const BRep &other)
 Assignment operator.
 ~BRep ()
 Trivial destructor.
template<typename NumberInputIter, typename IntegerInputIter>
void make (NumberInputIter locationsBeginning, NumberInputIter locationsEnd, IntegerInputIter orientationsBeginning, IntegerInputIter orientationsEnd)
 Make from the faces of the b-rep.
template<typename NumberInputIter, typename IntegerInputIter>
void make (NumberInputIter locationsBeginning, NumberInputIter locationsEnd, IntegerInputIter orientationsBeginning, IntegerInputIter orientationsEnd, const BBox &cartesianDomain, const Number maximumDistance)
 Make from the faces of the b-rep. Throw away irrelevant ones.
bool isEmpty () const
 Return true if there are no faces.
int getSimplicesSize () const
 Return the number of faces.
int computeMaximumFaceIdentifier () const
 Return the maximum face identifier.
std::pair< int, int > computeClosestPoint (std::vector< Grid > &grids, const Number maximumDistance) const
 Calculate the closest point transform to this BRep.
std::pair< int, int > computeClosestPointUnsigned (std::vector< Grid > &grids, const Number maximumDistance) const
 Calculate the closest point transform with unsigned distance to this BRep.
BBox computeBBox () const
 Return the bounding box that contains the mesh.
void displayInformation (std::ostream &out) const
 Display information about the b-rep.
void display (std::ostream &out) const
 Display the b-rep.

Classes

class  FaceRep
class  IdentifierCompare
class  LocationCompare


Detailed Description

template<typename T>
class cpt::BRep< 1, T >

A class for a b-rep.


Constructor & Destructor Documentation

template<typename T>
template<typename NumberInputIter, typename IntegerInputIter>
cpt::BRep< 1, T >::BRep ( NumberInputIter  locationsBeginning,
NumberInputIter  locationsEnd,
IntegerInputIter  orientationsBeginning,
IntegerInputIter  orientationsEnd,
const BBox cartesianDomain,
const Number  maximumDistance 
) [inline]

Construct from the faces of the b-rep. Throw away irrelevant ones.

Parameters:
locationsBeginning is the beginning of the face locations.
locations_end is the end of the face locations.
orientations_begin is the beginning of the face orientations. +1 means that positive distances are to the right. -1 means that positive distances are to the left.
orientationsEnd is the end of the face orientations.
cartesianDomain is the domain of the grid.
maximumDistance is how far the distance is being computed.
Clip the b-rep so that faces outside the relevant Cartesian domain are thrown away.

This constructor calls make() with the same arguments.


Member Function Documentation

template<typename T>
void cpt::BRep< 1, T >::displayInformation ( std::ostream &  out  )  const [inline]

Display information about the b-rep.

Report if the manifold is closed.

template<typename T>
template<typename NumberInputIter, typename IntegerInputIter>
void cpt::BRep< 1, T >::make ( NumberInputIter  locationsBeginning,
NumberInputIter  locationsEnd,
IntegerInputIter  orientationsBeginning,
IntegerInputIter  orientationsEnd,
const BBox cartesianDomain,
const Number  maximumDistance 
) [inline]

Make from the faces of the b-rep. Throw away irrelevant ones.

Parameters:
locationsBeginning is the beginning of the face locations.
locationsEnd is the end of the face locations.
orientationsBeginning is the beginning of the face orientations. +1 means that positive distance are to the right. -1 means that positive distance are to the left.
orientationsEnd is the end of the face orientations.
cartesianDomain is the domain of the grid.
maximumDistance is how far the distance is being computed.
Clip the b-rep so that faces outside the relevant Cartesian domain are thrown away.

template<typename T>
template<typename NumberInputIter, typename IntegerInputIter>
void cpt::BRep< 1, T >::make ( NumberInputIter  locationsBeginning,
NumberInputIter  locationsEnd,
IntegerInputIter  orientationsBeginning,
IntegerInputIter  orientationsEnd 
) [inline]

Make from the faces of the b-rep.

Parameters:
locationsBeginning is the beginning of the face locations.
locationsEnd is the end of the face locations.
orientationsBeginning is the beginning of the face orientations. +1 means that positive distance are to the right. -1 means that positive distance are to the left.
orientationsEnd is the end of the face orientations.


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