clean Mod/Mesh from #if 0

This commit is contained in:
Andrew
2023-03-12 15:35:11 +01:00
committed by wwmayer
parent ff5df2ce1f
commit bebadad9bf
6 changed files with 7 additions and 419 deletions

View File

@@ -476,28 +476,6 @@ void MeshObject::swapKernel(MeshCore::MeshKernel& kernel,
this->_segments[index].setName(g[index]);
}
}
#if 0
#ifndef FC_DEBUG
try {
MeshCore::MeshEvalNeighbourhood nb(_kernel);
if (!nb.Evaluate()) {
Base::Console().Warning("Errors in neighbourhood of mesh found...");
_kernel.RebuildNeighbours();
Base::Console().Warning("fixed\n");
}
MeshCore::MeshEvalTopology eval(_kernel);
if (!eval.Evaluate()) {
Base::Console().Warning("The mesh data structure has some defects\n");
}
}
catch (const Base::MemoryException&) {
// ignore memory exceptions and continue
Base::Console().Log("Check for defects in mesh data structure failed\n");
}
#endif
#endif
}
void MeshObject::save(std::ostream& out) const
@@ -1999,7 +1977,6 @@ std::vector<Segment> MeshObject::getSegmentsOfType(MeshObject::GeometryType type
std::shared_ptr<MeshCore::MeshDistanceSurfaceSegment> surf;
switch (type) {
case PLANE:
//surf.reset(new MeshCore::MeshDistancePlanarSegment(this->_kernel, minFacets, dev));
surf.reset(new MeshCore::MeshDistanceGenericSurfaceFitSegment(new MeshCore::PlaneSurfaceFit,
this->_kernel, minFacets, dev));
break;