ReverseEngineering: improve workflow of fitting of B-spline surface

This commit is contained in:
wmayer
2020-03-05 16:29:09 +01:00
parent 0c1289282b
commit 593f02db63
6 changed files with 85 additions and 8 deletions

View File

@@ -178,7 +178,7 @@ void Segmentation::accept()
for (auto bt = bounds.begin(); bt != bounds.end(); ++bt) {
// project the points onto the surface
std::vector<gp_Pnt> polygon;
std::transform(bt->begin(), bt->end(), std::back_inserter(polygon), [&hPlane](const Base::Vector3f v) {
std::transform(bt->begin(), bt->end(), std::back_inserter(polygon), [&hPlane](const Base::Vector3f& v) {
gp_Pnt p(v.x, v.y, v.z);
return GeomAPI_ProjectPointOnSurf(p, hPlane).NearestPoint();
});