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

Extrusion is always in Z Direction #709

Open
jruebsam opened this issue Aug 9, 2022 · 2 comments
Open

Extrusion is always in Z Direction #709

jruebsam opened this issue Aug 9, 2022 · 2 comments
Assignees

Comments

@jruebsam
Copy link

jruebsam commented Aug 9, 2022

I am visualizing bounding boxes for an object list using the polygon primitives.
When testing the visualization of single objects I realized that the setting extrusion=True will always only work towards the Z direction. In this example picture I pitched the object about -1.

image|width=400px

The behavior which would be desired would be to extrude the bounding box perpendicular to the defined polygon,
is this somehow possible ? Implementation wise this could be done using the cross product of the polygon points,
but im not sure where this needs to be implemented.

Also whats interesting here is that the lower side of the bounding box is not drawn.
Thank you for any feedback.

@jruebsam
Copy link
Author

I also tried defining every side of the bounding box using a single polygon primitives (so 6 in total ) without the extrusion.
Its Interesting that in this case the sides of the bounding are not drawn at all.
This only happens when the polygons are parallel to the Z-Direction and sounds like a bug to me.

@jruebsam jruebsam changed the title Extrusion is always into Z direction Extrusion is always in Z Direction Aug 16, 2022
@twojtasz twojtasz self-assigned this Oct 5, 2022
@twojtasz
Copy link
Contributor

twojtasz commented Oct 5, 2022

We have used the "define every face" before and it worked. I'll have to try this in the playground and verify why it might be failing.

The Z direction issue for extrusion is a limitation, as these deck.gl library influenced early primitives and it has a geospatial bias (ie map like ground plane with Z up) and not using the normal of the polygon as the direction. It probably should use the normal, but we would need to update things to get that (ie custom deck.gl layer to use polygon normal not Z-axis).

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