Replies: 1 comment 1 reply
-
Hello, I could make it work with replicad! (you can click on the source link at the bottom to see the source). I do not use |
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
Uh oh!
There was an error while loading. Please reload this page.
-
I am using opencascade.js as a part of CascadeStudio. I ran into the following problem that I also posted on the CascadeStudio github page. But as I am using direct calls to opencascade.js, perhaps viewers of this repository can help:
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