23 static Geom::Dir getFaceNormal(
const std::vector<Geom::Pnt>& face);
26 static Geom::Dir getNFaceNormal(
const std::vector<Geom::Pnt>& face);
29 static bool getNFaceNormalNoExc(
const std::vector<Geom::Pnt>& face,
Geom::Dir& dir);
36 static Geom::Dir getConcaveFaceNormalXY(
const std::vector<Geom::Pnt>& face);
40 static bool isEqual(
double d1,
double d2,
double tolerance = 1E-06);
41 static bool isEqual(
const Geom::XYZ& v1,
const Geom::XYZ& v2,
double tolerance = 1E-06);
42 static bool isEqual(
const Geom::Dir& d1,
const Geom::Dir& d2,
double tolerance = 1E-06);
43 static bool isEqual(
const Geom::Vec& v1,
const Geom::Vec& v2,
double tolerance = 1E-06);
44 static bool isEqual(
const Geom::Pnt& p1,
const Geom::Pnt& p2,
double tolerance = 1E-06);
45 static double roundValue(
double value,
double roundValue);
46 #ifndef LXAPI // NOT PART OF THE LEXOCAD API (FOR LXSDK AND SWIG) 47 static float roundfValue(
float value,
float roundValue);
49 static double round(
double value,
int digits);
50 static double roundValueOffset(
const double& coord,
const double& valueToRound,
const double& roundToValue);
51 static bool isEven(
const int Value) {
return Value % 2 == 0; }
52 static bool isOdd(
const int Value) {
return Value % 2 == 1; }
54 static bool getMedianPlaneFromPoints(
const std::vector<Geom::Pnt>& points,
Geom::Pln& pln);
59 static bool _getPredominantEdgesDirXY(
const COORDS& face,
Geom::Dir& normal);
62 static int _checkFaceCounter;
63 static unsigned int _checkEdgeIndex;
Defines a non-persistent 3D Cartesian point.
Definition: Pnt.h:43
std::vector< Geom::XYZ > COORDS
Definition: XYZ.h:32
Defines a non-persistent vector in 2D space.
Definition: Vec2d.h:34
Defines a non-persistent vector in 3D space.
Definition: Vec.h:44