Offsetting a shell to create a solid #1737
Replies: 2 comments 1 reply
-
Hey @jmwright pinging you for some advice on offsetting shells. Are there any rules as to when a shell offset will fail? Any pointers will help me in debugging or changing my approach with this shell I'm working with. |
Beta Was this translation helpful? Give feedback.
-
@pruj-speed It's hard to say, but if the shell was valid before the offset, it looks like a B-rep geometry glitch to me. You could also try displaying the offset shell in CQ-editor, and exporting it to STEP and/or STL to see if the glitch is persistent and not just a cadquery.vis.show VTK thing. Other than that, you could wait until this PR is merged and then try the offset again with OCCT/OCP 7.8.1. You may need to use an Anaconda environment for your test since the release of the 7.8.1 wheel will probably lag the conda pacakge a bit. You will be on the bleeding edge of CadQuery/OCP/OCCT, but I do not know if it will fix your problem. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I've been using cadquery to generate 3D geometry from simple 2D shapes. In my pipeline I have been finding the intersection between two solid objects and then creating a shell out of the faces that are intersecting above a certain Z-height. Basically here is how my shell looks like. Its composed of 112 faces and is of type cadquery.occ_impl.shapes.Shell.
View 1
View 2
I'm uploading the shell BREP here.
offset_failing_shell.zip
I'm using the offset function in shapes to convert this into a solid.
However, the resulting solid looks funky.
My main goal is to mimick a deposition process where all exposed surfaces get thickened by a certain amount. Any advice on if this is the right approach to create such a thickened solid out of several faces? It seems to work fine for most cases. But not for this specific geometry.
Beta Was this translation helpful? Give feedback.
All reactions