| 421 | } |
| 422 | |
| 423 | Point3d getCombinedPoint(const Point3d& point3d, std::vector<Point3d>& allPoints, double tol) { |
| 424 | for (const Point3d& otherPoint : allPoints) { |
| 425 | if (std::sqrt(std::pow(point3d.x() - otherPoint.x(), 2) + std::pow(point3d.y() - otherPoint.y(), 2) + std::pow(point3d.z() - otherPoint.z(), 2)) |
| 426 | < tol) { |
| 427 | return otherPoint; |
| 428 | } |
| 429 | } |
| 430 | allPoints.push_back(point3d); |
| 431 | return point3d; |
| 432 | } |
| 433 | |
| 434 | std::vector<std::vector<Point3d>> computeTriangulation(const Point3dVector& vertices, const std::vector<std::vector<Point3d>>& holes, double tol) { |
| 435 | std::vector<std::vector<Point3d>> result; |
no test coverage detected