vtf-logo

cpt::Edge< 3, T > Class Template Reference

An edge on a b-rep in 3-D. More...

#include <Edge.h>

List of all members.

Public Types

typedef T Number
 The number type.
typedef ads::FixedArray<
3, T > 
Point
 A Cartesian point.
typedef geom::BBox< 3, NumberBBox
 A bounding box.
typedef geom::RegularGrid<
3, Number
Grid
 The representation of a regular grid.
typedef geom::IndexedEdgePolyhedron<
Number
Polyhedron
 An indexed edge polyhedron type.

Public Member Functions

Constructors, etc.
 Edge ()
 Default constructor. Unititialized memory.
 Edge (const Point &source, const Point &target, const Point &leftNormal, const Point &rightNormal, const int adjacentFaceIndex)
 Construct from points and neighboring face normals.
void make (const Point &source, const Point &target, const Point &leftNormal, const Point &rightNormal, const int adjacentFaceIndex)
 Make from points and neighboring face normals.
 Edge (const Edge &other)
 Copy constructor.
Edge & operator= (const Edge &other)
 Assignment operator.
 ~Edge ()
 Trivial destructor.
Accessors.
const PointgetSource () const
const PointgetTarget () const
const PointgetTangent () const
Number getLength () const
const PointgetLeftFaceNormal () const
const PointgetRightFaceNormal () const
const PointgetLeftSideNormal () const
const PointgetRightSideNormal () const
int getFaceIndex () const
int getSignOfDistance () const
Mathematical operations.
bool isValid () const
 Return true if the edge is valid.
Number computeDistance (const Point &p) const
 Return the distance to the supporting line of the edge.
Number computeDistanceChecked (const Point &p) const
 Compute distance with checking that the point is in the wedge.
Number computeDistanceUnsigned (const Point &p) const
 Return the unsigned distance to the supporting line of the edge.
Number computeDistanceUnsignedChecked (const Point &p) const
 Return the unsigned distance to the supporting line of the edge.
Number computeClosestPoint (const Point &p, Point *cp) const
 Return the distance and find the closest point.
Number computeClosestPointChecked (const Point &p, Point *cp) const
 Return the distance and find the closest point.
Number computeClosestPointUnsigned (const Point &p, Point *cp) const
 Return the unsigned distance and find the closest point.
Number computeClosestPointUnsignedChecked (const Point &p, Point *cp) const
 Return the unsigned distance and find the closest point.
Number computeGradient (const Point &p, Point *grad) const
 Return the distance and find the gradient of the distance.
Number computeGradientChecked (const Point &p, Point *grad) const
 Return the distance and find the gradient of the distance.
Number computeGradientUnsigned (const Point &p, Point *grad) const
 Return the unsigned distance and find the gradient of this distance.
Number computeGradientUnsignedChecked (const Point &p, Point *grad) const
 Return the unsigned distance and find the gradient of this distance.
Number computeClosestPointAndGradient (const Point &p, Point *cp, Point *grad) const
 Return the distance and find the closest point and gradient of distance.
Number computeClosestPointAndGradientChecked (const Point &p, Point *cp, Point *grad) const
 Return the distance and find the closest point and gradient of distance.
Number computeClosestPointAndGradientUnsigned (const Point &p, Point *cp, Point *grad) const
 Return the distance and find the closest point and gradient of distance.
Number computeClosestPointAndGradientUnsignedChecked (const Point &p, Point *cp, Point *grad) const
 Return the distance and find the closest point and gradient of distance.
void buildCharacteristicPolyhedron (Polyhedron *polyhedron, Number height) const
 Make the polyhedron on the grid that contains the closest points for signed distance.
void buildCharacteristicPolyhedronUnsigned (Polyhedron *polyhedron, Number height) const
 Make the polyhedron on the grid that contains the closest points for unsigned distance.


Detailed Description

template<typename T>
class cpt::Edge< 3, T >

An edge on a b-rep in 3-D.


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