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

extrude method to extrude geometries in the Z direction #136

Open
asinghvi17 opened this issue May 6, 2024 · 2 comments
Open

extrude method to extrude geometries in the Z direction #136

asinghvi17 opened this issue May 6, 2024 · 2 comments

Comments

@asinghvi17
Copy link
Member

asinghvi17 commented May 6, 2024

Ideally this would work for points, linestrings, and polygons, but right now we can restrict it to only working on polygons.

The idea would be to take a polygon, mesh it, and "extrude" it in the z-axis to create a 3d mesh. We would also need a triangulation interface first, but that seems fairly easy to do, and there are plenty of packages which would do it.

This would make creating plots like the one below easier (yes it is bad practice, but it's cool)
Screenshot 2024-05-06 at 2 01 01 PM
Is there any reason we should not do this?

(In all seriousness, this could be useful for 3D hexbin plots as well)

@rafaqz
Copy link
Member

rafaqz commented May 6, 2024

Does it need a mesh? Not just 3d polygons?

@asinghvi17
Copy link
Member Author

Yeah, the sides have to be meshes and triangulation happens in ℝ² unless you do it yourself

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants