Mesh: Use a lower threshold for the MeshPart_SectionByPlane command

See forum: https://forum.freecad.org/viewtopic.php?t=88734
This commit is contained in:
wmayer
2024-06-28 15:08:02 +02:00
committed by wwmayer
parent 876e88f405
commit 535faeb297

View File

@@ -230,7 +230,8 @@ void CmdMeshPartSection::activated(int)
for (auto it : docObj) {
const Mesh::MeshObject* mesh = static_cast<Mesh::Feature*>(it)->Mesh.getValuePtr();
std::vector<Mesh::MeshObject::TPolylines> polylines;
mesh->crossSections(sections, polylines);
const float minSectionLength = 1e-7F;
mesh->crossSections(sections, polylines, minSectionLength);
for (const auto& it2 : polylines) {
for (const auto& it3 : it2) {