Replies: 1 comment 1 reply
-
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am having difficulty creating a solid out of a shell. I wanted to use this functionality to create a socalled icosphere or geodesic dome. I used some code that I found on the internet to create these shapes. To create an icosphere with a certain subdivision level you have to start with an icosahedron. I created all faces using the standard Polygon() function of CascadeStudio. Then I sewed all faces to a shell. I confirmed that the shell is closed. Then I tried to create a solid out of the closed shell using oc.BRepBuilderAPI_MakeSolid(). After this I checked that indeed a solid was created.
The following scene shows my result. I get a shape that I can scale and translate. The scene contains three shapes, namely a box, a sphere and the icosphere. All three shapes are identified as solids (ShapeType()=2). A boolean operation between the box and the sphere works, but if you uncomment the last line in my code, containing a boolean of the icosphere with the resulting shape, the icosphere disappears.
What am I doing wrong?
Beta Was this translation helpful? Give feedback.
All reactions