visionx::ConvexPolygonCalculations Namespace Reference

Classes

struct  Polygon
 

Functions

void CalcConvexHull (Polygon *pol)
 
void CalcConvexHull (Polygon *pol, Vec3d *temp1, Vec3d *temp2)
 
void CalcConvexHull (Vec3d *in, int num_all_points, Polygon *pol)
 
void CalcConvexHull (Vec3d *in, int num_all_points, Polygon *pol, Vec3d *temp1, Vec3d *temp2)
 
void CalcConvexHull (Vec3d *in, int num_all_points, Vec3d *hull_left, int *num_hull_points_left, Vec3d *hull_right, int *num_hull_points_right)
 
void CalcConvexHull (Vec3d *in, int num_all_points, Vec3d *hull_left, int *num_hull_points_left, Vec3d *hull_right, int *num_hull_points_right, Vec3d *temp1, Vec3d *temp2)
 
void CreateConvexPolygonFromHullPoints (Vec3d *hullpoints, int nPoints, Polygon *pol)
 
void GetPolygonIntersection (Polygon *p1, Polygon *p2, Polygon *pInter)
 
void GetPolygonIntersection (Polygon *p1, Polygon *p2, Polygon *pInter, Vec3d *pointAccu, bool *boolTable, Vec3d *clockwiseHullPoly1, Vec3d *clockwiseHullPoly2)
 
bool LeftTurn (Vec3d p1, Vec3d p2, Vec3d p3)
 
bool PointIsOnTheRightSideOfTheLine (Vec3d Point, Vec3d linePoint1, Vec3d linePoint2)
 
bool PolygonsMightIntersect (Polygon *pol1, Polygon *pol2)
 
bool RightTurn (Vec3d p1, Vec3d p2, Vec3d p3)
 
void SortByX (Vec3d *inout, int arraylength)
 
void SortByY (Vec3d *inout, int arraylength)
 

Function Documentation

◆ CalcConvexHull() [1/6]

void CalcConvexHull ( Polygon pol)

Definition at line 324 of file Polygon.cpp.

+ Here is the call graph for this function:

◆ CalcConvexHull() [2/6]

void CalcConvexHull ( Polygon pol,
Vec3d *  temp1,
Vec3d *  temp2 
)

Definition at line 316 of file Polygon.cpp.

+ Here is the call graph for this function:

◆ CalcConvexHull() [3/6]

void CalcConvexHull ( Vec3d *  in,
int  num_all_points,
Polygon pol 
)

Definition at line 305 of file Polygon.cpp.

+ Here is the call graph for this function:

◆ CalcConvexHull() [4/6]

void CalcConvexHull ( Vec3d *  in,
int  num_all_points,
Polygon pol,
Vec3d *  temp1,
Vec3d *  temp2 
)

Definition at line 222 of file Polygon.cpp.

+ Here is the call graph for this function:

◆ CalcConvexHull() [5/6]

void CalcConvexHull ( Vec3d *  in,
int  num_all_points,
Vec3d *  hull_left,
int *  num_hull_points_left,
Vec3d *  hull_right,
int *  num_hull_points_right 
)

Definition at line 211 of file Polygon.cpp.

+ Here is the call graph for this function:

◆ CalcConvexHull() [6/6]

void CalcConvexHull ( Vec3d *  in,
int  num_all_points,
Vec3d *  hull_left,
int *  num_hull_points_left,
Vec3d *  hull_right,
int *  num_hull_points_right,
Vec3d *  temp1,
Vec3d *  temp2 
)

Definition at line 134 of file Polygon.cpp.

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

◆ CreateConvexPolygonFromHullPoints()

void CreateConvexPolygonFromHullPoints ( Vec3d *  hullpoints,
int  nPoints,
Polygon pol 
)

Definition at line 336 of file Polygon.cpp.

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

◆ GetPolygonIntersection() [1/2]

void GetPolygonIntersection ( Polygon p1,
Polygon p2,
Polygon pInter 
)

Definition at line 533 of file Polygon.cpp.

+ Here is the call graph for this function:

◆ GetPolygonIntersection() [2/2]

void GetPolygonIntersection ( Polygon p1,
Polygon p2,
Polygon pInter,
Vec3d *  pointAccu,
bool *  boolTable,
Vec3d *  clockwiseHullPoly1,
Vec3d *  clockwiseHullPoly2 
)

Definition at line 423 of file Polygon.cpp.

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

◆ LeftTurn()

bool LeftTurn ( Vec3d  p1,
Vec3d  p2,
Vec3d  p3 
)

Definition at line 88 of file Polygon.cpp.

+ Here is the caller graph for this function:

◆ PointIsOnTheRightSideOfTheLine()

bool PointIsOnTheRightSideOfTheLine ( Vec3d  Point,
Vec3d  linePoint1,
Vec3d  linePoint2 
)

Definition at line 106 of file Polygon.cpp.

+ Here is the caller graph for this function:

◆ PolygonsMightIntersect()

bool PolygonsMightIntersect ( Polygon pol1,
Polygon pol2 
)

Definition at line 115 of file Polygon.cpp.

+ Here is the caller graph for this function:

◆ RightTurn()

bool RightTurn ( Vec3d  p1,
Vec3d  p2,
Vec3d  p3 
)

Definition at line 97 of file Polygon.cpp.

+ Here is the caller graph for this function:

◆ SortByX()

void SortByX ( Vec3d *  inout,
int  arraylength 
)

Definition at line 37 of file Polygon.cpp.

◆ SortByY()

void SortByY ( Vec3d *  inout,
int  arraylength 
)

Definition at line 63 of file Polygon.cpp.

+ Here is the caller graph for this function: