![]() |
PeriDyno 1.0.0
|
vertices are ordered so that the normal vectors for the triangular faces point outwards 3 / | \ 0 - 2 - 1 More...
#include <Primitive3D.h>
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< Real > | face (const int index) const |
DYN_FUNC TSegment3D< Real > | edge (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< Real > | aabb () |
DYN_FUNC TPoint3D< Real > | circumcenter () const |
DYN_FUNC TPoint3D< Real > | barycenter () const |
DYN_FUNC bool | contain (Coord3D p) |
DYN_FUNC Vector< Real, 4 > | computeBarycentricCoordinates (const Coord3D &p) |
Public Attributes | |
Coord3D | v [4] |
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.
typedef Vector<Real, 2> dyno::TTet3D< Real >::Coord2D |
Definition at line 679 of file Primitive3D.h.
typedef Vector<Real, 3> dyno::TTet3D< Real >::Coord3D |
Definition at line 680 of file Primitive3D.h.
typedef SquareMatrix<Real, 3> dyno::TTet3D< Real >::Matrix3D |
Definition at line 681 of file Primitive3D.h.
DYN_FUNC dyno::TTet3D< Real >::TTet3D | ( | ) |
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.
DYN_FUNC dyno::TTet3D< Real >::TTet3D | ( | const TTet3D< Real > & | tet | ) |
DYN_FUNC TAlignedBox3D< Real > dyno::TTet3D< Real >::aabb | ( | ) |
DYN_FUNC TPoint3D< Real > dyno::TTet3D< Real >::barycenter | ( | ) | const |
Definition at line 3873 of file Primitive3D.inl.
DYN_FUNC TPoint3D< Real > dyno::TTet3D< Real >::circumcenter | ( | ) | const |
Definition at line 3820 of file Primitive3D.inl.
DYN_FUNC Vector< Real, 4 > dyno::TTet3D< Real >::computeBarycentricCoordinates | ( | const Coord3D & | p | ) |
Definition at line 3885 of file Primitive3D.inl.
DYN_FUNC bool dyno::TTet3D< Real >::contain | ( | Coord3D | p | ) |
DYN_FUNC TSegment3D< Real > dyno::TTet3D< Real >::edge | ( | const int | index | ) | const |
DYN_FUNC void dyno::TTet3D< Real >::expand | ( | Real | r | ) |
Definition at line 3508 of file Primitive3D.inl.
DYN_FUNC TTriangle3D< Real > dyno::TTet3D< Real >::face | ( | const int | index | ) | const |
DYN_FUNC bool dyno::TTet3D< Real >::intersect | ( | const TTriangle3D< Real > & | tri, |
Coord3D & | interNorm, | ||
Real & | interDist, | ||
Coord3D & | p1, | ||
Coord3D & | p2, | ||
int | need_distance = 1 ) const |
DYN_FUNC bool dyno::TTet3D< Real >::isValid | ( | ) | const |
DYN_FUNC Real dyno::TTet3D< Real >::solidAngle | ( | const int | index | ) | const |
Definition at line 3450 of file Primitive3D.inl.
DYN_FUNC Real dyno::TTet3D< Real >::volume | ( | ) | const |
Coord3D dyno::TTet3D< Real >::v[4] |
Definition at line 712 of file Primitive3D.h.