I have to admit that, unfortunately, I don’t quite understand exactly what you want. Is it:
Do you have a component or an enclosed space, and want to optimize the component so that it fits into the design space and is as light as possible? Then you need a shape or topological optimization method. The on referenced by stoli looks promising.
Do you have a component that is mostly properly dimensioned but has local stress peaks that you want to reduce? Take a look at the CAO method in: C. Mattheck, Design in Nature
You’ve performed an optimization and want to convert the result (which is probably closest to an STL file) back into a CAD model? That’s probably the most difficult challenge. I’m not aware of any way to automate this process. It’s the same issue as converting 3D scans into CAD parts. It probably won’t be possible to avoid manual reverse engineering.
Matthek triangle method is a potential smooth algorithm to extract new good surfaces after topology optimization in beso or other tools.
Also levien splines can be attract to the outer nodes by beso result model.
At the end of such a module you can make a new solid by surfaces and then mesh this, calculate this and perhaps you go to end or again in beso,
second: It is possible years or decades to implement both splines in CGX or other calculix postprozessors to produce good models with good bionic curves instead of edges or circle curves.
so often you do not need BESO or other optimizers with a good first model.
Third: You are free to have a more genius idea to make a module in beso or calculix or anywhere to a very good or best cad-model after beso result.
I actually wrote a script a long time ago that generates smooth CAD surfaces (NURBS) from STL files. See the screenshot: on the left, the Blender Monkey “Suzanne” in Blender as an STL file, and on the right, in a CAD program as a NURBS surface model.
Unfortunately, I never got the script to the point where I could release it to the public. It probably wouldn’t work with the current version of Blender either. It wasn’t very efficient, and could only convert a few hundred polygons; otherwise, the conversion took several hours. Plus, the mesh had to be of a certain quality (as the saying goes: garbage in, garbage out).
If your goal is simply to (re)mesh an STL file generated by an optimization simulation in order to do another simulation with it, you might also want to take a look at the GMSH createTopology feature:
@Nobody-86: the result on the "monkey Suzanne picture is very impressive; I’m wondering if the work is based on the litterature (if so, do you accept to share the sources?), or on your own developements?
Thank you very much for the compliment. I didn’t use any specific literature, just my own ideas and the manuals for Blender and gmsh (which I use as a background process for the conversion).