mapbox / martini

A JavaScript library for real-time RTIN terrain mesh generation
https://observablehq.com/@mourner/martin-real-time-rtin-terrain-mesh
ISC License
613 stars 41 forks source link

Can we add support for interaction? #3

Closed EverWinter23 closed 5 years ago

EverWinter23 commented 5 years ago

Elevation value of a point on hover, elevation profile of a line.

How would one go about it?-- if it can be achieved. Could restricting the model to 2d while interacting help, or can we achieve the same in 3d.

Thanks. Martini is :fire: :fire:

Edit 1: CDN support would be really appreciated for quick prototyping.

Edit 2: terrain has to be calculated by the user rather than the library, but certain front-end frameworks don't give you access to the DOM-- like Vue

mourner commented 5 years ago

Interaction is out of scope for this library. It's focused strictly on an algorithm for generating a mesh.