Error make Edge from Bspline #149
-
I try to create bspline from points and make edge and got binding error let geomCurveHandle = new oc.GeomAPI_PointsToBSpline_2(ptList,3,8,openCascade.GeomAbs_Shape.GeomAbs_C2,0.001).Curve();
let edge = new oc.BRepBuilderAPI_MakeEdge_24(geomCurveHandle).Edge(); binding error |
Beta Was this translation helpful? Give feedback.
Answered by
donalffons
Jun 29, 2022
Replies: 1 comment 1 reply
-
Without having tried that myself, but maybe this works? let edge = new oc.BRepBuilderAPI_MakeEdge_24(new oc.Handle_Geom_Curve_2(geomCurveHandle.get())).Edge(); It's impossible to allow all implicit conversions implemented in OCCT from JavaScript, so sometimes you have to be very explicit in your JS code. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
oppakun
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Without having tried that myself, but maybe this works?
It's impossible to allow all implicit conversions implemented in OCCT from JavaScript, so sometimes you have to be very explicit in your JS code.