0026949: Geom(2d)Adaptor_Curve/Surface should not do down casts in evaluation
[occt.git] / src / GeomAdaptor / GeomAdaptor_Curve.hxx
index f74bbdc..7cf42e6 100644 (file)
@@ -231,6 +231,8 @@ private:
   GeomAbs_CurveType myTypeCurve;
   Standard_Real myFirst;
   Standard_Real myLast;
+  
+  Handle(Geom_BSplineCurve) myBSplineCurve; ///< B-spline representation to prevent castings
   Handle(BSplCLib_Cache) myCurveCache; ///< Cached data for B-spline or Bezier curve
   Handle(GeomEvaluator_Curve) myNestedEvaluator; ///< Calculates value of offset curve