vcg::Tetra3< ScalarType > Class Template Reference
[Space]

#include <tetra3.h>

Inheritance diagram for vcg::Tetra3< ScalarType >:
Inheritance graph
[legend]

List of all members.

Public Types

typedef Point3< ScalarTypeCoordType

Public Member Functions

ScalarType ComputeAspectRatio ()
 compute and return the aspect ratio of the tetrahedron
CoordType ComputeBarycenter ()
 compute and return the barycenter of a tetrahedron
CoordType const & cP (const int j) const
const CoordTypecP0 (const int j) const
const CoordTypecP1 (const int j) const
const CoordTypecP2 (const int j) const
const CoordTypecP3 (const int j) const
double DiedralAngle (int edgeind)
 compute and return the diadedral angle on an edge
void InterpolationParameters (const CoordType &bq, ScalarType &a, ScalarType &b, ScalarType &c, ScalarType &d)
bool IsInside (const CoordType &p)
 return true of p is inside tetrahedron's volume
CoordTypeP (const int j)
 Shortcut per accedere ai punti delle facce.
const CoordTypeP0 (const int j) const
CoordTypeP0 (const int j)
const CoordTypeP1 (const int j) const
CoordTypeP1 (const int j)
const CoordTypeP2 (const int j) const
CoordTypeP2 (const int j)
const CoordTypeP3 (const int j) const
CoordTypeP3 (const int j)
double SolidAngle (int vind)
 compute and return the solid angle on a vertex

Private Attributes

CoordType _v [4]
 Vector of the 4 points that defines the tetrahedron.

Detailed Description

template<class ScalarType>
class vcg::Tetra3< ScalarType >

Templated class for storing a generic tetrahedron in a 3D space. Note the relation with the Face class of TetraMesh complex, both classes provide the P(i) access functions to their points and therefore they share the algorithms on it (e.g. area, normal etc...)

Definition at line 306 of file tetra3.h.


Member Typedef Documentation

template<class ScalarType>
typedef Point3< ScalarType > vcg::Tetra3< ScalarType >::CoordType

Definition at line 309 of file tetra3.h.


Member Function Documentation

template<class ScalarType>
ScalarType vcg::Tetra3< ScalarType >::ComputeAspectRatio (  )  [inline]

compute and return the aspect ratio of the tetrahedron

Definition at line 376 of file tetra3.h.

template<class ScalarType>
CoordType vcg::Tetra3< ScalarType >::ComputeBarycenter (  )  [inline]

compute and return the barycenter of a tetrahedron

Definition at line 342 of file tetra3.h.

template<class ScalarType>
CoordType const& vcg::Tetra3< ScalarType >::cP ( const int  j  )  const [inline]

Definition at line 324 of file tetra3.h.

template<class ScalarType>
const CoordType& vcg::Tetra3< ScalarType >::cP0 ( const int  j  )  const [inline]

Definition at line 336 of file tetra3.h.

template<class ScalarType>
const CoordType& vcg::Tetra3< ScalarType >::cP1 ( const int  j  )  const [inline]

Definition at line 337 of file tetra3.h.

template<class ScalarType>
const CoordType& vcg::Tetra3< ScalarType >::cP2 ( const int  j  )  const [inline]

Definition at line 338 of file tetra3.h.

template<class ScalarType>
const CoordType& vcg::Tetra3< ScalarType >::cP3 ( const int  j  )  const [inline]

Definition at line 339 of file tetra3.h.

template<class ScalarType>
double vcg::Tetra3< ScalarType >::DiedralAngle ( int  edgeind  )  [inline]

compute and return the diadedral angle on an edge

Definition at line 358 of file tetra3.h.

template<class ScalarType>
void vcg::Tetra3< ScalarType >::InterpolationParameters ( const CoordType bq,
ScalarType a,
ScalarType b,
ScalarType c,
ScalarType d 
) [inline]

Definition at line 454 of file tetra3.h.

template<class ScalarType>
bool vcg::Tetra3< ScalarType >::IsInside ( const CoordType p  )  [inline]

return true of p is inside tetrahedron's volume

Definition at line 386 of file tetra3.h.

template<class ScalarType>
CoordType& vcg::Tetra3< ScalarType >::P ( const int  j  )  [inline]

Shortcut per accedere ai punti delle facce.

Definition at line 323 of file tetra3.h.

template<class ScalarType>
const CoordType& vcg::Tetra3< ScalarType >::P0 ( const int  j  )  const [inline]

Definition at line 331 of file tetra3.h.

template<class ScalarType>
CoordType& vcg::Tetra3< ScalarType >::P0 ( const int  j  )  [inline]

Definition at line 326 of file tetra3.h.

template<class ScalarType>
const CoordType& vcg::Tetra3< ScalarType >::P1 ( const int  j  )  const [inline]

Definition at line 332 of file tetra3.h.

template<class ScalarType>
CoordType& vcg::Tetra3< ScalarType >::P1 ( const int  j  )  [inline]

Definition at line 327 of file tetra3.h.

template<class ScalarType>
const CoordType& vcg::Tetra3< ScalarType >::P2 ( const int  j  )  const [inline]

Definition at line 333 of file tetra3.h.

template<class ScalarType>
CoordType& vcg::Tetra3< ScalarType >::P2 ( const int  j  )  [inline]

Definition at line 328 of file tetra3.h.

template<class ScalarType>
const CoordType& vcg::Tetra3< ScalarType >::P3 ( const int  j  )  const [inline]

Definition at line 334 of file tetra3.h.

template<class ScalarType>
CoordType& vcg::Tetra3< ScalarType >::P3 ( const int  j  )  [inline]

Definition at line 329 of file tetra3.h.

template<class ScalarType>
double vcg::Tetra3< ScalarType >::SolidAngle ( int  vind  )  [inline]

compute and return the solid angle on a vertex

Definition at line 348 of file tetra3.h.


Member Data Documentation

template<class ScalarType>
CoordType vcg::Tetra3< ScalarType >::_v[4] [private]

Vector of the 4 points that defines the tetrahedron.

Definition at line 318 of file tetra3.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


vcglib
Author(s): Christian Bersch
autogenerated on Fri Jan 11 09:23:06 2013