Skip to content

fixing STL files using opencascade #77

Answered by donalffons
hrgdavor asked this question in Q&A
Discussion options

You must be logged in to vote

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 with BRepBuilderAPI_Sewing was this:

  1. Construct a TopoDS_Compound and throw all the individual triangles (constructed as BRepBuilderAPI_MakeFace from BRepBuilderAPI_MakePolygon from BRepBuilderAPI_MakeVertex) into it.
  2. Create a BRepBuilderAPI_Sewing, set your desired tolerances and ::Load() the …

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@hrgdavor
Comment options

@donalffons
Comment options

Answer selected by hrgdavor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants