rnc: Modified the contour detection in order to build a spline instead of a polyline as an output of the operation

This commit is contained in:
gdd 2011-10-12 09:35:40 +00:00
parent 25a9bfe5f5
commit defe9b3d2a

View File

@ -760,9 +760,9 @@ bool EntityGUI_FeatureDetectorDlg::execute( ObjectList& objects )
j++; j++;
// } // }
} }
GEOM::GEOM_Object_var aWire = aCurveOperations->MakePolyline(geomContourPnts.in(), false); // GEOM::GEOM_Object_var aWire = aCurveOperations->MakePolyline(geomContourPnts.in(), false);
// GEOM::GEOM_Object_var aContourCompound = aShapesOperations->MakeCompound(geomContourPnts); // GEOM::GEOM_Object_var aContourCompound = aShapesOperations->MakeCompound(geomContourPnts);
// GEOM::GEOM_Object_var aWire = aCurveOperations->MakeSplineInterpolation(geomContourPnts.in(), false, true); GEOM::GEOM_Object_var aWire = aCurveOperations->MakeSplineInterpolation(geomContourPnts.in(), false, false);
if ( !aWire->_is_nil() ) if ( !aWire->_is_nil() )
{ {
geomContours->length(contourCount + 1); geomContours->length(contourCount + 1);