#include <Edge.h>
Public Types | |
typedef T | Number |
The number type. | |
typedef ads::FixedArray< 3, T > | Point |
A Cartesian point. | |
typedef geom::BBox< 3, Number > | BBox |
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 Point & | getSource () const |
const Point & | getTarget () const |
const Point & | getTangent () const |
Number | getLength () const |
const Point & | getLeftFaceNormal () const |
const Point & | getRightFaceNormal () const |
const Point & | getLeftSideNormal () const |
const Point & | getRightSideNormal () 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. |