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

Hemisphere, Cylinder, and Cone wedge shapes #3

Open
desandro opened this issue May 26, 2019 · 5 comments
Open

Hemisphere, Cylinder, and Cone wedge shapes #3

desandro opened this issue May 26, 2019 · 5 comments
Labels
feature request New feature or request

Comments

@desandro
Copy link
Member

Currently composite shapes like Hemisphere, Cylinder, and Cone can only be rendered with fully circular bases. There is no easy way to render a quarter-sphere or half-cone.

One solution may be to add a quarters option, similar to Ellipse. For example, quarters: 2 would render a half-cone.

Add a 👍 reaction to this issue if you would like to see this feature added. Do not add +1 comments — They will be deleted.

@desandro desandro added the feature request New feature or request label May 26, 2019
@NEO97online
Copy link

This would be a great feature to have. In the mean time, is there any workaround to make a half-hemisphere? (A quartersphere!)

@theohonohan
Copy link

Would it be more flexible to offer wedges of a certain angle, say multiples of 2*pi radians? So a full circle would be 1, a quarter circle would be 0.25, etc.

@csalmeida
Copy link

That sounds great! Does anyone know if there's a way of changing how tall an Hemisphere is? Maybe I'm missing something but changing the width or height only makes the base larger (can be seen better if a backface color is set).

@codecodestop
Copy link

codecodestop commented Dec 9, 2023

I realize the most recent question is years old now at the time of my reply, but I have a solution, and since others may have the same question in future, I decided it would not be 100% obnoxious to answer ~5 years later. So I couldn’t resist. :)

Since a hemisphere is nothing more than half a sphere, and a sphere has no sense of height, you might achieve something closer to what you have in mind—assuming that I’ve understood your question, which may be a risky assumption—by using a cylinder. Using the ZDog concept of using extreme ‘stroke’ values to add volume, you could make it taller by just extending the path which defines the cylinder’s dimensions.

@theohonohan
Copy link

theohonohan commented Dec 9, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Development

No branches or pull requests

5 participants