0026949: Geom(2d)Adaptor_Curve/Surface should not do down casts in evaluation
[occt.git] / src / Geom2dAdaptor / Geom2dAdaptor_Curve.hxx
index 89b51cd..3c0b7d5 100644 (file)
@@ -192,6 +192,8 @@ private:
   GeomAbs_CurveType myTypeCurve;
   Standard_Real myFirst;
   Standard_Real myLast;
+
+  Handle(Geom2d_BSplineCurve) myBSplineCurve; ///< B-spline representation to prevent castings
   Handle(BSplCLib_Cache) myCurveCache; ///< Cached data for B-spline or Bezier curve
   Handle(Geom2dEvaluator_Curve) myNestedEvaluator; ///< Calculates value of offset curve