@JSlyadne thank you for your suggestions
Yes I see. This is probably due to my mind set of Java guy.
Regarding the "&", the statement you suggested above in this thread:
const Handle(Geom2d_Curve)& scurve = Handle(Geom2d_Curve)::DownCast(interp.Curve());
should then be the following:
const...
@JSlyadne so, also this is wrong:
Handle(Geom_Surface) splane = new Geom_Plane(plane);
Should it be?
Handle(Geom_Surface) &splane = Handle(Geom_Surface)::DownCast(new Geom_Plane(plane));
The problem is that BRepBuilderAPI_MakeEdge wants a Handle(Geom2d_Curve)&
and the following line
const Handle(Geom2d_Curve)& scurve = interp.Curve();
doesn't work. Visual Studio complains as follows: "no suitable user-defined conversion from to exists"
Hello,
I have this problem:
// a plane
gp_Pln plane = ...
// a collection of 3 points
Handle(TColgp_HArray1OfPnt2d) points = new TColgp_HArray1OfPnt2d(1,3);
points->SetValue(1, ... );
points->SetValue(2, ... );
points->SetValue(3, ... );
// a 2d interpolating curve
Geom2dAPI_Interpolate...