Go to the documentation of this file.
26 #include "Math/Math3d.h"
28 #include "../HandLocalisationConstants.h"
80 void CalcConvexHull(
Vec3d* in,
int num_all_points,
Vec3d* hull_left,
int* num_hull_points_left,
Vec3d* hull_right,
int* num_hull_points_right);
#define DSHT_MAX_POLYGON_CORNERS
Vec3d hullCircle[2 *DSHT_MAX_POLYGON_CORNERS+1]
Vec3d hullLeft[2 *DSHT_MAX_POLYGON_CORNERS+1]
bool LeftTurn(Vec3d p1, Vec3d p2, Vec3d p3)
bool RightTurn(Vec3d p1, Vec3d p2, Vec3d p3)
void GetPolygonIntersection(Polygon *p1, Polygon *p2, Polygon *pInter, Vec3d *pointAccu, bool *boolTable, Vec3d *clockwiseHullPoly1, Vec3d *clockwiseHullPoly2)
void SortByY(Vec3d *inout, int arraylength)
void CreateConvexPolygonFromHullPoints(Vec3d *hullpoints, int nPoints, Polygon *pol)
Vec3d hullRight[2 *DSHT_MAX_POLYGON_CORNERS+1]
bool PolygonsMightIntersect(Polygon *pol1, Polygon *pol2)
VectorXD< 3, double > Vec3d
void SortByX(Vec3d *inout, int arraylength)
Vec3d hull[2 *DSHT_MAX_POLYGON_CORNERS]
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)
bool PointIsOnTheRightSideOfTheLine(Vec3d Point, Vec3d linePoint1, Vec3d linePoint2)