PeriDyno 1.2.1
Loading...
Searching...
No Matches
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 679 of file Primitive3D.h.

Member Typedef Documentation

◆ Coord2D

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

Definition at line 682 of file Primitive3D.h.

◆ Coord3D

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

Definition at line 683 of file Primitive3D.h.

◆ Matrix3D

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

Definition at line 684 of file Primitive3D.h.

Constructor & Destructor Documentation

◆ TTet3D() [1/3]

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

Definition at line 3385 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 3394 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 3821 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 3889 of file Primitive3D.inl.

◆ circumcenter()

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

Definition at line 3836 of file Primitive3D.inl.

◆ computeBarycentricCoordinates()

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

Definition at line 3901 of file Primitive3D.inl.

◆ contain()

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

Definition at line 3895 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 3412 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 3524 of file Primitive3D.inl.

◆ face()

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

Definition at line 3440 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 3539 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 3666 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 3517 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 3466 of file Primitive3D.inl.

◆ volume()

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

Definition at line 3506 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 715 of file Primitive3D.h.


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