(3-D) Get datapoints in currently zoomed view (3-D)

Hi ,
Is there any way I can get data points info when I zoom into 3-D Scatter plots .
Like when I zoom in , if I can get handle of some object which can help know how many data points are present in current view/scene .

Relayout gives me handle of camera object , I tried altering the return (in library file) and sent the whole object instead of just ‘camera’ , but no joy .

Thanks .

Interesting problem. Thanks for writing for in!

I can’t think of an easy way to do this unfortunately. The “best” I can think of at the moment is something similar to

where we use

to project x/y/z triplets in data space to pixel space.

Once you have that the pixel-space coordinates, you can determine if a pt is visible by comparing them to your graph div bounding box.

Thanks for the suggestion , can you please help me simplify this ?

  1. So the project (camera,v) will return me an array , how can I use that array to determine data-points against graph div bounding box . Refer below screenshot :

Capture

@etienne - Can you please suggest on the above ?

Can someone please help me resolve the use case ?