-
Hi everyone, has anyone found a way to detect and remove tiny bodies from a larger shape? If anyone found a way or has an idea on how to do this, please let me know! Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 14 replies
-
Are these edges and pieces inside another shape? I think that opencascade.js has an additional function to remove internal edges. The application CascadeStudio, which is also based on opencascade.js, has a function called RemoveInternalEdges(shape, keepShape?). If you look into the code of OpenCascade you can probably derive which OpenCascade function is used to perform this functionality. As far as I know this function is not exposed in Replicad as normally these remnants should be removed by the modelling function automatically. |
Beta Was this translation helpful? Give feedback.
My guess is that you do a bunch of boolean operations that leave more than one shape, right?
Then you might try to iterate over all the shapes of type body within your compound shape and remove the one you don't want. There are no exposed APIs to list of the "solids" of a generic shape - you could hack by getting inspiration from here