VirtualBrainLab / Pinpoint

Multi-probe trajectory planning in an intuitive 3D environment
https://data.virtualbrainlab.org/Pinpoint/
GNU General Public License v3.0
40 stars 3 forks source link

Add custom Rig to render #652

Open SpencerBowles opened 4 months ago

SpencerBowles commented 4 months ago

Hello, our lab is trying to use Pinpoint to plan some multi-probe Neuropixel experiments. We are using custom 3d printed headplates to create insertion points for the probes. We would like to be able to import the model of our headplate into Pinpoint in order to determine where we need our holes to be in the final prints.

Is it possible to add custom items to the Rig section of Pinpoint? If so, what formatting is needed for the files to be imported smoothly?

Thanks!

dbirman commented 4 months ago

Hey Spencer, thanks for checking on this. I've had it on my to-do list for a while to make this easier and it is partially functional, but I keep delaying it to work on other things. I'll bump it up the to-do list and try to get it done later this month!

I am planning two ways of doing this:

Option one is that you will (soon) be able to make a pull request against another repository called "pinpoint-rig-models" or something, and any files in that folder will get automatically added to the next build of Pinpoint. These files will then be available to all users of Pinpoint, and because they are built-in to the program won't require any extra steps to access. Option two will be for files you want to keep private, you will be able to upload 3D models to your current instance of Pinpoint through a Python API, specifying the position of the model's origin coordinate and any translation/rotation.

For now -- if you have a .obj 3D model file you want added you can just send it to me by email (dbirman@uw.edu) or drop it here and I can add it in. Please include a square image to use as the example image and let me know if the origin of the object should be positioned at a particular location. The current rig objects are placed relative to bregma (i.e. the (0,0,0) origin coordinate in the 3D model is intended to be at Bregma).

SpencerBowles commented 4 months ago

Ok awesome! I will send you the files. What do you mean by a square image?