mesh segmentation algorithm for surfaces

This commit is contained in:
wmayer
2018-12-07 20:03:44 +01:00
parent f61c68c5c0
commit dac47b16f5
3 changed files with 132 additions and 2 deletions

View File

@@ -1710,8 +1710,10 @@ std::vector<Segment> MeshObject::getSegmentsFromType(MeshObject::GeometryType ty
std::unique_ptr<MeshCore::MeshDistanceSurfaceSegment> surf;
switch (type) {
case PLANE:
surf.reset(new MeshCore::MeshDistancePlanarSegment(this->_kernel, minFacets, dev));
break;
//surf.reset(new MeshCore::MeshDistancePlanarSegment(this->_kernel, minFacets, dev));
surf.reset(new MeshCore::MeshDistanceGenericSurfaceSegment(new MeshCore::PlaneSurfaceFit,
this->_kernel, minFacets, dev));
break;
// todo!
case CYLINDER:
break;