Page 1 of 1

Geometry files *.vtp not found in Matlab

Posted: Tue May 21, 2019 7:54 am
by mmoessner
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

Re: Geometry files *.vtp not found in Matlab

Posted: Tue May 21, 2019 8:30 am
by mmoessner
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');

Re: Geometry files *.vtp not found in Matlab

Posted: Wed Jan 27, 2021 8:57 pm
by raimasen
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