#include <BRep.h>
Public Types | |
typedef T | Number |
The number type. | |
typedef ads::FixedArray< 1, Number > | Point |
A point in 1-D. | |
typedef geom::BBox< 1, Number > | BBox |
A bounding box. | |
typedef Grid< 1, Number > | Grid |
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 |
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.
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. |
This constructor calls make() with the same arguments.
void cpt::BRep< 1, T >::displayInformation | ( | std::ostream & | out | ) | const [inline] |
Display information about the b-rep.
Report if the manifold is closed.
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.
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. |
void cpt::BRep< 1, T >::make | ( | NumberInputIter | locationsBeginning, | |
NumberInputIter | locationsEnd, | |||
IntegerInputIter | orientationsBeginning, | |||
IntegerInputIter | orientationsEnd | |||
) | [inline] |
Make from the faces of the b-rep.
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. |