![]() |
PeriDyno 1.2.1
|
1D geometric primitives in three-dimensional space More...
#include <Primitive3D.h>

Public Types | |
| typedef Vector< Real, 2 > | Coord2D |
| typedef Vector< Real, 3 > | Coord3D |
Public Member Functions | |
| DYN_FUNC | TLine3D () |
| DYN_FUNC | TLine3D (const Coord3D &pos, const Coord3D &dir) |
| DYN_FUNC | TLine3D (const TLine3D< Real > &line) |
| DYN_FUNC TSegment3D< Real > | proximity (const TLine3D< Real > &line) const |
| DYN_FUNC TSegment3D< Real > | proximity (const TRay3D< Real > &ray) const |
| DYN_FUNC TSegment3D< Real > | proximity (const TSegment3D< Real > &segment) const |
| DYN_FUNC TSegment3D< Real > | proximity (const TTriangle3D< Real > &triangle) const |
| DYN_FUNC TSegment3D< Real > | proximity (const TRectangle3D< Real > &rectangle) const |
| DYN_FUNC TSegment3D< Real > | proximity (const TSphere3D< Real > &sphere) const |
| DYN_FUNC TSegment3D< Real > | proximity (const TAlignedBox3D< Real > &box) const |
| DYN_FUNC TSegment3D< Real > | proximity (const TOrientedBox3D< Real > &obb) const |
| DYN_FUNC Real | distance (const TPoint3D< Real > &pt) const |
| DYN_FUNC Real | distance (const TLine3D< Real > &line) const |
| DYN_FUNC Real | distance (const TRay3D< Real > &ray) const |
| DYN_FUNC Real | distance (const TSegment3D< Real > &segment) const |
| DYN_FUNC Real | distance (const TAlignedBox3D< Real > &box) const |
| DYN_FUNC Real | distance (const TOrientedBox3D< Real > &obb) const |
| DYN_FUNC Real | distanceSquared (const TPoint3D< Real > &pt) const |
| DYN_FUNC Real | distanceSquared (const TLine3D< Real > &line) const |
| DYN_FUNC Real | distanceSquared (const TRay3D< Real > &ray) const |
| DYN_FUNC Real | distanceSquared (const TSegment3D< Real > &segment) const |
| DYN_FUNC Real | distanceSquared (const TAlignedBox3D< Real > &box) const |
| compute signed distance to 3D geometric primitives | |
| DYN_FUNC Real | distanceSquared (const TOrientedBox3D< Real > &obb) const |
| DYN_FUNC int | intersect (const TPlane3D< Real > &plane, TPoint3D< Real > &interPt) const |
| intersection tests | |
| DYN_FUNC int | intersect (const TTriangle3D< Real > &triangle, TPoint3D< Real > &interPt) const |
| DYN_FUNC int | intersect (const TSphere3D< Real > &sphere, TSegment3D< Real > &interSeg) const |
| DYN_FUNC int | intersect (const TTet3D< Real > &tet, TSegment3D< Real > &interSeg) const |
| DYN_FUNC int | intersect (const TAlignedBox3D< Real > &abox, TSegment3D< Real > &interSeg) const |
| DYN_FUNC int | intersect (const TOrientedBox3D< Real > &obb, TSegment3D< Real > &interSeg) const |
| DYN_FUNC Real | parameter (const Coord3D &pos) const |
| DYN_FUNC bool | isValid () const |
Public Attributes | |
| Coord3D | origin |
| Coord3D | direction |
1D geometric primitives in three-dimensional space
Definition at line 258 of file Primitive3D.h.
| typedef Vector<Real, 2> dyno::TLine3D< Real >::Coord2D |
Definition at line 261 of file Primitive3D.h.
| typedef Vector<Real, 3> dyno::TLine3D< Real >::Coord3D |
Definition at line 262 of file Primitive3D.h.
| DYN_FUNC dyno::TLine3D< Real >::TLine3D | ( | ) |
| DYN_FUNC dyno::TLine3D< Real >::TLine3D | ( | const Coord3D & | pos, |
| const Coord3D & | dir ) |
| pos | |
| dir | = 0 indicate the line degenerates into a point |
Definition at line 865 of file Primitive3D.inl.
| DYN_FUNC dyno::TLine3D< Real >::TLine3D | ( | const TLine3D< Real > & | line | ) |
| DYN_FUNC Real dyno::TLine3D< Real >::distance | ( | const TAlignedBox3D< Real > & | box | ) | const |
| DYN_FUNC Real dyno::TLine3D< Real >::distance | ( | const TOrientedBox3D< Real > & | obb | ) | const |
| DYN_FUNC Real dyno::TLine3D< Real >::distance | ( | const TSegment3D< Real > & | segment | ) | const |
| DYN_FUNC Real dyno::TLine3D< Real >::distanceSquared | ( | const TAlignedBox3D< Real > & | box | ) | const |
compute signed distance to 3D geometric primitives
| box/obb |
Definition at line 1610 of file Primitive3D.inl.

