Closest point/distance to object

Hi there, I’m exploring options for calculating distances within Cesium.

The use case ideally starts with Snapping to closest Point in a Point Cloud from this 2019 question.

And then working out the closest point along a polyline, or on a 3D volume surface.

Is this a plausible workflow/tool to create in cesium?

Thanks!

Hello there,

Snapping in 3D is certainly not a trivial feature. It usually involves some sort of 3D spatial data query to figure out what the closest point is- Whether that’s a point on a polyline, a vertex in a mesh, or a point on a surface of a volume. The implementation will likely depend on your use case and what exactly you’re snapping to. There are some research papers on snapping out there which could point you in the right direction, such as this one.

If you do pursue a workflow or tool like this, we’d be interested in hearing how it goes!

1 Like