PeriDyno 1.0.0
Loading...
Searching...
No Matches
dyno::cgeo Namespace Reference

Functions

template<typename T>
DYN_FUNC void Swap (T &a, T &b)
 
DYN_FUNC float Dot (Vec3f const &U, Vec3f const &V)
 
DYN_FUNC float Dot (Vec2f const &U, Vec2f const &V)
 
DYN_FUNC Vec2f Perp (Vec2f const &v)
 
DYN_FUNC float DotPerp (Vec2f const &v0, Vec2f const &v1)
 
DYN_FUNC Vec3f Cross (Vec3f const &U, Vec3f const &V)
 
DYN_FUNC float DotCross (Vec3f const &U, Vec3f const &V, Vec3f const &W)
 
DYN_FUNC bool isOverLap (float &c0, float &c1, float a0, float a1, float b0, float b1)
 
DYN_FUNC bool Sign (Vec3f const &n, Vec3f const &p0, Vec3f const &p1, Vec3f const &p2)
 
DYN_FUNC Vec3f getProjectionVF (Vec3f p, Vec3f a0, Vec3f a1, Vec3f a2)
 
DYN_FUNC Vec3f getDirectionVF (Vec3f p, Vec3f a0, Vec3f a1, Vec3f a2)
 
DYN_FUNC float getDistanceVF (Vec3f p, Vec3f a0, Vec3f a1, Vec3f a2)
 
DYN_FUNC bool isInNarrowBand (Vec3f b0, Vec3f b1, Vec3f b2, Vec3f b3, Vec3f a0, Vec3f a1, Vec3f a2, float d)
 
DYN_FUNC bool isConPolyOverLap2D (Vec3f face_n, int n_a, Vec3f *a, int n_b, Vec3f *b)
 
DYN_FUNC bool isIntrTri2Tet (Vec3f a0, Vec3f a1, Vec3f a2, Vec3f b0, Vec3f b1, Vec3f b2, Vec3f b3)
 
DYN_FUNC bool isIntrTri2Tet (Vec3f a0, Vec3f a1, Vec3f a2, Vec3f b1, Vec3f b2, Vec3f b3)
 
DYN_FUNC bool isInTet (Vec3f p, Vec3f b0, Vec3f b1, Vec3f b2, Vec3f b3)
 
DYN_FUNC float getOverLapBoxAreaInPoly2D (Vec3f face_n, int n_a, Vec3f *a, int n_b, Vec3f *b)
 
DYN_FUNC float getTriBoxAreaInTet (Vec3f a0, Vec3f a1, Vec3f a2, Vec3f b0, Vec3f b1, Vec3f b2, Vec3f b3)
 
DYN_FUNC float getVolume (Vec3f b0, Vec3f b1, Vec3f b2, Vec3f b3)
 
DYN_FUNC bool getBarycentric (Vec3f &bary, Vec3f p, Vec3f b0, Vec3f b1, Vec3f b2, Vec3f b3)
 
DYN_FUNC int getIntersection (float &t0, float &t1, Vec2f a0, Vec2f a1, Vec2f b0, Vec2f b1, Vec2f b2)
 
DYN_FUNC int getIntersection (Vec3f &p0, Vec3f &p1, Vec3f a0, Vec3f a1, Vec3f a2, Vec3f b0, Vec3f b1, Vec3f b2)
 
DYN_FUNC Vec2f projectWithParall (Vec3f p, Vec3f a0, Vec3f a1, Vec3f a2, Vec3f a3)
 
DYN_FUNC int intrSegWithPlane (Vec3f *q, Vec3f oA, Vec3f nA, Vec3f b0, Vec3f b1)
 
DYN_FUNC int intrTriWithPlane (Vec3f *q, Vec3f oA, Vec3f nA, Vec3f b0, Vec3f b1, Vec3f b2)
 
DYN_FUNC int intrTetWithPlane (Vec3f *q, Vec3f oA, Vec3f nA, Vec3f b0, Vec3f b1, Vec3f b2, Vec3f b3)
 
DYN_FUNC int intrBoxWithPlane (Vec3f *q, Vec3f oA, Vec3f nA, Vec3f center, Vec3f halfU, Vec3f halfV, Vec3f halfW)
 
DYN_FUNC int intrPolyWithLine (float *t, int n, Vec2f *p, Vec2f a0, Vec2f a1)
 
DYN_FUNC int intrPolyWithTri (Vec3f *q, int n, Vec3f *p, Vec3f a0, Vec3f a1, Vec3f a2)
 
DYN_FUNC int intrPolyWithRect (Vec3f *q, int n, Vec3f *p, Vec3f a0, Vec3f a1, Vec3f a2, Vec3f a3)
 

Function Documentation

◆ Cross()

DYN_FUNC Vec3f dyno::cgeo::Cross ( Vec3f const & U,
Vec3f const & V )
inline

Definition at line 35 of file ComputeGeometry.inl.

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

◆ Dot() [1/2]

DYN_FUNC float dyno::cgeo::Dot ( Vec2f const & U,
Vec2f const & V )
inline

Definition at line 29 of file ComputeGeometry.inl.

Here is the call graph for this function:

◆ Dot() [2/2]

DYN_FUNC float dyno::cgeo::Dot ( Vec3f const & U,
Vec3f const & V )
inline

Definition at line 23 of file ComputeGeometry.inl.

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

◆ DotCross()

DYN_FUNC float dyno::cgeo::DotCross ( Vec3f const & U,
Vec3f const & V,
Vec3f const & W )
inline

Definition at line 47 of file ComputeGeometry.inl.

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

◆ DotPerp()

DYN_FUNC float dyno::cgeo::DotPerp ( Vec2f const & v0,
Vec2f const & v1 )
inline

Definition at line 60 of file ComputeGeometry.inl.

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

◆ getBarycentric()

DYN_FUNC bool dyno::cgeo::getBarycentric ( Vec3f & bary,
Vec3f p,
Vec3f b0,
Vec3f b1,
Vec3f b2,
Vec3f b3 )
inline

Definition at line 636 of file ComputeGeometry.inl.

Here is the call graph for this function:

◆ getDirectionVF()

DYN_FUNC Vec3f dyno::cgeo::getDirectionVF ( Vec3f p,
Vec3f a0,
Vec3f a1,
Vec3f a2 )
inline

Definition at line 251 of file ComputeGeometry.inl.

Here is the call graph for this function:

◆ getDistanceVF()

DYN_FUNC float dyno::cgeo::getDistanceVF ( Vec3f p,
Vec3f a0,
Vec3f a1,
Vec3f a2 )
inline

Definition at line 259 of file ComputeGeometry.inl.

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

◆ getIntersection() [1/2]

DYN_FUNC int dyno::cgeo::getIntersection ( float & t0,
float & t1,
Vec2f a0,
Vec2f a1,
Vec2f b0,
Vec2f b1,
Vec2f b2 )
inline

Definition at line 659 of file ComputeGeometry.inl.

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

◆ getIntersection() [2/2]

DYN_FUNC int dyno::cgeo::getIntersection ( Vec3f & p0,
Vec3f & p1,
Vec3f a0,
Vec3f a1,
Vec3f a2,
Vec3f b0,
Vec3f b1,
Vec3f b2 )
inline

Definition at line 778 of file ComputeGeometry.inl.

Here is the call graph for this function:

◆ getOverLapBoxAreaInPoly2D()

DYN_FUNC float dyno::cgeo::getOverLapBoxAreaInPoly2D ( Vec3f face_n,
int n_a,
Vec3f * a,
int n_b,
Vec3f * b )
inline

Definition at line 353 of file ComputeGeometry.inl.

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

◆ getProjectionVF()

DYN_FUNC Vec3f dyno::cgeo::getProjectionVF ( Vec3f p,
Vec3f a0,
Vec3f a1,
Vec3f a2 )
inline

Definition at line 79 of file ComputeGeometry.inl.

Here is the caller graph for this function:

◆ getTriBoxAreaInTet()

DYN_FUNC float dyno::cgeo::getTriBoxAreaInTet ( Vec3f a0,
Vec3f a1,
Vec3f a2,
Vec3f b0,
Vec3f b1,
Vec3f b2,
Vec3f b3 )
inline

Definition at line 931 of file ComputeGeometry.inl.

Here is the call graph for this function:

◆ getVolume()

DYN_FUNC float dyno::cgeo::getVolume ( Vec3f b0,
Vec3f b1,
Vec3f b2,
Vec3f b3 )
inline

Definition at line 627 of file ComputeGeometry.inl.

Here is the call graph for this function:

◆ intrBoxWithPlane()

DYN_FUNC int dyno::cgeo::intrBoxWithPlane ( Vec3f * q,
Vec3f oA,
Vec3f nA,
Vec3f center,
Vec3f halfU,
Vec3f halfV,
Vec3f halfW )
inline

Definition at line 1104 of file ComputeGeometry.inl.

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

◆ intrPolyWithLine()

DYN_FUNC int dyno::cgeo::intrPolyWithLine ( float * t,
int n,
Vec2f * p,
Vec2f a0,
Vec2f a1 )
inline

