Exporting .stl to .vtp into Opensim

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Rodrigo Mateus
Posts: 57
Joined: Thu Feb 22, 2018 3:07 am

Exporting .stl to .vtp into Opensim

Post by Rodrigo Mateus » Mon May 04, 2020 12:40 pm

Hi there,

I am working on a sheep msk model if both hindlimbs where I am trying to mirror the .stl files of one hindlimb limb to obtain the other. The issue I am encountering is that I cannot import the mirrored geometry file into OpenSim 4.0. I attach here the mirrored geometry file, already exported to .vtp, that I cannot import to Opensim.

I tried using Meshlab and 3DSlicer to perform the mirroring and conversion, yet unsuccessfully. Then I tried using Vtk, but the resulting file also does not show in Opensim.

Does anyone have some advice on this matter?

Thank you in advance!

Stay safe.

Rodrigo
mirror.zip
(171.82 KiB) Downloaded 8 times

Tags:

User avatar
Bryce Killen
Posts: 104
Joined: Mon Nov 24, 2014 7:12 pm

Re: Exporting .stl to .vtp into Opensim

Post by Bryce Killen » Tue May 05, 2020 5:51 am

Hi Rodrigo,

OpenSim 4.0 allows the use of STL files are display geometries in a model, so the conversion to .vtp is not strictly required.

The common problems with display geometries from my experiences are if the STL is binary/ascii , the geometry is stored in a location not in the OpenSim path, also be careful with unit conversions if youve had to do so, I have fallen in this trap before.

I have had success using meshlab - throuhg meshlabxml is python for mirroring and exporting the geometries.

Hope that helps

Bryce

POST REPLY