![]() |
PeriDyno 1.0.0
|
#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 | TOrientedBox3D () |
DYN_FUNC | TOrientedBox3D (const Coord3D c, const Coord3D u_t, const Coord3D v_t, const Coord3D w_t, const Coord3D ext) |
construct an oriented bounding box, gurantee u_t, v_t and w_t are unit vectors and form right-handed orthornormal basis | |
DYN_FUNC | TOrientedBox3D (const Coord3D c, const Quat< Real > rot, const Coord3D ext) |
DYN_FUNC | TOrientedBox3D (const TOrientedBox3D< Real > &obb) |
DYN_FUNC TPoint3D< Real > | vertex (const int i) const |
DYN_FUNC TSegment3D< Real > | edge (const int i) const |
DYN_FUNC TRectangle3D< Real > | face (const int i) const |
DYN_FUNC Real | volume () |
DYN_FUNC bool | isValid () |
DYN_FUNC TOrientedBox3D< Real > | rotate (const Matrix3D &mat) |
DYN_FUNC TAlignedBox3D< Real > | aabb () |
DYN_FUNC bool | point_intersect (const TOrientedBox3D< Real > &OBB, Coord3D &interNorm, Real &interDist, Coord3D &p1, Coord3D &p2) const |
DYN_FUNC bool | point_intersect (const TTet3D< Real > &TET, Coord3D &interNorm, Real &interDist, Coord3D &p1, Coord3D &p2) const |
DYN_FUNC bool | point_intersect (const TTriangle3D< Real > &TRI, Coord3D &interNorm, Real &interDist, Coord3D &p1, Coord3D &p2) const |
Public Attributes | |
Coord3D | center |
centerpoint | |
Coord3D | u |
three unit vectors u, v and w forming a right-handed orthornormal basis | |
Coord3D | v |
Coord3D | w |
Coord3D | extent |
half the dimension in each of the u, v, and w directions | |
Definition at line 745 of file Primitive3D.h.
typedef Vector<Real, 2> dyno::TOrientedBox3D< Real >::Coord2D |
Definition at line 748 of file Primitive3D.h.
typedef Vector<Real, 3> dyno::TOrientedBox3D< Real >::Coord3D |
Definition at line 749 of file Primitive3D.h.
typedef SquareMatrix<Real, 3> dyno::TOrientedBox3D< Real >::Matrix3D |
Definition at line 750 of file Primitive3D.h.
DYN_FUNC dyno::TOrientedBox3D< Real >::TOrientedBox3D | ( | ) |
DYN_FUNC dyno::TOrientedBox3D< Real >::TOrientedBox3D | ( | const Coord3D | c, |
const Coord3D | u_t, | ||
const Coord3D | v_t, | ||
const Coord3D | w_t, | ||
const Coord3D | ext ) |
construct an oriented bounding box, gurantee u_t, v_t and w_t are unit vectors and form right-handed orthornormal basis
c | centerpoint |
u_t | |
v_t | |
w_t | |
ext | half the dimension in each of the u, v, and w directions |
Definition at line 4097 of file Primitive3D.inl.
DYN_FUNC dyno::TOrientedBox3D< Real >::TOrientedBox3D | ( | const TOrientedBox3D< Real > & | obb | ) |
DYN_FUNC TAlignedBox3D< Real > dyno::TOrientedBox3D< Real >::aabb | ( | ) |
Definition at line 4234 of file Primitive3D.inl.
DYN_FUNC TSegment3D< Real > dyno::TOrientedBox3D< Real >::edge | ( | const int | i | ) | const |
Definition at line 4140 of file Primitive3D.inl.
DYN_FUNC TRectangle3D< Real > dyno::TOrientedBox3D< Real >::face | ( | const int | i | ) | const |
DYN_FUNC bool dyno::TOrientedBox3D< Real >::isValid | ( | ) |
DYN_FUNC bool dyno::TOrientedBox3D< Real >::point_intersect | ( | const TOrientedBox3D< Real > & | OBB, |
Coord3D & | interNorm, | ||
Real & | interDist, | ||
Coord3D & | p1, | ||
Coord3D & | p2 ) const |
DYN_FUNC bool dyno::TOrientedBox3D< Real >::point_intersect | ( | const TTriangle3D< Real > & | TRI, |
Coord3D & | interNorm, | ||
Real & | interDist, | ||
Coord3D & | p1, | ||
Coord3D & | p2 ) const |
DYN_FUNC TOrientedBox3D< Real > dyno::TOrientedBox3D< Real >::rotate | ( | const Matrix3D & | mat | ) |
DYN_FUNC TPoint3D< Real > dyno::TOrientedBox3D< Real >::vertex | ( | const int | i | ) | const |
DYN_FUNC Real dyno::TOrientedBox3D< Real >::volume | ( | ) |
Definition at line 4194 of file Primitive3D.inl.
Coord3D dyno::TOrientedBox3D< Real >::center |
centerpoint
Definition at line 794 of file Primitive3D.h.
Coord3D dyno::TOrientedBox3D< Real >::extent |
half the dimension in each of the u, v, and w directions
Definition at line 805 of file Primitive3D.h.
Coord3D dyno::TOrientedBox3D< Real >::u |
three unit vectors u, v and w forming a right-handed orthornormal basis
Definition at line 800 of file Primitive3D.h.
Coord3D dyno::TOrientedBox3D< Real >::v |
Definition at line 800 of file Primitive3D.h.
Coord3D dyno::TOrientedBox3D< Real >::w |
Definition at line 800 of file Primitive3D.h.