PeriDyno 1.0.0
Loading...
Searching...
No Matches
dyno::TLine3D< Real > Class Template Reference

1D geometric primitives in three-dimensional space More...

#include <Primitive3D.h>

Collaboration diagram for dyno::TLine3D< Real >:

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< Realproximity (const TLine3D< Real > &line) const
 
DYN_FUNC TSegment3D< Realproximity (const TRay3D< Real > &ray) const
 
DYN_FUNC TSegment3D< Realproximity (const TSegment3D< Real > &segment) const
 
DYN_FUNC TSegment3D< Realproximity (const TTriangle3D< Real > &triangle) const
 
DYN_FUNC TSegment3D< Realproximity (const TRectangle3D< Real > &rectangle) const
 
DYN_FUNC TSegment3D< Realproximity (const TSphere3D< Real > &sphere) const
 
DYN_FUNC TSegment3D< Realproximity (const TAlignedBox3D< Real > &box) const
 
DYN_FUNC TSegment3D< Realproximity (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
 

Detailed Description

template<typename Real>
class dyno::TLine3D< Real >

1D geometric primitives in three-dimensional space

Definition at line 258 of file Primitive3D.h.

Member Typedef Documentation

◆ Coord2D

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

Definition at line 261 of file Primitive3D.h.

◆ Coord3D

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

Definition at line 262 of file Primitive3D.h.

Constructor & Destructor Documentation

◆ TLine3D() [1/3]

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

Definition at line 858 of file Primitive3D.inl.

Here is the caller graph for this function:

◆ TLine3D() [2/3]

template<typename Real>
DYN_FUNC dyno::TLine3D< Real >::TLine3D ( const Coord3D & pos,
const Coord3D & dir )
Parameters
pos
dir= 0 indicate the line degenerates into a point

Definition at line 865 of file Primitive3D.inl.

◆ TLine3D() [3/3]

template<typename Real>
DYN_FUNC dyno::TLine3D< Real >::TLine3D ( const TLine3D< Real > & line)

Definition at line 872 of file Primitive3D.inl.

Here is the call graph for this function:

Member Function Documentation

◆ distance() [1/6]

template<typename Real>
DYN_FUNC Real dyno::TLine3D< Real >::distance ( const TAlignedBox3D< Real > & box) const

Definition at line 1554 of file Primitive3D.inl.

Here is the call graph for this function:

◆ distance() [2/6]

template<typename Real>
DYN_FUNC Real dyno::TLine3D< Real >::distance ( const TLine3D< Real > & line) const

Definition at line 1536 of file Primitive3D.inl.

Here is the call graph for this function:

◆ distance() [3/6]

template<typename Real>
DYN_FUNC Real dyno::TLine3D< Real >::distance ( const TOrientedBox3D< Real > & obb) const

Definition at line 1560 of file Primitive3D.inl.

Here is the call graph for this function:

◆ distance() [4/6]

template<typename Real>
DYN_FUNC Real dyno::TLine3D< Real >::distance ( const TPoint3D< Real > & pt) const

Definition at line 1530 of file Primitive3D.inl.

Here is the call graph for this function:

◆ distance() [5/6]

template<typename Real>
DYN_FUNC Real dyno::TLine3D< Real >::distance ( const TRay3D< Real > & ray) const

Definition at line 1542 of file Primitive3D.inl.

Here is the call graph for this function:

◆ distance() [6/6]

template<typename Real>
DYN_FUNC Real dyno::TLine3D< Real >::distance ( const TSegment3D< Real > & segment) const

Definition at line 1548 of file Primitive3D.inl.

Here is the call graph for this function:

◆ distanceSquared() [1/6]

template<typename Real>
DYN_FUNC Real dyno::TLine3D< Real >::distanceSquared ( const TAlignedBox3D< Real > & box) const

compute signed distance to 3D geometric primitives

Parameters
box/obb
Returns
0 if intersecting the 3D geometric primitives

Definition at line 1610 of file Primitive3D.inl.

Here is the call graph for this function:

◆ distanceSquared() [2/6]

template<typename Real>
DYN_FUNC Real dyno::TLine3D< Real >::distanceSquared ( const TLine3D< Real > & line) const

Definition at line 1572 of file Primitive3D.inl.

Here is the call graph for this function:

◆ distanceSquared() [3/6]

template<typename Real>
DYN_FUNC Real dyno::TLine3D< Real >::distanceSquared ( const TOrientedBox3D< Real > & obb) const

Definition at line 1616 of file Primitive3D.inl.

Here is the call graph for this function:

◆ distanceSquared() [4/6]

template<typename Real>
DYN_FUNC Real dyno::TLine3D< Real >::distanceSquared ( const TPoint3D< Real > & pt) const

Definition at line 1566 of file Primitive3D.inl.

Here is the call graph for this function:

◆ distanceSquared() [5/6]

template<typename Real>
DYN_FUNC Real dyno::TLine3D< Real >::distanceSquared ( const TRay3D< Real > & ray) const

Definition at line 1598 of file Primitive3D.inl.

Here is the call graph for this function:

◆ distanceSquared() [6/6]

template<typename Real>
DYN_FUNC Real dyno::TLine3D< Real >::distanceSquared ( const TSegment3D< Real > & segment) const

Definition at line 1604 of file Primitive3D.inl.

Here is the call graph for this function:

◆ intersect() [1/6]

template<typename Real>
DYN_FUNC int dyno::TLine3D< Real >::intersect ( const TAlignedBox3D< Real > & abox,
TSegment3D< Real > & interSeg ) const

Definition at line 1740 of file Primitive3D.inl.

Here is the call graph for this function:

◆ intersect() [2/6]

template<typename Real>
DYN_FUNC int dyno::TLine3D< Real >::intersect ( const TOrientedBox3D< Real > & obb,
TSegment3D< Real > & interSeg ) const

Definition at line 1814 of file Primitive3D.inl.

Here is the call graph for this function:

◆ intersect() [3/6]

template<typename Real>
DYN_FUNC int dyno::TLine3D< Real >::intersect ( const TPlane3D< Real > & plane,
TPoint3D< Real > & interPt ) const

intersection tests

Returns
0 if there is no intersection

Definition at line 1622 of file Primitive3D.inl.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ intersect() [4/6]

template<typename Real>
DYN_FUNC int dyno::TLine3D< Real >::intersect ( const TSphere3D< Real > & sphere,
TSegment3D< Real > & interSeg ) const

Definition at line 1687 of file Primitive3D.inl.

Here is the call graph for this function:

◆ intersect() [5/6]

template<typename Real>
DYN_FUNC int dyno::TLine3D< Real >::intersect ( const TTet3D< Real > & tet,
TSegment3D< Real > & interSeg ) const

Definition at line 1715 of file Primitive3D.inl.

Here is the call graph for this function:

◆ intersect() [6/6]

template<typename Real>
DYN_FUNC int dyno::TLine3D< Real >::intersect ( const TTriangle3D< Real > & triangle,
TPoint3D< Real > & interPt ) const

Definition at line 1638 of file Primitive3D.inl.

Here is the call graph for this function:

◆ isValid()

template<typename Real>
DYN_FUNC bool dyno::TLine3D< Real >::isValid ( ) const

Definition at line 1905 of file Primitive3D.inl.

Here is the caller graph for this function:

◆ parameter()

template<typename Real>
DYN_FUNC Real dyno::TLine3D< Real >::parameter ( const Coord3D & pos) const

Definition at line 1896 of file Primitive3D.inl.

◆ proximity() [1/8]

template<typename Real>
DYN_FUNC TSegment3D< Real > dyno::TLine3D< Real >::proximity ( const TAlignedBox3D< Real > & box) const

Definition at line 1132 of file Primitive3D.inl.

Here is the call graph for this function:

◆ proximity() [2/8]

template<typename Real>
DYN_FUNC TSegment3D< Real > dyno::TLine3D< Real >::proximity ( const TLine3D< Real > & line) const

Definition at line 879 of file Primitive3D.inl.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ proximity() [3/8]

template<typename Real>
DYN_FUNC TSegment3D< Real > dyno::TLine3D< Real >::proximity ( const TOrientedBox3D< Real > & obb) const

Definition at line 1505 of file Primitive3D.inl.

Here is the call graph for this function:

◆ proximity() [4/8]

template<typename Real>
DYN_FUNC TSegment3D< Real > dyno::TLine3D< Real >::proximity ( const TRay3D< Real > & ray) const

Definition at line 905 of file Primitive3D.inl.

Here is the call graph for this function:

◆ proximity() [5/8]

template<typename Real>
DYN_FUNC TSegment3D< Real > dyno::TLine3D< Real >::proximity ( const TRectangle3D< Real > & rectangle) const

Definition at line 1063 of file Primitive3D.inl.

Here is the call graph for this function:

◆ proximity() [6/8]

template<typename Real>
DYN_FUNC TSegment3D< Real > dyno::TLine3D< Real >::proximity ( const TSegment3D< Real > & segment) const

Definition at line 942 of file Primitive3D.inl.

Here is the call graph for this function:

◆ proximity() [7/8]

template<typename Real>
DYN_FUNC TSegment3D< Real > dyno::TLine3D< Real >::proximity ( const TSphere3D< Real > & sphere) const

Definition at line 1117 of file Primitive3D.inl.

Here is the call graph for this function:

◆ proximity() [8/8]

template<typename Real>
DYN_FUNC TSegment3D< Real > dyno::TLine3D< Real >::proximity ( const TTriangle3D< Real > & triangle) const

Definition at line 986 of file Primitive3D.inl.

Here is the call graph for this function:

Member Data Documentation

◆ direction

template<typename Real>
Coord3D dyno::TLine3D< Real >::direction

Definition at line 333 of file Primitive3D.h.

◆ origin

template<typename Real>
Coord3D dyno::TLine3D< Real >::origin

Definition at line 330 of file Primitive3D.h.


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