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

Provide a way to create a mesh with a maximum triangle size #13

Open
davenquinn opened this issue May 19, 2020 · 1 comment
Open

Provide a way to create a mesh with a maximum triangle size #13

davenquinn opened this issue May 19, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@davenquinn
Copy link

davenquinn/cesium-martini#2 reports that Martini-produced meshes covering a significant angular radius appear faceted due to the low number of triangles. This is a major problem at low zoom levels in Cesium.

Right now, I am simply falling back to a height field for low-zoom tiles, but this will not show any topography if, for instance, vertical exaggeration is enabled. It would be preferable if this could be handled in the initial mesh-generation step — would it be possible for Martini to support a "max-triangle-size" optional parameter in getMesh that would force continued iteration until the legs of all generated triangles were shorter?

I could accomplish this with another loop, but it seems overly complex.

@mourner mourner added the enhancement New feature or request label Aug 25, 2020
@mourner
Copy link
Member

mourner commented Aug 25, 2020

would it be possible for Martini to support a "max-triangle-size" optional parameter in getMesh

Sorry for a late response — I think this totally makes sense!

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

No branches or pull requests

2 participants