Dear Andrei,
Do you need any specific feature from VRML? If not, and you simply
need to import the mesh into Blender, you can do this:
1) Convert the mesh to ASCII format:
mris_convert somesurface somesurface.asc
2) Save the attached script somewhere, make it executable with
chmod, then use it to convert to Wavefront format, like this:
./srf2obj somesurface.asc > somesurface.obj
The script uses gawk (GNU awk), so make sure you have it on it's
usual location, /usr/bin/gawk on most Linuxes. If different, e.g. on
Mac with MacPorts or Fink, you may edit the first line to point the
script to the correct location. Not sure if it will work with other
awk implementations. Also, note that the output goes to stdout, so
you really need the ">", as in the example above.
Hope this helps!
All the best,
Anderson
On 08/10/2011 11:13 PM, andrei sherstyuk wrote:
Greetings, I have problems exporting the surface data
in VRML format. When I load the resulting .wrl file into Blender
(a 3D modeling tool), the resulting surface is full of holes
(bad/missing polygons) and connectivity of vertices is all wrong
-- I see edges where they are not supposed to be. Is is a common
problem with VRML export? I used "write_vrml 1" command, tksurfer
version 5.
Any help will be greatly appreciated.
Cheers,
Andrei
_______________________________________________
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.