HolyLab / FlyThroughPaths.jl

Create "fly-throughs" in 3d visualization
MIT License
11 stars 1 forks source link

`ZoomToFit` path change #7

Open asinghvi17 opened 3 months ago

asinghvi17 commented 3 months ago

It would be nice to have a ZoomToFit path change, that could binary search to fit some provided boundingbox. This would require that we implement viewing frustum calculations in this package though, which we may or may not want.

ZoomToFit(time, path, boundingbox) = ZoomToFit(time, last_state(path), boundingbox)

where we could pick up the current camera position from the path, and get the boundingbox either via user input or from Makie.boundingbox(plot). It would have to be a 3D rect so maybe we allow ((xmin, ymin, zmin), (xmax, ymax, zmax)) to be the canonical accepted form.