#include <gp_Pnt.hxx>
#include <QTransform>
+const double LOCAL_SELECTION_TOLERANCE = 0.0001;
+
void test_HYDROData_BSplineOperation::testCurve()
{
// prepare points: function of sin(x)
aPoints.Append( aPoint );
}
// compute BSpline
- HYDROData_BSplineOperation aBSpline( aPoints, false );
+ HYDROData_BSplineOperation aBSpline( aPoints, false, LOCAL_SELECTION_TOLERANCE );
Handle(Geom_BSplineCurve) aBS = aBSpline.Curve();
CPPUNIT_ASSERT( !aBS.IsNull() );
}
// convert to QPainterPath
- HYDROData_BSplineOperation aBSpline( aPoints, false );
+ HYDROData_BSplineOperation aBSpline( aPoints, false, LOCAL_SELECTION_TOLERANCE );
CPPUNIT_ASSERT( !aBSpline.Curve().IsNull() );
- QPainterPath aPath = aBSpline.ComputePath();
+ QPainterPath aPath;
+ aBSpline.ComputePath( aPath );
CPPUNIT_ASSERT( !aPath.isEmpty() );
/*