Public Types | Public Member Functions | Private Attributes
vcg::Tetra3< ScalarType > Class Template Reference

#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.
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) const
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 308 of file tetra3.h.


Member Typedef Documentation

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

Definition at line 311 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 378 of file tetra3.h.

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

compute and return the barycenter of a tetrahedron

Definition at line 344 of file tetra3.h.

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

Definition at line 326 of file tetra3.h.

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

Definition at line 338 of file tetra3.h.

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

Definition at line 339 of file tetra3.h.

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

Definition at line 340 of file tetra3.h.

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

Definition at line 341 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 360 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 456 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 388 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 325 of file tetra3.h.

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

Definition at line 328 of file tetra3.h.

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

Definition at line 333 of file tetra3.h.

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

Definition at line 329 of file tetra3.h.

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

Definition at line 334 of file tetra3.h.

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

Definition at line 330 of file tetra3.h.

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

Definition at line 335 of file tetra3.h.

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

Definition at line 331 of file tetra3.h.

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

Definition at line 336 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 350 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 320 of file tetra3.h.


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


shape_reconstruction
Author(s): Roberto Martín-Martín
autogenerated on Sat Jun 8 2019 18:41:20