Geometry files *.vtp not found in Matlab

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Martin Mössner
Posts: 17
Joined: Thu Jan 17, 2019 8:40 am

Geometry files *.vtp not found in Matlab

Post by Martin Mössner » Tue May 21, 2019 7:54 am

My Matlab program complains about not finding the geometry files *.vtp.
Is there a possibility to set the geometry path either by an environment variable in windows or by
a command in Matlab?
Maybe I have to edit OpenSim model file and use full pathnames for the vtp-files.

Thank you

Tags:

User avatar
Martin Mössner
Posts: 17
Joined: Thu Jan 17, 2019 8:40 am

Re: Geometry files *.vtp not found in Matlab

Post by Martin Mössner » Tue May 21, 2019 8:30 am

The thread "Interfacing matlab with opensim" brought me the solution.
In my case following code works:

Code: Select all

   import org.opensim.modeling.*
   p='c:\pgm\OpenSim40\Geometry';
   ModelVisualizer.addDirToGeometrySearchPaths(p);
   model=Model('myopensimmodel.osim');

User avatar
Raima Sen
Posts: 1
Joined: Fri Jan 08, 2021 10:01 pm

Re: Geometry files *.vtp not found in Matlab

Post by Raima Sen » Wed Jan 27, 2021 8:57 pm

Hello Martin,
I too am unable to view the .vtp files on MATLAB. Could you link the thread that you have mentioned about so that I could refer it?
Thanks,
Raima Sen

POST REPLY