Fluid.datasetplot~ abstraction for 2D/3D visualization

Hey guys. Had a nice chat with @rodrigo.constanzo the other day. I think my raycasting muscles are getting stronger. :relaxed:
This version gets the point closest to where you click the mouse (in the jit.pworld) by casting a ray to (through) where you click, then getting the point, where the angle between the vector from the cam (kinda) to the point has the narrowest angle to the ray. Arguably not the most fail-proof method, but it seems to do the job:

datasetplot-raycast

The good thing about it is that the camera can be anywhere and have any orientation, it will (supposedly) work the same way.

5D plot_mod.zip (136.8 KB)

2 Likes