![]() |
PeriDyno 1.0.0
|
0D geometric primitive 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 | TPoint3D () |
DYN_FUNC | TPoint3D (const Real &c0, const Real &c1, const Real &c2) |
DYN_FUNC | TPoint3D (const TPoint3D &pt) |
DYN_FUNC TPoint3D & | operator= (const Coord3D &p) |
DYN_FUNC | TPoint3D (const Real &val) |
DYN_FUNC | TPoint3D (const Coord3D &pos) |
DYN_FUNC TPoint3D< Real > | project (const TLine3D< Real > &line) const |
project a point onto linear components – lines, rays and segments | |
DYN_FUNC TPoint3D< Real > | project (const TRay3D< Real > &ray) const |
DYN_FUNC TPoint3D< Real > | project (const TSegment3D< Real > &segment) const |
DYN_FUNC TPoint3D< Real > | project (const TPlane3D< Real > &plane) const |
project a point onto planar components – planes, triangles and disks | |
DYN_FUNC TPoint3D< Real > | project (const TTriangle3D< Real > &triangle) const |
DYN_FUNC TPoint3D< Real > | project (const TRectangle3D< Real > &rectangle) const |
DYN_FUNC TPoint3D< Real > | project (const TDisk3D< Real > &disk) const |
DYN_FUNC TPoint3D< Real > | project (const TSphere3D< Real > &sphere) const |
project a point onto polyhedra components – tetrahedra, spheres and oriented bounding boxes | |
DYN_FUNC TPoint3D< Real > | project (const TCapsule3D< Real > &capsule) const |
DYN_FUNC TPoint3D< Real > | project (const TTet3D< Real > &tet) const |
DYN_FUNC TPoint3D< Real > | project (const TAlignedBox3D< Real > &abox) const |
DYN_FUNC TPoint3D< Real > | project (const TOrientedBox3D< Real > &obb) const |
DYN_FUNC TPoint3D< Real > | project (const TSphere3D< Real > &sphere, Bool &bInside) const |
DYN_FUNC TPoint3D< Real > | project (const TCapsule3D< Real > &capsule, Bool &bInside) const |
DYN_FUNC TPoint3D< Real > | project (const TTet3D< Real > &tet, Bool &bInside) const |
DYN_FUNC TPoint3D< Real > | project (const TTet3D< Real > &tet, Bool &bInside, int *idx) const |
DYN_FUNC TPoint3D< Real > | project (const TAlignedBox3D< Real > &abox, Bool &bInside) const |
DYN_FUNC TPoint3D< Real > | project (const TOrientedBox3D< Real > &obb, Bool &bInside) 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 TPlane3D< Real > &plane) const |
compute the signed distance to 2D geometric primitives | |
DYN_FUNC Real | distance (const TTriangle3D< Real > &triangle) const |
DYN_FUNC Real | distance (const TRectangle3D< Real > &rectangle) const |
DYN_FUNC Real | distance (const TDisk3D< Real > &disk) const |
DYN_FUNC Real | distance (const TSphere3D< Real > &sphere) const |
compute signed distance to 3D geometric primitives | |
DYN_FUNC Real | distance (const TCapsule3D< Real > &capsule) const |
DYN_FUNC Real | distance (const TTet3D< Real > &tet) const |
DYN_FUNC Real | distance (const TAlignedBox3D< Real > &abox) 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 TPlane3D< Real > &plane) const |
return squared distance from a point to 3D geometric primitives | |
DYN_FUNC Real | distanceSquared (const TTriangle3D< Real > &triangle) const |
DYN_FUNC Real | distanceSquared (const TRectangle3D< Real > &rectangle) const |
DYN_FUNC Real | distanceSquared (const TDisk3D< Real > &disk) const |
DYN_FUNC Real | distanceSquared (const TSphere3D< Real > &sphere) const |
return squared distance from a point to 3D geometric primitives | |
DYN_FUNC Real | distanceSquared (const TCapsule3D< Real > &capsule) const |
DYN_FUNC Real | distanceSquared (const TTet3D< Real > &tet) const |
DYN_FUNC Real | distanceSquared (const TAlignedBox3D< Real > &abox) const |
DYN_FUNC Real | distanceSquared (const TOrientedBox3D< Real > &obb) const |
DYN_FUNC bool | inside (const TLine3D< Real > &line) const |
check whether a point strictly lies inside (excluding boundary) a 1D geometric primitive | |
DYN_FUNC bool | inside (const TRay3D< Real > &ray) const |
DYN_FUNC bool | inside (const TSegment3D< Real > &segment) const |
DYN_FUNC bool | inside (const TPlane3D< Real > &plane) const |
check whether a point strictly lies inside (excluding boundary) a 2D geometric primitive | |
DYN_FUNC bool | inside (const TTriangle3D< Real > &triangle) const |
DYN_FUNC bool | inside (const TRectangle3D< Real > &rectangle) const |
DYN_FUNC bool | inside (const TDisk3D< Real > &disk) const |
DYN_FUNC bool | inside (const TSphere3D< Real > &sphere) const |
check whether a point strictly lies inside (excluding boundary) a 3D geometric primitive | |
DYN_FUNC bool | inside (const TCapsule3D< Real > &capsule) const |
DYN_FUNC bool | inside (const TTet3D< Real > &tet) const |
DYN_FUNC bool | inside (const TAlignedBox3D< Real > &box) const |
DYN_FUNC bool | inside (const TOrientedBox3D< Real > &obb) const |
DYN_FUNC const TSegment3D< Real > | operator- (const TPoint3D< Real > &pt) const |
Public Attributes | |
Coord3D | origin |
0D geometric primitive in three-dimensional space
Definition at line 108 of file Primitive3D.h.
typedef Vector<Real, 2> dyno::TPoint3D< Real >::Coord2D |
Definition at line 111 of file Primitive3D.h.
typedef Vector<Real, 3> dyno::TPoint3D< Real >::Coord3D |
Definition at line 112 of file Primitive3D.h.
DYN_FUNC dyno::TPoint3D< Real >::TPoint3D | ( | ) |
DYN_FUNC dyno::TPoint3D< Real >::TPoint3D | ( | const Real & | c0, |
const Real & | c1, | ||
const Real & | c2 ) |
Definition at line 21 of file Primitive3D.inl.
DYN_FUNC dyno::TPoint3D< Real >::TPoint3D | ( | const TPoint3D< Real > & | pt | ) |
|
explicit |
Definition at line 15 of file Primitive3D.inl.
|
explicit |
Definition at line 27 of file Primitive3D.inl.
DYN_FUNC Real dyno::TPoint3D< Real >::distance | ( | const TAlignedBox3D< Real > & | abox | ) | const |
Definition at line 580 of file Primitive3D.inl.
DYN_FUNC Real dyno::TPoint3D< Real >::distance | ( | const TCapsule3D< Real > & | capsule | ) | const |
DYN_FUNC Real dyno::TPoint3D< Real >::distance | ( | const TLine3D< Real > & | line | ) | const |
Definition at line 506 of file Primitive3D.inl.
DYN_FUNC Real dyno::TPoint3D< Real >::distance | ( | const TOrientedBox3D< Real > & | obb | ) | const |
Definition at line 588 of file Primitive3D.inl.
DYN_FUNC Real dyno::TPoint3D< Real >::distance | ( | const TPlane3D< Real > & | plane | ) | const |
compute the signed distance to 2D geometric primitives
plane/triangle/rectangle/disk | planar components |
Definition at line 524 of file Primitive3D.inl.
DYN_FUNC Real dyno::TPoint3D< Real >::distance | ( | const TRectangle3D< Real > & | rectangle | ) | const |
DYN_FUNC Real dyno::TPoint3D< Real >::distance | ( | const TSegment3D< Real > & | segment | ) | const |
DYN_FUNC Real dyno::TPoint3D< Real >::distance | ( | const TSphere3D< Real > & | sphere | ) | const |
compute signed distance to 3D geometric primitives
sphere/tet/abox/obb | 3D geometric primitives |
Definition at line 566 of file Primitive3D.inl.
DYN_FUNC Real dyno::TPoint3D< Real >::distance | ( | const TTriangle3D< Real > & | triangle | ) | const |
Definition at line 533 of file Primitive3D.inl.
DYN_FUNC Real dyno::TPoint3D< Real >::distanceSquared | ( | const TAlignedBox3D< Real > & | abox | ) | const |
DYN_FUNC Real dyno::TPoint3D< Real >::distanceSquared | ( | const TCapsule3D< Real > & | capsule | ) | const |
DYN_FUNC Real dyno::TPoint3D< Real >::distanceSquared | ( | const TDisk3D< Real > & | disk | ) | const |
Definition at line 646 of file Primitive3D.inl.
DYN_FUNC Real dyno::TPoint3D< Real >::distanceSquared | ( | const TOrientedBox3D< Real > & | obb | ) | const |
DYN_FUNC Real dyno::TPoint3D< Real >::distanceSquared | ( | const TPlane3D< Real > & | plane | ) | const |
return squared distance from a point to 3D geometric primitives
plane/triangle/rectangle/disk | planar components |
Definition at line 628 of file Primitive3D.inl.
DYN_FUNC Real dyno::TPoint3D< Real >::distanceSquared | ( | const TPoint3D< Real > & | pt | ) | const |
DYN_FUNC Real dyno::TPoint3D< Real >::distanceSquared | ( | const TRectangle3D< Real > & | rectangle | ) | const |
DYN_FUNC Real dyno::TPoint3D< Real >::distanceSquared | ( | const TSegment3D< Real > & | segment | ) | const |
Definition at line 622 of file Primitive3D.inl.
DYN_FUNC Real dyno::TPoint3D< Real >::distanceSquared | ( | const TSphere3D< Real > & | sphere | ) | const |
return squared distance from a point to 3D geometric primitives
sphere/capsule/tet/abox/obb | 3D geometric primitives |
Definition at line 652 of file Primitive3D.inl.
DYN_FUNC Real dyno::TPoint3D< Real >::distanceSquared | ( | const TTriangle3D< Real > & | triangle | ) | const |
DYN_FUNC bool dyno::TPoint3D< Real >::inside | ( | const TAlignedBox3D< Real > & | box | ) | const |
Definition at line 838 of file Primitive3D.inl.
DYN_FUNC bool dyno::TPoint3D< Real >::inside | ( | const TCapsule3D< Real > & | capsule | ) | const |
DYN_FUNC bool dyno::TPoint3D< Real >::inside | ( | const TDisk3D< Real > & | disk | ) | const |
Definition at line 775 of file Primitive3D.inl.
DYN_FUNC bool dyno::TPoint3D< Real >::inside | ( | const TLine3D< Real > & | line | ) | const |
check whether a point strictly lies inside (excluding boundary) a 1D geometric primitive
line/ray/segment | 1D geometric primitives |
Definition at line 682 of file Primitive3D.inl.
DYN_FUNC bool dyno::TPoint3D< Real >::inside | ( | const TOrientedBox3D< Real > & | obb | ) | const |
Definition at line 825 of file Primitive3D.inl.
DYN_FUNC bool dyno::TPoint3D< Real >::inside | ( | const TPlane3D< Real > & | plane | ) | const |
check whether a point strictly lies inside (excluding boundary) a 2D geometric primitive
plane/triangle/rectangle/disk | 2D geometric primitives |
Definition at line 722 of file Primitive3D.inl.
DYN_FUNC bool dyno::TPoint3D< Real >::inside | ( | const TRay3D< Real > & | ray | ) | const |
Definition at line 693 of file Primitive3D.inl.
DYN_FUNC bool dyno::TPoint3D< Real >::inside | ( | const TRectangle3D< Real > & | rectangle | ) | const |
DYN_FUNC bool dyno::TPoint3D< Real >::inside | ( | const TSegment3D< Real > & | segment | ) | const |
Definition at line 707 of file Primitive3D.inl.
DYN_FUNC bool dyno::TPoint3D< Real >::inside | ( | const TSphere3D< Real > & | sphere | ) | const |
check whether a point strictly lies inside (excluding boundary) a 3D geometric primitive
sphere/tet/abox/obb | 3D geometric primitives |
Definition at line 787 of file Primitive3D.inl.
DYN_FUNC bool dyno::TPoint3D< Real >::inside | ( | const TTet3D< Real > & | tet | ) | const |
DYN_FUNC bool dyno::TPoint3D< Real >::inside | ( | const TTriangle3D< Real > & | triangle | ) | const |
Definition at line 733 of file Primitive3D.inl.
DYN_FUNC const TSegment3D< Real > dyno::TPoint3D< Real >::operator- | ( | const TPoint3D< Real > & | pt | ) | const |
DYN_FUNC TPoint3D< Real > dyno::TPoint3D< Real >::project | ( | const TAlignedBox3D< Real > & | abox | ) | const |
Definition at line 289 of file Primitive3D.inl.
DYN_FUNC TPoint3D< Real > dyno::TPoint3D< Real >::project | ( | const TAlignedBox3D< Real > & | abox, |
Bool & | bInside ) const |
DYN_FUNC TPoint3D< Real > dyno::TPoint3D< Real >::project | ( | const TCapsule3D< Real > & | capsule | ) | const |
DYN_FUNC TPoint3D< Real > dyno::TPoint3D< Real >::project | ( | const TCapsule3D< Real > & | capsule, |
Bool & | bInside ) const |
DYN_FUNC TPoint3D< Real > dyno::TPoint3D< Real >::project | ( | const TDisk3D< Real > & | disk | ) | const |
Definition at line 236 of file Primitive3D.inl.
DYN_FUNC TPoint3D< Real > dyno::TPoint3D< Real >::project | ( | const TLine3D< Real > & | line | ) | const |
project a point onto linear components – lines, rays and segments
line/ray/segment | linear components |
Definition at line 46 of file Primitive3D.inl.
DYN_FUNC TPoint3D< Real > dyno::TPoint3D< Real >::project | ( | const TOrientedBox3D< Real > & | obb | ) | const |
DYN_FUNC TPoint3D< Real > dyno::TPoint3D< Real >::project | ( | const TOrientedBox3D< Real > & | obb, |
Bool & | bInside ) const |
DYN_FUNC TPoint3D< Real > dyno::TPoint3D< Real >::project | ( | const TPlane3D< Real > & | plane | ) | const |
project a point onto planar components – planes, triangles and disks
plane/triangle/disk | planar components |
Definition at line 90 of file Primitive3D.inl.
DYN_FUNC TPoint3D< Real > dyno::TPoint3D< Real >::project | ( | const TRectangle3D< Real > & | rectangle | ) | const |
DYN_FUNC TPoint3D< Real > dyno::TPoint3D< Real >::project | ( | const TSegment3D< Real > & | segment | ) | const |
DYN_FUNC TPoint3D< Real > dyno::TPoint3D< Real >::project | ( | const TSphere3D< Real > & | sphere | ) | const |
project a point onto polyhedra components – tetrahedra, spheres and oriented bounding boxes
sphere/capsule/tet/abox/obb | polyhedra components |
Definition at line 251 of file Primitive3D.inl.
DYN_FUNC TPoint3D< Real > dyno::TPoint3D< Real >::project | ( | const TTet3D< Real > & | tet, |
Bool & | bInside ) const |
Definition at line 378 of file Primitive3D.inl.
DYN_FUNC TPoint3D< Real > dyno::TPoint3D< Real >::project | ( | const TTriangle3D< Real > & | triangle | ) | const |
Coord3D dyno::TPoint3D< Real >::origin |
Definition at line 254 of file Primitive3D.h.