Definition at line 1178 of file ComputeGeometry.inl.

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

◆ intrPolyWithRect()

DYN_FUNC int dyno::cgeo::intrPolyWithRect ( Vec3f * q,
int n,
Vec3f * p,
Vec3f a0,
Vec3f a1,
Vec3f a2,
Vec3f a3 )
inline

Definition at line 1335 of file ComputeGeometry.inl.

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

◆ intrPolyWithTri()

DYN_FUNC int dyno::cgeo::intrPolyWithTri ( Vec3f * q,
int n,
Vec3f * p,
Vec3f a0,
Vec3f a1,
Vec3f a2 )
inline

Definition at line 1248 of file ComputeGeometry.inl.

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

◆ intrSegWithPlane()

DYN_FUNC int dyno::cgeo::intrSegWithPlane ( Vec3f * q,
Vec3f oA,
Vec3f nA,
Vec3f b0,
Vec3f b1 )
inline

Definition at line 1006 of file ComputeGeometry.inl.

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

◆ intrTetWithPlane()

DYN_FUNC int dyno::cgeo::intrTetWithPlane ( Vec3f * q,
Vec3f oA,
Vec3f nA,
Vec3f b0,
Vec3f b1,
Vec3f b2,
Vec3f b3 )
inline

Definition at line 1056 of file ComputeGeometry.inl.

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

◆ intrTriWithPlane()

DYN_FUNC int dyno::cgeo::intrTriWithPlane ( Vec3f * q,
Vec3f oA,
Vec3f nA,
Vec3f b0,
Vec3f b1,
Vec3f b2 )
inline

Definition at line 1029 of file ComputeGeometry.inl.

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

◆ isConPolyOverLap2D()

DYN_FUNC bool dyno::cgeo::isConPolyOverLap2D ( Vec3f face_n,
int n_a,
Vec3f * a,
int n_b,
Vec3f * b )
inline

Definition at line 279 of file ComputeGeometry.inl.

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

◆ isInNarrowBand()

DYN_FUNC bool dyno::cgeo::isInNarrowBand ( Vec3f b0,
Vec3f b1,
Vec3f b2,
Vec3f b3,
Vec3f a0,
Vec3f a1,
Vec3f a2,
float d )
inline

Definition at line 270 of file ComputeGeometry.inl.

Here is the call graph for this function:

◆ isInTet()

DYN_FUNC bool dyno::cgeo::isInTet ( Vec3f p,
Vec3f b0,
Vec3f b1,
Vec3f b2,
Vec3f b3 )
inline

Definition at line 574 of file ComputeGeometry.inl.

Here is the call graph for this function:

◆ isIntrTri2Tet() [1/2]

DYN_FUNC bool dyno::cgeo::isIntrTri2Tet ( Vec3f a0,
Vec3f a1,
Vec3f a2,
Vec3f b0,
Vec3f b1,
Vec3f b2,
Vec3f b3 )
inline

Definition at line 503 of file ComputeGeometry.inl.

Here is the call graph for this function:

◆ isIntrTri2Tet() [2/2]

DYN_FUNC bool dyno::cgeo::isIntrTri2Tet ( Vec3f a0,
Vec3f a1,
Vec3f a2,
Vec3f b1,
Vec3f b2,
Vec3f b3 )
inline

Definition at line 443 of file ComputeGeometry.inl.

Here is the call graph for this function:

◆ isOverLap()

DYN_FUNC bool dyno::cgeo::isOverLap ( float & c0,
float & c1,
float a0,
float a1,
float b0,
float b1 )
inline

Definition at line 70 of file ComputeGeometry.inl.

Here is the caller graph for this function:

◆ Perp()

DYN_FUNC Vec2f dyno::cgeo::Perp ( Vec2f const & v)
inline

Definition at line 53 of file ComputeGeometry.inl.

Here is the caller graph for this function:

◆ projectWithParall()

DYN_FUNC Vec2f dyno::cgeo::projectWithParall ( Vec3f p,
Vec3f a0,
Vec3f a1,
Vec3f a2,
Vec3f a3 )
inline

Definition at line 986 of file ComputeGeometry.inl.

Here is the call graph for this function:

◆ Sign()

DYN_FUNC bool dyno::cgeo::Sign ( Vec3f const & n,
Vec3f const & p0,
Vec3f const & p1,
Vec3f const & p2 )
inline

Definition at line 65 of file ComputeGeometry.inl.

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

◆ Swap()

template<typename T>
DYN_FUNC void dyno::cgeo::Swap ( T & a,
T & b )
inline

Definition at line 22 of file ComputeGeometry.inl.

Here is the caller graph for this function: