Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating pyramids #19

Open
aghasemi opened this issue Dec 1, 2015 · 1 comment
Open

Creating pyramids #19

aghasemi opened this issue Dec 1, 2015 · 1 comment
Labels

Comments

@aghasemi
Copy link

aghasemi commented Dec 1, 2015

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

@madhephaestus
Copy link
Contributor

madhephaestus commented May 18, 2016

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

@miho miho added the question label Aug 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants