PPL Logo

libs/ck-libs/datatransfer/geom_util.C File Reference

Go to the source code of this file.

Functions

bool point_in_convpoly3D (Vec3D &p, vector< Plane3D > &P)
void radial_sort2D (tPolygond &P)
double poly_area2D (tPolygond &P)
bool point_in_convpoly2D (tPointd &p, tPolygond &P)
bool poly_in_convpoly2D (tPolygond &P1, tPolygond &P2)
double tri_prism_X (double tri[][3], double prism[][3], vector< Vec3D > &xpoly)
int convex_poly_X (tPolygond &P, tPolygond &Q, tPolygond &I)
tInFlag in_out (tPointd &p, tInFlag inflag, int aHB, int bHA, tPolygond &I)
int advance (int a, int *aa, int n, bool inside, tPointd &v, tPolygond &I)
int ReadPoly (tPolygond &P)
bool left (tPointd &a, tPointd &b, tPointd &c)
bool left_on (tPointd &a, tPointd &b, tPointd &c)
bool collinear (tPointd &a, tPointd &b, tPointd &c)
int area_sign (tPointd &a, tPointd &b, tPointd &c)
char seg_seg_int (tPointd &a, tPointd &b, tPointd &c, tPointd &d, tPointd &p, tPointd &q)
char parallel_int (tPointd &a, tPointd &b, tPointd &c, tPointd &d, tPointd &p, tPointd &q)
bool between (tPointd &a, tPointd &b, tPointd &c)
void shared_seg (tPointd &p, tPointd &q, tPolygond &I)


Function Documentation

bool point_in_convpoly3D ( Vec3D p,
vector< Plane3D > &  P 
)

Definition at line 6 of file geom_util.C.

References n.

void radial_sort2D ( tPolygond P  ) 

Definition at line 22 of file geom_util.C.

References flag, PUP::l, left(), and p.

Referenced by tri_prism_X().

Here is the call graph for this function:

Here is the caller graph for this function:

double poly_area2D ( tPolygond P  )  [inline]

Definition at line 59 of file geom_util.C.

References n.

Referenced by tri_prism_X().

Here is the caller graph for this function:

bool point_in_convpoly2D ( tPointd p,
tPolygond P 
)

Definition at line 70 of file geom_util.C.

Referenced by main(), and poly_in_convpoly2D().

Here is the caller graph for this function:

bool poly_in_convpoly2D ( tPolygond P1,
tPolygond P2 
)

Definition at line 94 of file geom_util.C.

References point_in_convpoly2D().

Referenced by main(), and tri_prism_X().

Here is the call graph for this function:

Here is the caller graph for this function:

double tri_prism_X ( double  tri[][3],
double  prism[][3],
vector< Vec3D > &  xpoly 
)

Definition at line 139 of file geom_util.C.

References convex_poly_X(), erase_consecutive_dups(), Plane3D::from_tri(), Plane3D::intersect_ray(), Plane3D::map(), poly_area2D(), poly_in_convpoly2D(), radial_sort2D(), Ray3D::set(), Plane3D::unmap(), and x.

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

int convex_poly_X ( tPolygond P,
tPolygond Q,
tPolygond I 
)

Definition at line 285 of file geom_util.C.

References PUP::a, advance(), area_sign(), PUP::b, in_out(), PUP::m, n, p, Pin, Qin, seg_seg_int(), shared_seg(), and Unknown.

Referenced by tri_prism_X().

Here is the call graph for this function:

Here is the caller graph for this function:

tInFlag in_out ( tPointd p,
tInFlag  inflag,
int  aHB,
int  bHA,
tPolygond I 
)

Definition at line 399 of file geom_util.C.

References Pin, and Qin.

Referenced by convex_poly_X().

Here is the caller graph for this function:

int advance ( int  a,
int aa,
int  n,
bool  inside,
tPointd v,
tPolygond I 
)

int ReadPoly ( tPolygond P  ) 

Definition at line 430 of file geom_util.C.

References n, and x.

bool left ( tPointd a,
tPointd b,
tPointd c 
)

Definition at line 461 of file geom_util.C.

References area_sign().

Here is the call graph for this function:

bool left_on ( tPointd a,
tPointd b,
tPointd c 
)

Definition at line 466 of file geom_util.C.

References area_sign().

Here is the call graph for this function:

bool collinear ( tPointd a,
tPointd b,
tPointd c 
)

Definition at line 471 of file geom_util.C.

References area_sign().

Referenced by parallel_int().

Here is the call graph for this function:

Here is the caller graph for this function:

int area_sign ( tPointd a,
tPointd b,
tPointd c 
)

Definition at line 476 of file geom_util.C.

Referenced by collinear(), convex_poly_X(), left(), and left_on().

Here is the caller graph for this function:

char seg_seg_int ( tPointd a,
tPointd b,
tPointd c,
tPointd d,
tPointd p,
tPointd q 
)

Definition at line 501 of file geom_util.C.

References parallel_int(), PUP::s, and PUP::t.

Referenced by convex_poly_X().

Here is the call graph for this function:

Here is the caller graph for this function:

char parallel_int ( tPointd a,
tPointd b,
tPointd c,
tPointd d,
tPointd p,
tPointd q 
)

Definition at line 542 of file geom_util.C.

References between(), and collinear().

Referenced by seg_seg_int().

Here is the call graph for this function:

Here is the caller graph for this function:

bool between ( tPointd a,
tPointd b,
tPointd c 
)

Definition at line 585 of file geom_util.C.

Referenced by FEM_Modify_IDXL(), and parallel_int().

Here is the caller graph for this function:

void shared_seg ( tPointd p,
tPointd q,
tPolygond I 
)

Definition at line 598 of file geom_util.C.

Referenced by convex_poly_X().

Here is the caller graph for this function:


Generated on Mon Sep 21 08:06:56 2020 for Charm++ by  doxygen 1.5.5