Tried to cut it with a cube to assure it is solid. Seems fine:
STL to solid - large filesize
Forum rules
and Helpful information
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help
Also, be nice to others! Read the FreeCAD code of conduct!
Also, be nice to others! Read the FreeCAD code of conduct!
Re: STL to solid - large filesize
FOSS CAD model inspection utility and prototyping framework: http://analysissitus.org
Re: STL to solid - large filesize
Brilliant, Quaoar. Thanks!
Out of curiousity (maybe for others too): how did you do this? Small description maybe?
Out of curiousity (maybe for others too): how did you do this? Small description maybe?
Re: STL to solid - large filesize
A part of my PhD research is to develop open-source software for reverse engineering CAD models. I am looking now how to reconstruct freeform (sculptural) geometries from STL meshes. Here is how it generally works:
- Prepare triangulation (decimate, fill gaps). For that, VTK is a good fit.
- Retopologize it with quads. For now, I tried Instant Meshes, but it has severe limitations: the grid it produces is not adaptive (it gives uniform size distribution regardless of surface curvature), and feature lines are not preserved (this has a negative impact on the quality of reconstruction). Retopology consists in constructing a dual quad mesh (the job of Instant Meshes), then projecting the edges and vertices back on the original triangulation.
- The projected edges are approximated with B-curves, then quad cells are fitted with Coons patches converted to NURBS. Here two extensions are possible: refine the surfaces by least-squares + smoothing approximation to better fit the underlying mesh nodes; join Coons surfaces smoothly by making the corresponding B-surfaces compatible along their natural boundaries (knot insertion and poles alignment are done) to achieve G1 continuity.
- Finally, the deviation between the reconstructed curved model and the initial mesh can be checked by sampling the curved part and projecting each sample point to the initial triangulation.
Here is the process (cut to speed up):
The corresponding code will be available in a dedicated software package once I polish a few things (the link is below in my signature).
FOSS CAD model inspection utility and prototyping framework: http://analysissitus.org
Re: STL to solid - large filesize
Can you give a step-by-step of how you did this ?Quaoar wrote: ↑Fri Sep 13, 2019 6:07 pm Out of curiosity, I laid it out with Coons patches after twice decimating the input mesh with VTK quadric decimation tool. To retopologize the model Instant Meshes is an awesome utility. Still, there is a lack of G1 continuity on edges, and this should somehow be worked out. Also, a couple of gaps is to be filled.
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs