|
| mgx_EXPORT bool | mgx::triangleOrientationCheck (std::vector< Point3i > &triList, int idxRefTri=-1) |
| | triangleOrientationCheck More...
|
| |
| mgx_EXPORT std::vector< Point3d > | mgx::orderPolygonSegs (std::vector< std::pair< Point3d, Point3d > > &polygonSegs, bool keepPolySegs=true) |
| | orderPolygonSegs More...
|
| |
| mgx_EXPORT std::vector< std::vector< Point3d > > | mgx::orderPolygonSegsMulti (std::vector< std::pair< Point3d, Point3d > > &polygonSegs) |
| |
| mgx_EXPORT Point3d | mgx::getPolygonNrml (std::vector< Point3d > &pointsPolygon) |
| | getPolygonNrml More...
|
| |
| mgx_EXPORT Point3d | mgx::getPolygonNrml (std::vector< Point3d > &pointsPolygon, int &idxP3) |
| |
| mgx_EXPORT bool | mgx::isDataPlanar (std::vector< Point3d > &inputVertices) |
| | isDataPlanar More...
|
| |
| mgx_EXPORT bool | mgx::findPolygonPlane (std::vector< Point3d > &pointsPolygon, Point3d &planePos, Point3d &planeNrml) |
| | findPolygonPlane More...
|
| |
| mgx_EXPORT void | mgx::inplaceMatrixMultiply (std::vector< Point3d > &P, const Matrix3d &M) |
| | inplaceMatrixMultiply P := P*M More...
|
| |
| mgx_EXPORT bool | mgx::projectPointsOnPlane (std::vector< Point3d > &points, Point3d planePos, Point3d planeNrml) |
| | projectPointsOnPlane More...
|
| |
| mgx_EXPORT Matrix3d | mgx::calcRotMatrix (Point3d nrmlStart, Point3d nrmlEnd, Point3d rot_axis=Point3d(0, 0, 0)) |
| | calcRotMatrix More...
|
| |
| mgx_EXPORT void | mgx::rotatePointsIntoXY (Point3d polygonNormal, std::vector< Point3d > &pointsPolygon, Matrix3d &inv_rot_polygon_plane) |
| | rotatePointsIntoXY More...
|
| |
| mgx_EXPORT bool | mgx::triangulatePolygon3D (float maxArea, Point3d polygonNormal, std::vector< Point3d > &pointsPolygon, std::vector< Point3i > &triList, std::vector< Point3d > &ptList, bool boundary, bool inOrder, bool pointsCenter) |
| | triangulatePolygon3D More...
|
| |
| mgx_EXPORT Point3d | mgx::orthogonalVector (Point3d vec) |
| | orthogonalVector More...
|
| |
| mgx_EXPORT Point3d | mgx::calcNearestPointOnBezierGrid (const Point3d &targetPoint, std::vector< std::vector< Point3d > > &bezier, Point2i &bezIdx) |
| | calculates the nearest point of a tragetPoint on a bezier grid (bezier) More...
|
| |
| mgx_EXPORT Matrix3d | mgx::calcProjectedGrowthTensor (Matrix3d tensor, Point3d planeNrml) |
| | projectPointOnPlane More...
|
| |
| mgx_EXPORT bool | mgx::pointInPolygon (Point3d pointToTest, std::vector< Point3d > &polygon, bool debug=false) |
| |
| mgx_EXPORT std::vector< Point2d > | mgx::lloydKMeans2D (std::vector< Point2d > &clusters, std::vector< Point2d > &data, int maxStep=-1) |
| | k means function for 2D data (lloyds algorithm) More...
|
| |
| mgx_EXPORT bool | mgx::lloydKMeans (std::vector< std::vector< double > > &inputClusters, std::vector< AttrMap< int, double > > &dataPoints, int maxStep=-1, double convergenceThreshold=0.01) |
| | k means function for n-D data (lloyds algorithm) NOTE: dimensions have to match, otherwise function returns false (size of each inputClusters vector == dataPoints.size()) More...
|
| |
| mgx_EXPORT double | mgx::interpolateArrayIndex (double value, double min, double max, double newRange) |
| |
| mgx_EXPORT void | mgx::drawCross (QImage &image, int x, int y, int size, int crossSize, QRgb color) |
| |
| mgx_EXPORT void | mgx::drawCircle (QImage &image, int x, int y, int size, QRgb color) |
| |
| mgx_EXPORT double | mgx::gauss2D (double x, double y, double muX, double muY, double sigmaX, double sigmaY) |
| | returns the value of a 2D gaussian function More...
|
| |
| mgx_EXPORT Point3d | mgx::calcNearestPointOnBezierLine (const Point3d &targetPoint, std::vector< Point3d > &bezierVec, int &bezIdx, double &bezWeight) |
| | calculates the nearest point of a tragetPoint on a bezier line (bMap) as the bezier is discretized, it is approximated linearly between the nearest point and the closer neighbor point More...
|
| |
| mgx_EXPORT Point3d | mgx::calcNearestPointOnBezierLine (const Point3d &targetPoint, std::map< int, Point3d > &bMap, int &bezIdx, double &bezWeight) |
| |
| mgx_EXPORT Point3d | mgx::calcNearestPointOnBezierLine (const Point3d &targetPoint, std::map< int, Point3d > &bMap) |
| |
| mgx_EXPORT QRgb | mgx::calcRGB (double maxValue, double currentValue) |
| |
| mgx_EXPORT QRgb | mgx::getColorFromLabel (int label) |
| |
| mgx_EXPORT double | mgx::angleVectors (Point3d v1, Point3d v2, bool directed=false) |
| |