Suggestion for AimsMeshes2Graph

AIMS library and commands usage

Moderators: denghien, riviere

Post Reply
Manik
Posts: 99
Joined: Fri Mar 05, 2004 1:00 pm
Location: INSERM U836, Grenoble

Suggestion for AimsMeshes2Graph

Post by Manik »

Hi all,

I juste tried to create a graph from a set of meshes using AimsMeshes2Graph, and I was surprised to notice that all graph nodes created are named "unknown".
Wouldn't it be a good idea to name a node from the mesh file used to create it ?
The node created for the file "myMesh.mesh" would have its name property set to "myMesh".
Maybe it is not a good default behaviour, so could it be a command line option of AimsMeshes2Graph ?

The only change needed is to replace one line in the file aimsdata-main/AimsMeshes2Graph/src/meshes2graph.cc

v->setAttribute( "name", *im );

instead of

v->setAttribute( "name", string( "unknown" ) );

Thanks in advance,
Manik Bhattacharjee
INSERM U836
User avatar
Yann Cointepas
Posts: 316
Joined: Tue Jan 20, 2004 2:56 pm
Location: Neurospin, Saint Aubin, France
Contact:

Post by Yann Cointepas »

Hi Manik,

I think your idea of a command line option is good because it is backward-compatible. We will modify the code in a near futur.

Thanks.

Yann
Post Reply