Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts
Public Types | Static Public Member Functions | Static Public Attributes | Protected Member Functions

itk::TriangleHelper< TPoint > Class Template Reference

Convenient class for various triangles elements computation in 2D or 3D. More...

#include <itkTriangleHelper.h>

List of all members.

Public Types

typedef PointType::CoordRepType CoordRepType
typedef CrossHelper< VectorTypeCrossVectorType
typedef TPoint PointType
typedef TriangleHelper Self
typedef PointType::VectorType VectorType

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)

Static Public Attributes

static const unsigned int PointDimension = PointType::PointDimension

Protected Member Functions

void PrintSelf (std::ostream &os, Indent indent) const
 TriangleHelper ()
virtual ~TriangleHelper ()

Detailed Description

template<typename TPoint>
class itk::TriangleHelper< TPoint >

Convenient class for various triangles elements computation in 2D or 3D.

Definition at line 29 of file itkTriangleHelper.h.


Member Typedef Documentation

template<typename TPoint >
typedef PointType::CoordRepType itk::TriangleHelper< TPoint >::CoordRepType

Definition at line 34 of file itkTriangleHelper.h.

template<typename TPoint >
typedef CrossHelper< VectorType > itk::TriangleHelper< TPoint >::CrossVectorType

Definition at line 36 of file itkTriangleHelper.h.

template<typename TPoint >
typedef TPoint itk::TriangleHelper< TPoint >::PointType

Definition at line 33 of file itkTriangleHelper.h.

template<typename TPoint >
typedef TriangleHelper itk::TriangleHelper< TPoint >::Self

Definition at line 32 of file itkTriangleHelper.h.

template<typename TPoint >
typedef PointType::VectorType itk::TriangleHelper< TPoint >::VectorType

Definition at line 35 of file itkTriangleHelper.h.


Constructor & Destructor Documentation

template<typename TPoint >
itk::TriangleHelper< TPoint >::TriangleHelper (  )  [protected]
template<typename TPoint >
virtual itk::TriangleHelper< TPoint >::~TriangleHelper (  )  [protected, virtual]

Member Function Documentation

template<typename TPoint >
static CoordRepType itk::TriangleHelper< TPoint >::ComputeAngle ( const PointType iP1,
const PointType iP2,
const PointType iP3 
) [static]

Compute angles (iA,iB,iC).

template<typename TPoint >
static CoordRepType itk::TriangleHelper< TPoint >::ComputeArea ( const PointType iP1,
const PointType iP2,
const PointType iP3 
) [static]
template<typename TPoint >
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.

template<typename TPoint >
static PointType itk::TriangleHelper< TPoint >::ComputeCircumCenter ( const PointType iP1,
const PointType iP2,
const PointType iP3 
) [static]

Compute circum center.

template<typename TPoint >
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.

template<typename TPoint >
static PointType itk::TriangleHelper< TPoint >::ComputeGravityCenter ( const PointType iP1,
const PointType iP2,
const PointType iP3 
) [static]

Compute center of mass.

template<typename TPoint >
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().

template<typename TPoint >
static CoordRepType itk::TriangleHelper< TPoint >::Cotangent ( const PointType iA,
const PointType iB,
const PointType iC 
) [static]
template<typename TPoint >
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().

template<typename TPoint >
void itk::TriangleHelper< TPoint >::PrintSelf ( std::ostream &  os,
Indent  indent 
) const [protected]

Member Data Documentation

template<typename TPoint >
const unsigned int itk::TriangleHelper< TPoint >::PointDimension = PointType::PointDimension [static]

Definition at line 38 of file itkTriangleHelper.h.


The documentation for this class was generated from the following file:

Generated at Tue Jul 13 2010 02:51:17 for ITK by doxygen 1.7.1 written by Dimitri van Heesch, © 1997-2000