3D Brain Models

From CCN Wiki
Jump to navigation Jump to search

This page is all about turning FreeSurfer surface files into 3D printable models. Inspiration comes from here

Free Surfer

Create a WaveFront OBJ File

Use mris_convert to convert from FreeSurfer binary to ASCII:

mris_convert lh.pial lh.pial.asc

Repeat for both hemispheres

Rename Files

mv lh.pial.asc lh.pial.srf

Repeat for both hemispheres

Use srf2obj to create a Blender-Compatible File

The srf2obj script requires the installation of gawk if it's not already installed. The script can be found in the scripts/Shell folder on ubfs, and should be in your path (copy it to your ~/bin directory if you don't already have it).

srf2obj filename

Blender

After creating the pial layer hemisphere's in FreeSurfer, you're next going to want to import one file at a time into Blender. Once the file has been imported there should be a gray brain mesh on the screen in Blender. To make working with the mesh easier you can change it's size by going to the bottom left-hand side of the page and change the X, Y, and Z coordinates to 1.0. Once they are all at 1.0 the brain will be much smaller and fit nicely within the provided grid. You can use the rotate and transform tools on the left-hand side of the screen to move and change the direction of the brain. To the best of your ability, try to get the brain level on all planes in a way similar to it's real life orientation. After the first hemisphere is in place do the exact same process with the other hemisphere. Once both halves are of the same size and orientation, try to align them next to each other as best as possible and join the halves into one object by right clicking on one half, then hold shift down and right click on the other. After both hemispheres are selected you just have to press CTRL + J, and the two halves should become one mesh.

3D Printing

The 3D printers at UB use a multitude of files, but all of the printers will accept .stl files (which Blender will let you directly export any file as that). Before printing you will need to fix your STL files using the Netfabb online service (requires a free autodesk account) https://service.netfabb.com/login.php