.mesh files format

Questions about BrainVisa usage and installation

Moderators: denghien, riviere

Post Reply
NicolasW
Posts: 29
Joined: Fri Mar 05, 2004 11:45 am
Location: INRIA Sophia Antipolis, France
Contact:

.mesh files format

Post by NicolasW »

Hi,
is it possible to have the specifications about the binary .mesh format ?
It would be usefull to be able to build .mesh files outside from brainvisa, assuming it is better than .tri format (for instance allowing to keep different versions of the surface during an inflating...).
Thanks,
Nicolas.
User avatar
Jean-Francois Mangin
Posts: 337
Joined: Mon Mar 01, 2004 10:24 am
Location: Neurospin, CEA, France
Contact:

Post by Jean-Francois Mangin »

Maybe the easiest way is to reverse engineer it from AimsIO library, or use directly the code there?
You can also used the ASCII version of the mesh format described in the help pages of brainVISA web site.
Guillaume F
Posts: 1
Joined: Tue Mar 02, 2004 3:04 pm

Post by Guillaume F »

Hello,

you should find some Matlab code to read/write .mesh files (ascii and binary) in <SHFJ_pack>/brainvisa/matlab/mesh/

You can find some format documentation there:
http://brainvisa.info/doc/formats/mesh.pdf

Guillaume.
User avatar
Yann Cointepas
Posts: 316
Joined: Tue Jan 20, 2004 2:56 pm
Location: Neurospin, Saint Aubin, France
Contact:

Post by Yann Cointepas »

The link given by Guillaume describe both ascii and binary mesh format. We also have an archive file with small example meshes (both in ascii and binary) let me know if you want it. If you want to convert a mesh from ascii to binary (or the contrary) you can use AimsFileConvert command.
NicolasW
Posts: 29
Joined: Fri Mar 05, 2004 11:45 am
Location: INRIA Sophia Antipolis, France
Contact:

Post by NicolasW »

Thank you, Guillaume's links are exactly what I was looking for (my question was of course to avoid a painfull reverse ingeneering from Aims... ;-) ).
Thank you Yann, I'll keep in mind your offer.

Nicolas.
Post Reply