| DYN_FUNC Real dyno::TLine3D< Real >::distanceSquared | ( | const TOrientedBox3D< Real > & | obb | ) | const |
| DYN_FUNC Real dyno::TLine3D< Real >::distanceSquared | ( | const TSegment3D< Real > & | segment | ) | const |
| DYN_FUNC int dyno::TLine3D< Real >::intersect | ( | const TAlignedBox3D< Real > & | abox, |
| TSegment3D< Real > & | interSeg ) const |
| DYN_FUNC int dyno::TLine3D< Real >::intersect | ( | const TOrientedBox3D< Real > & | obb, |
| TSegment3D< Real > & | interSeg ) const |
| DYN_FUNC int dyno::TLine3D< Real >::intersect | ( | const TPlane3D< Real > & | plane, |
| TPoint3D< Real > & | interPt ) const |
intersection tests
Definition at line 1622 of file Primitive3D.inl.


| DYN_FUNC int dyno::TLine3D< Real >::intersect | ( | const TSphere3D< Real > & | sphere, |
| TSegment3D< Real > & | interSeg ) const |
| DYN_FUNC int dyno::TLine3D< Real >::intersect | ( | const TTet3D< Real > & | tet, |
| TSegment3D< Real > & | interSeg ) const |
| DYN_FUNC int dyno::TLine3D< Real >::intersect | ( | const TTriangle3D< Real > & | triangle, |
| TPoint3D< Real > & | interPt ) const |
| DYN_FUNC bool dyno::TLine3D< Real >::isValid | ( | ) | const |
| DYN_FUNC Real dyno::TLine3D< Real >::parameter | ( | const Coord3D & | pos | ) | const |
Definition at line 1896 of file Primitive3D.inl.
| DYN_FUNC TSegment3D< Real > dyno::TLine3D< Real >::proximity | ( | const TAlignedBox3D< Real > & | box | ) | const |
| DYN_FUNC TSegment3D< Real > dyno::TLine3D< Real >::proximity | ( | const TLine3D< Real > & | line | ) | const |
Definition at line 879 of file Primitive3D.inl.


| DYN_FUNC TSegment3D< Real > dyno::TLine3D< Real >::proximity | ( | const TOrientedBox3D< Real > & | obb | ) | const |
| DYN_FUNC TSegment3D< Real > dyno::TLine3D< Real >::proximity | ( | const TRay3D< Real > & | ray | ) | const |
| DYN_FUNC TSegment3D< Real > dyno::TLine3D< Real >::proximity | ( | const TRectangle3D< Real > & | rectangle | ) | const |
| DYN_FUNC TSegment3D< Real > dyno::TLine3D< Real >::proximity | ( | const TSegment3D< Real > & | segment | ) | const |
| DYN_FUNC TSegment3D< Real > dyno::TLine3D< Real >::proximity | ( | const TSphere3D< Real > & | sphere | ) | const |
| DYN_FUNC TSegment3D< Real > dyno::TLine3D< Real >::proximity | ( | const TTriangle3D< Real > & | triangle | ) | const |
| Coord3D dyno::TLine3D< Real >::direction |
Definition at line 333 of file Primitive3D.h.
| Coord3D dyno::TLine3D< Real >::origin |
Definition at line 330 of file Primitive3D.h.