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

[Feat] Support for Beveled Edges (Border Radius) on Extruded Polygons #9250

Open
giacomoaugello1 opened this issue Nov 14, 2024 · 0 comments
Labels

Comments

@giacomoaugello1
Copy link

Target Use Case

In many urban visualization and 3D mapping applications, rendering extruded polygons to represent buildings or other structures results in sharp, angular edges. A bevel or rounded edge (border radius) feature would allow these extruded polygons to have smoother, more realistic-looking corners, enhancing the visual appeal and providing more immersive and aesthetically pleasing 3D maps.

Proposal

Extend the PolygonLayer/SolidPolygonLayer to support an optional "bevel" property for extruded polygons. This property would allow users to specify a border radius for each polygon, creating a smooth transition at the edges and corners of the extrusion. All edges, except those touching the ground plane, should be rounded to ensure realistic top and vertical edges while maintaining sharp, well-defined base edges. Implementation would involve adjusting the extrusion vertices and faces to accommodate curved edges while maintaining performance. Ideally, users could set the bevel radius either as a fixed value for uniformity or as a variable (Accessor), allowing customization per building or polygon based on specific needs. This feature could be exposed as a new property (bevelRadius) that accepts numeric input and adjusts the level of edge rounding accordingly.

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

1 participant