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