| 82 | const int PointConvert::FACTOR = 1<<23; |
| 83 | |
| 84 | ClipperLib::Path loop_to_path(const MatrixFr& vertices, const Loop& loop) { |
| 85 | ClipperLib::Path path; |
| 86 | for (auto i : loop) { |
| 87 | path.push_back( |
| 88 | PointConvert::point_to_int_point( |
| 89 | vertices.row(i))); |
| 90 | } |
| 91 | return path; |
| 92 | } |
| 93 | |
| 94 | Loop path_to_loop(const ClipperLib::Path& path, |
| 95 | std::list<Vector2F>& vertices) { |
no outgoing calls
no test coverage detected