JCSG icon indicating copy to clipboard operation
JCSG copied to clipboard

Creating pyramids

Open aghasemi opened this issue 8 years ago • 1 comments

Hi, Do you have any examples of creating pyramids and intersecting them with each other? Thanks Best

aghasemi avatar Dec 01 '15 15:12 aghasemi

the simplest way would be to use the Cylinder primitive, set the top radius to 0, and the bottom to your pyramid side length, then set the number of faces to 3 or 4 depending on what sort of pyramid you want.

CSG pyramid = new Cylinder( 20, // Radius at the bottom 0.001, // Radius at the top 40, // Height (int)4 //resolution ).toCSG()//convert to CSG to display

madhephaestus avatar May 18 '16 03:05 madhephaestus