- GeomAPI_Interpolate aGBC( aHCurvePoints, theIsClosed, gp::Resolution() );
- aGBC.Perform();
- if ( aGBC.IsDone() )
- myCurve = aGBC.Curve();
+ Handle(Geom_BSplineCurve) aBSpline;
+ if( CurveCreator_Utils::constructBSpline( aHCurvePoints, theIsClosed, aBSpline ) )
+ return aBSpline;
+ else
+ return Handle(Geom_BSplineCurve)();