PeriDyno 1.0.0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
dyno::TTet3D< Real > Class Template Reference

vertices are ordered so that the normal vectors for the triangular faces point outwards 3 / | \ 0 - 2 - 1 More...

#include <Primitive3D.h>

Collaboration diagram for dyno::TTet3D< Real >:

Public Types

typedef Vector< Real, 2 > Coord2D
 
typedef Vector< Real, 3 > Coord3D
 
typedef SquareMatrix< Real, 3 > Matrix3D
 

Public Member Functions

DYN_FUNC TTet3D ()
 
DYN_FUNC TTet3D (const Coord3D &v0, const Coord3D &v1, const Coord3D &v2, const Coord3D &v3)
 
DYN_FUNC TTet3D (const TTet3D< Real > &tet)
 
DYN_FUNC TTriangle3D< Realface (const int index) const
 
DYN_FUNC TSegment3D< Realedge (const int index) const
 
DYN_FUNC Real solidAngle (const int index) const
 
DYN_FUNC Real volume () const
 
DYN_FUNC bool isValid () const
 
DYN_FUNC bool intersect (const TTet3D< Real > &tet, Coord3D &interNorm, Real &interDist, Coord3D &p1, Coord3D &p2, int need_distance=1) const
 
DYN_FUNC bool intersect (const TTriangle3D< Real > &tri, Coord3D &interNorm, Real &interDist, Coord3D &p1, Coord3D &p2, int need_distance=1) const
 
DYN_FUNC void expand (Real r)
 
DYN_FUNC TAlignedBox3D< Realaabb ()
 
DYN_FUNC TPoint3D< Realcircumcenter () const
 
DYN_FUNC TPoint3D< Realbarycenter () const
 
DYN_FUNC bool contain (Coord3D p)
 
DYN_FUNC Vector< Real, 4 > computeBarycentricCoordinates (const Coord3D &p)
 

Public Attributes

Coord3D v [4]
 

Detailed Description

template<typename Real>
class dyno::TTet3D< Real >

vertices are ordered so that the normal vectors for the triangular faces point outwards 3 / | \ 0 - 2 - 1

Definition at line 676 of file Primitive3D.h.

Member Typedef Documentation

◆ Coord2D

template<typename Real>
typedef Vector<Real, 2> dyno::TTet3D< Real >::Coord2D

Definition at line 679 of file Primitive3D.h.

◆ Coord3D

template<typename Real>
typedef Vector<Real, 3> dyno::TTet3D< Real >::Coord3D

Definition at line 680 of file Primitive3D.h.

◆ Matrix3D

template<typename Real>
typedef SquareMatrix<Real, 3> dyno::TTet3D< Real >::Matrix3D

Definition at line 681 of file Primitive3D.h.

Constructor & Destructor Documentation

◆ TTet3D() [1/3]

template<typename Real>
DYN_FUNC dyno::TTet3D< Real >::TTet3D ( )

Definition at line 3369 of file Primitive3D.inl.

Here is the caller graph for this function:

◆ TTet3D() [2/3]

template<typename Real>
DYN_FUNC dyno::TTet3D< Real >::TTet3D ( const Coord3D & v0,
const Coord3D & v1,
const Coord3D & v2,
const Coord3D & v3 )

Definition at line 3378 of file Primitive3D.inl.

◆ TTet3D() [3/3]

template<typename Real>
DYN_FUNC dyno::TTet3D< Real >::TTet3D ( const TTet3D< Real > & tet)

Member Function Documentation

◆ aabb()

template<typename Real>
DYN_FUNC TAlignedBox3D< Real > dyno::TTet3D< Real >::aabb ( )

Definition at line 3805 of file Primitive3D.inl.

Here is the call graph for this function:

◆ barycenter()

template<typename Real>
DYN_FUNC TPoint3D< Real > dyno::TTet3D< Real >::barycenter ( ) const

Definition at line 3873 of file Primitive3D.inl.

◆ circumcenter()

template<typename Real>
DYN_FUNC TPoint3D< Real > dyno::TTet3D< Real >::circumcenter ( ) const

Definition at line 3820 of file Primitive3D.inl.

◆ computeBarycentricCoordinates()

template<typename Real>
DYN_FUNC Vector< Real, 4 > dyno::TTet3D< Real >::computeBarycentricCoordinates ( const Coord3D & p)

Definition at line 3885 of file Primitive3D.inl.

◆ contain()

template<typename Real>
DYN_FUNC bool dyno::TTet3D< Real >::contain ( Coord3D p)

Definition at line 3879 of file Primitive3D.inl.

Here is the call graph for this function:

◆ edge()

template<typename Real>
DYN_FUNC TSegment3D< Real > dyno::TTet3D< Real >::edge ( const int index) const

Definition at line 3396 of file Primitive3D.inl.

Here is the caller graph for this function:

◆ expand()

template<typename Real>
DYN_FUNC void dyno::TTet3D< Real >::expand ( Real r)

Definition at line 3508 of file Primitive3D.inl.

◆ face()

template<typename Real>
DYN_FUNC TTriangle3D< Real > dyno::TTet3D< Real >::face ( const int index) const

Definition at line 3424 of file Primitive3D.inl.

Here is the caller graph for this function:

◆ intersect() [1/2]

template<typename Real>
DYN_FUNC bool dyno::TTet3D< Real >::intersect ( const TTet3D< Real > & tet,
Coord3D & interNorm,
Real & interDist,
Coord3D & p1,
Coord3D & p2,
int need_distance = 1 ) const

Definition at line 3523 of file Primitive3D.inl.

Here is the call graph for this function:

◆ intersect() [2/2]

template<typename Real>
DYN_FUNC bool dyno::TTet3D< Real >::intersect ( const TTriangle3D< Real > & tri,
Coord3D & interNorm,
Real & interDist,
Coord3D & p1,
Coord3D & p2,
int need_distance = 1 ) const

Definition at line 3650 of file Primitive3D.inl.

Here is the call graph for this function:

◆ isValid()

template<typename Real>
DYN_FUNC bool dyno::TTet3D< Real >::isValid ( ) const

Definition at line 3501 of file Primitive3D.inl.

Here is the call graph for this function:

◆ solidAngle()

template<typename Real>
DYN_FUNC Real dyno::TTet3D< Real >::solidAngle ( const int index) const

Definition at line 3450 of file Primitive3D.inl.

◆ volume()

template<typename Real>
DYN_FUNC Real dyno::TTet3D< Real >::volume ( ) const

Definition at line 3490 of file Primitive3D.inl.

Here is the caller graph for this function:

Member Data Documentation

◆ v

template<typename Real>
Coord3D dyno::TTet3D< Real >::v[4]

Definition at line 712 of file Primitive3D.h.


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