Cortical surface file conversion

Viewing 3 reply threads
  • Author
    Posts
    • #2958
      grojas
      Participant

      Hi:

      I need to convert the cortical surface from DFS format to another mesh format (STL, OBJ for example)… How can I do it?

      Sincerely,

      Gonzalo Rojas Costa

    • #2959
      Anand Joshi
      Moderator

      You can just save the surface with .obj extension. It will be saved in obj format.
      Another alternative is to import it in matlab or python and then save it back.
      The readers for matlab and python for the dfs format are included in the source code. The file names for them are readdfs.m and dfsio.py.

    • #2961
      grojas
      Participant

      I saved it to obj format using BrainSuite, but I tried to open it using 3DSlicer, but it fails… Why?

      Sincerely,

      Gonzalo Rojas Costa

    • #2962
      David Shattuck
      Keymaster

      hi Gonzalo –

      The obj format used in BrainSuite is the MNI obj format, which was more widely used when we first developed BrainSuite.

      There is a way to get a Wavefront obj file from BrainSuite — if you save out a surface file using .wfo as the extension (I used wfo to represent WaveFront Obj) and then change the extension to .obj, you should be able to use it in programs that read Wavefront Obj files. I do this sometimes when I want to look at BrainSuite surfaces in Meshlab, and it works fine.

      You can also use a .stl extension, and the surface will be saved in STL format. Some of our users have used this to 3D print brain models made in BrainSuite.

      Just one note — both of these formats lose some of the information that BrainSuite uses in its different functions.

      Give it a try and let us know if it works for you.

      thanks,
      David Shattuck

Viewing 3 reply threads
  • You must be logged in to reply to this topic.