It took me around 13 hours to complete the operation. I have tried changing the parameter aSewingTool.Init(), but there is no effect.
On debugging I found out that most of the time is spent on the command aSewingTool.Perform().
Is there any way to make it slower or any other way to convert it.
Thanks.
Discussion
5 archived replies
Posts are displayed in their archived order.
01Commenter-1
What is your context that facetted STEP file generated from STL triangulation in this way have any use at all?
I wouldn't expect any BRep tool being able to do something useful with such kind of structure - considering that STL files coming from modern scanners can be of enormous size.
Anyway, concerning your specific question - sewing tool is not designed for such kind of input, and it might be indeed quite slow when used in this way.
You're better creating BRep sharing Vertices and Edges from the beginning, rather than emitting a tremendous number of unique shapes and relying on BRepBuilderAPI_Sewing for reconstructing sharing for you.
02Author
Could you give me an example code to convert STl into STEP file format. I am very new to this.
03Commenter-1
I still don't get for which applications you are trying to convert an STL mesh into STEP file.
Usually, surface needs to be reconstructed from triangulation (using SSP or GeomPlate),
so that you will have a BSpline surface instead of facets: https://www.opencascade.com/content/surfaces-scattered-points
But reconstructing surface is a complex task, involving user interaction (e.g. difficult to automate) and various algorithms.
04Author
I am trying to convert a point cloud into a STEP file. Since, there is no direct way to convert a point cloud into a step, I am converting the PCD into an STL and then trying to convert this stl into the final STEP file.
If you can advise me some other way to do it, it would be a great help.
Thanks
05Commenter-2
Hi Commenter-1
How to convert the Stl files to STEP and IGES format ,Can you please share me sample Code and how to import the STL files into the C++ program using OpensCad lib