diff --git a/src/libslic3r/OpenVDBUtils.cpp b/src/libslic3r/OpenVDBUtils.cpp index 603362b69..04bc92b4b 100644 --- a/src/libslic3r/OpenVDBUtils.cpp +++ b/src/libslic3r/OpenVDBUtils.cpp @@ -43,15 +43,13 @@ public: : its{m}, voxel_scale{voxel_sc} {}; }; -// TODO: Do I need to call initialize? Seems to work without it as well but the -// docs say it should be called ones. It does a mutex lock-unlock sequence all -// even if was called previously. openvdb::FloatGrid::Ptr mesh_to_grid(const indexed_triangle_set & mesh, const openvdb::math::Transform &tr, float voxel_scale, float exteriorBandWidth, float interiorBandWidth) { + // Might not be needed but this is now proven to be working openvdb::initialize(); std::vector meshparts = its_split(mesh); @@ -70,9 +68,7 @@ openvdb::FloatGrid::Ptr mesh_to_grid(const indexed_triangle_set & mesh, else if (subgrid) grid = std::move(subgrid); } - if (grid && meshparts.size() >= 1) { -// grid = openvdb::tools::levelSetRebuild(*grid, 0.); - } else if(meshparts.empty()) { + if(meshparts.empty()) { // Splitting failed, fall back to hollow the original mesh grid = openvdb::tools::meshToVolume( TriangleMeshDataAdapter{mesh}, tr); diff --git a/src/libslic3r/SLA/Hollowing.cpp b/src/libslic3r/SLA/Hollowing.cpp index 81a38f3a9..ab09372a7 100644 --- a/src/libslic3r/SLA/Hollowing.cpp +++ b/src/libslic3r/SLA/Hollowing.cpp @@ -502,7 +502,7 @@ void remove_inside_triangles(TriangleMesh &mesh, const Interior &interior, if (f.parent != NEW_FACE) // Top parent needs to be removed as well mesh_mods.to_remove[f.parent] = true; - // If the outside part is between the interior end the exterior + // If the outside part is between the interior and the exterior // (inside the wall being invisible), no further division is needed. if ((R + D) < interior.thickness) return false;