fixing STL files using opencascade #77
-
I have STLs that report non manifold vertices or get broken in prusa slicer. I have noticed that there is shape healing, https://dev.opencascade.org/doc/overview/html/occt_user_guides__shape_healing.html ... and I am wondering if I could use opencascade to try to fix some of them. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hey! I have used
The shape healing approach seems to offer much more fine-grained control than my simplistic attempt. |
Beta Was this translation helpful? Give feedback.
Hey!
I personally haven't used any of OpenCascade's shape healing functions, but I would definitely be interested to hear about your experiences, in case you're giving it a shot.
I have used
BRepBuilderAPI_Sewing
in OpenCascade.js before, for loading tessellated 3D geometries and attempting to convert them into solids. That approach did seem to work ok, at least with my limited testing. My approach withBRepBuilderAPI_Sewing
was this:TopoDS_Compound
and throw all the individual triangles (constructed asBRepBuilderAPI_MakeFace
fromBRepBuilderAPI_MakePolygon
fromBRepBuilderAPI_MakeVertex
) into it.BRepBuilderAPI_Sewing
, set your desired tolerances and::Load()
the …