ParamCurve.h: In constructor ‘ParamCurve::ParamCurve(gp_Pnt2d, gp_Pnt2d)’:
ParamCurve.h:26:88: error: no matching function for call to ‘Geom2d_BezierCurve::Geom2d_BezierCurve()’
How to initialize myCurve ?
Discussion
1 archived reply
Posts are displayed in their archived order.
01Commenter-1
Geom2d_BezierCurve doesn't have an empty constructor which would create an uninitialized curve. In this case one normally does one of the following:
- Make your poles creation a static method and initialize your curve in the constructor's initializer list and pass the return value of the static method as curve constructor parameter.
or
- Store your curve as pointer or handle. Both can be uninitialized. Then inside the constructor set them to the newly created curve.