> explode -wire
> set-as-part "WIRE 1"
> misc-convert-curves
Would really appreciate if this usage information makes it here: docsYou should have a wire as an active part to run this command. -this
> load-part C:/.../b-spline.stp
> explode -edge
> make-wire "WIRE 1" "EDGE 1"
> set-as-part "WIRE 1"
> misc-convert-curves
ERROR: In W:\VTK\VTK-8.2.0\Filters\General\vtkTransformPolyDataFilter.cxx, line 85
vtkTransformPolyDataFilter (000001F02C1329E0): No input data
ERROR: In W:\VTK\VTK-8.2.0\Filters\General\vtkTransformPolyDataFilter.cxx, line 85
vtkTransformPolyDataFilter (000001F02C134B00): No input data
ERROR: In W:\VTK\VTK-8.2.0\Filters\General\vtkTransformPolyDataFilter.cxx, line 85
vtkTransformPolyDataFilter (000001F02C1329E0): No input data
ERROR: In W:\VTK\VTK-8.2.0\Filters\General\vtkTransformPolyDataFilter.cxx, line 85
vtkTransformPolyDataFilter (000001F02C134B00): No input data
ERROR: In W:\VTK\VTK-8.2.0\Filters\General\vtkTransformPolyDataFilter.cxx, line 85
vtkTransformPolyDataFilter (000001F02C1329E0): No input data
ERROR: In W:\VTK\VTK-8.2.0\Filters\General\vtkTransformPolyDataFilter.cxx, line 85
vtkTransformPolyDataFilter (000001F02C134B00): No input data
Yeah, looking at your STEP file, I realized that it does not contain any wires, only a single edge. Therefore, for the conversion command to work, you need to make a wire. It looks pretty inconvenient, but in most of our cases, we are dealing with DXF drawings where all edges are packed into wires.Also i was able to successfully apply your instructions to my use case where I:
The STEP file shouldn't really be considered a "vaild" file as i did a dirty export of my current shape after doing:Yeah, looking at your STEP file, I realized that it does not contain any wires, only a single edge. Therefore, for the conversion command to work, you need to make a wire. It looks pretty inconvenient, but in most of our cases, we are dealing with DXF drawings where all edges are packed into wires.
May I ask you what's your use case? Are you converting for CAM?
Handle(Geom_BSplineCurve) curve =
new Geom_BSplineCurve(pw.poles, pw.weights, kn.knots, kn.mults, degree,
Standard_False, isRational);
TopoDS_Shape res = BRepBuilderAPI_MakeEdge(curve);