#include <tetra3.h>
Public Types | |
typedef Point3< ScalarType > | CoordType |
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 CoordType & | cP0 (const int j) const |
const CoordType & | cP1 (const int j) const |
const CoordType & | cP2 (const int j) const |
const CoordType & | cP3 (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 | |
CoordType & | P (const int j) |
Shortcut per accedere ai punti delle facce. | |
CoordType & | P0 (const int j) |
const CoordType & | P0 (const int j) const |
CoordType & | P1 (const int j) |
const CoordType & | P1 (const int j) const |
CoordType & | P2 (const int j) |
const CoordType & | P2 (const int j) const |
CoordType & | P3 (const int j) |
const CoordType & | P3 (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. |
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...)
typedef Point3< ScalarType > vcg::Tetra3< ScalarType >::CoordType |
ScalarType vcg::Tetra3< ScalarType >::ComputeAspectRatio | ( | ) | [inline] |
CoordType vcg::Tetra3< ScalarType >::ComputeBarycenter | ( | ) | [inline] |
CoordType const& vcg::Tetra3< ScalarType >::cP | ( | const int | j | ) | const [inline] |
const CoordType& vcg::Tetra3< ScalarType >::cP0 | ( | const int | j | ) | const [inline] |
const CoordType& vcg::Tetra3< ScalarType >::cP1 | ( | const int | j | ) | const [inline] |
const CoordType& vcg::Tetra3< ScalarType >::cP2 | ( | const int | j | ) | const [inline] |
const CoordType& vcg::Tetra3< ScalarType >::cP3 | ( | const int | j | ) | const [inline] |
double vcg::Tetra3< ScalarType >::DiedralAngle | ( | int | edgeind | ) | [inline] |
void vcg::Tetra3< ScalarType >::InterpolationParameters | ( | const CoordType & | bq, |
ScalarType & | a, | ||
ScalarType & | b, | ||
ScalarType & | c, | ||
ScalarType & | d | ||
) | [inline] |
bool vcg::Tetra3< ScalarType >::IsInside | ( | const CoordType & | p | ) | [inline] |
CoordType& vcg::Tetra3< ScalarType >::P | ( | const int | j | ) | [inline] |
CoordType& vcg::Tetra3< ScalarType >::P0 | ( | const int | j | ) | [inline] |
const CoordType& vcg::Tetra3< ScalarType >::P0 | ( | const int | j | ) | const [inline] |
CoordType& vcg::Tetra3< ScalarType >::P1 | ( | const int | j | ) | [inline] |
const CoordType& vcg::Tetra3< ScalarType >::P1 | ( | const int | j | ) | const [inline] |
CoordType& vcg::Tetra3< ScalarType >::P2 | ( | const int | j | ) | [inline] |
const CoordType& vcg::Tetra3< ScalarType >::P2 | ( | const int | j | ) | const [inline] |
CoordType& vcg::Tetra3< ScalarType >::P3 | ( | const int | j | ) | [inline] |
const CoordType& vcg::Tetra3< ScalarType >::P3 | ( | const int | j | ) | const [inline] |
double vcg::Tetra3< ScalarType >::SolidAngle | ( | int | vind | ) | [inline] |
CoordType vcg::Tetra3< ScalarType >::_v[4] [private] |