#include <itkTriangleHelper.h>
Public Types | |
typedef PointType::CoordRepType | CoordRepType |
typedef CrossHelper< VectorType > | CrossVectorType |
typedef TPoint | PointType |
typedef TriangleHelper | Self |
typedef PointType::VectorType | VectorType |
Public Member Functions | |
itkStaticConstMacro (PointDimension, unsigned int, PointType::PointDimension) | |
Static Public Member Functions | |
static CoordRepType | ComputeAngle (const PointType &iP1, const PointType &iP2, const PointType &iP3) |
static CoordRepType | ComputeArea (const PointType &iP1, const PointType &iP2, const PointType &iP3) |
static PointType | ComputeBarycenter (const CoordRepType &iA1, const PointType &iP1, const CoordRepType &iA2, const PointType &iP2, const CoordRepType &iA3, const PointType &iP3) |
static PointType | ComputeCircumCenter (const PointType &iP1, const PointType &iP2, const PointType &iP3) |
static PointType | ComputeConstrainedCircumCenter (const PointType &iP1, const PointType &iP2, const PointType &iP3) |
static PointType | ComputeGravityCenter (const PointType &iP1, const PointType &iP2, const PointType &iP3) |
static VectorType | ComputeNormal (const PointType &iA, const PointType &iB, const PointType &iC) |
static CoordRepType | Cotangent (const PointType &iA, const PointType &iB, const PointType &iC) |
static bool | IsObtuse (const PointType &iA, const PointType &iB, const PointType &iC) |
Protected Member Functions | |
void | PrintSelf (std::ostream &os, Indent indent) const |
TriangleHelper () | |
virtual | ~TriangleHelper () |
Definition at line 29 of file itkTriangleHelper.h.
typedef PointType::CoordRepType itk::TriangleHelper< TPoint >::CoordRepType |
Definition at line 34 of file itkTriangleHelper.h.
typedef CrossHelper< VectorType > itk::TriangleHelper< TPoint >::CrossVectorType |
Definition at line 36 of file itkTriangleHelper.h.
typedef TPoint itk::TriangleHelper< TPoint >::PointType |
Definition at line 33 of file itkTriangleHelper.h.
typedef TriangleHelper itk::TriangleHelper< TPoint >::Self |
Definition at line 32 of file itkTriangleHelper.h.
typedef PointType::VectorType itk::TriangleHelper< TPoint >::VectorType |
Definition at line 35 of file itkTriangleHelper.h.
itk::TriangleHelper< TPoint >::TriangleHelper | ( | ) | [protected] |
virtual itk::TriangleHelper< TPoint >::~TriangleHelper | ( | ) | [protected, virtual] |
static CoordRepType itk::TriangleHelper< TPoint >::ComputeAngle | ( | const PointType & | iP1, | |
const PointType & | iP2, | |||
const PointType & | iP3 | |||
) | [static] |
static CoordRepType itk::TriangleHelper< TPoint >::ComputeArea | ( | const PointType & | iP1, | |
const PointType & | iP2, | |||
const PointType & | iP3 | |||
) | [static] |
Compute Area.
Referenced by itk::QuadEdgeMeshDiscreteCurvatureEstimator< TInputMesh, TOutputMesh >::ComputeMixedArea().
static PointType itk::TriangleHelper< TPoint >::ComputeBarycenter | ( | const CoordRepType & | iA1, | |
const PointType & | iP1, | |||
const CoordRepType & | iA2, | |||
const PointType & | iP2, | |||
const CoordRepType & | iA3, | |||
const PointType & | iP3 | |||
) | [static] |
Compute barycenter, with given weights.
static PointType itk::TriangleHelper< TPoint >::ComputeCircumCenter | ( | const PointType & | iP1, | |
const PointType & | iP2, | |||
const PointType & | iP3 | |||
) | [static] |
Compute circum center.
static PointType itk::TriangleHelper< TPoint >::ComputeConstrainedCircumCenter | ( | const PointType & | iP1, | |
const PointType & | iP2, | |||
const PointType & | iP3 | |||
) | [static] |
Compute circum center constrained to be inside the triangle.
static PointType itk::TriangleHelper< TPoint >::ComputeGravityCenter | ( | const PointType & | iP1, | |
const PointType & | iP2, | |||
const PointType & | iP3 | |||
) | [static] |
Compute center of mass.
static VectorType itk::TriangleHelper< TPoint >::ComputeNormal | ( | const PointType & | iA, | |
const PointType & | iB, | |||
const PointType & | iC | |||
) | [static] |
Compute Normal vector to the triangle formed by (iA,iB,iC).
Referenced by itk::QuadEdgeMeshDecimationQuadricElementHelper< TPoint >::AddTriangle().
static CoordRepType itk::TriangleHelper< TPoint >::Cotangent | ( | const PointType & | iA, | |
const PointType & | iB, | |||
const PointType & | iC | |||
) | [static] |
Compute cotangent(iA,iB,iC).
Referenced by itk::QuadEdgeMeshDiscreteCurvatureEstimator< TInputMesh, TOutputMesh >::ComputeMixedArea().
static bool itk::TriangleHelper< TPoint >::IsObtuse | ( | const PointType & | iA, | |
const PointType & | iB, | |||
const PointType & | iC | |||
) | [static] |
return true if (iA,iB,iC) forms an Obtuse angle (above 90 degrees)
Referenced by itk::QuadEdgeMeshDiscreteCurvatureEstimator< TInputMesh, TOutputMesh >::ComputeMixedArea().
itk::TriangleHelper< TPoint >::itkStaticConstMacro | ( | PointDimension | , | |
unsigned | int, | |||
PointType::PointDimension | ||||
) |
void itk::TriangleHelper< TPoint >::PrintSelf | ( | std::ostream & | os, | |
Indent | indent | |||
) | const [protected] |