mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 08:47:52 -06:00
Hollowing: randomize hole mesh translations before unification.
To prevent self intersections in the output mesh.
This commit is contained in:
parent
f512892f6b
commit
eb4b24e136
4 changed files with 25 additions and 17 deletions
|
@ -113,6 +113,9 @@ struct CGALMesh { _EpicMesh m; };
|
|||
template<class _Mesh> void triangle_mesh_to_cgal(const TriangleMesh &M, _Mesh &out)
|
||||
{
|
||||
using Index3 = std::array<size_t, 3>;
|
||||
|
||||
if (M.empty()) return;
|
||||
|
||||
std::vector<typename _Mesh::Point> points;
|
||||
std::vector<Index3> indices;
|
||||
points.reserve(M.its.vertices.size());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue