Lingkan
CAD practitioner
Hi,
I'm trying to build a Geom_BSplineCurve from given NURBS Curve parameters, which look like the following:
When passing these parameters to the Geom_BSplineCurve API like:
I get the following:
where the inner contour (yellow) is the created Geom_BSplineCurve, and the outer contour (black) is the desired output (Geom_BSplineCurve should look like this)
Any ideas on what the reason for this behavior is are much appreciated!
I'm trying to build a Geom_BSplineCurve from given NURBS Curve parameters, which look like the following:
When passing these parameters to the Geom_BSplineCurve API like:
C++:
Handle(Geom_BSplineCurve) curve =
new Geom_BSplineCurve(poles, weights, knots, mults, degree,
Standard_False, isRational);
TopoDS_Edge edge = BRepBuilderAPI_MakeEdge(curve);
if (curve->IsClosed()) {
return BRepBuilderAPI_MakeWire(edge);
}
return edge;
I get the following:
where the inner contour (yellow) is the created Geom_BSplineCurve, and the outer contour (black) is the desired output (Geom_BSplineCurve should look like this)
Any ideas on what the reason for this behavior is are much appreciated!