vtp surface files
Posted: Fri Oct 11, 2024 3:03 am
Hi,
I am creating personalised models. Since the last OpenSim edition (4.5) I cannot load surfaces for bodies that are not in a fixed vtp format. I receive the following errors:
"Visualizer couldn't open r_fibula.vtp because: SimTK Exception thrown at PolygonalMesh.cpp:411:
..
SimTK Exception thrown at PolygonalMesh.cpp:340:
...
Error detected by Simbody method Xml::Element::getValue(): Element <DataArray> is not a value element.
(Required condition 'isValueElement()' was not met.)"
or
"Visualizer couldn't open l_tibia.vtp because: SimTK Exception thrown at PolygonalMesh.cpp:411:
...
SimTK Exception thrown at Xml.cpp:723:
...
Error detected by Simbody method PolygonalMesh::loadVtpFile(): Only format="ascii" is supported for .vtp file DataArray elements, got format="appended" for Points DataArray.
(Required condition 'pointData.getRequiredAttributeValue("format") == "ascii"' was not met.)"
I have meshes that were converted from an .stl to .vtp with the help of 3DSlicer (in GUI) or pyVista (in Python).
How can I get around this problem?
Thank you in advance
I am creating personalised models. Since the last OpenSim edition (4.5) I cannot load surfaces for bodies that are not in a fixed vtp format. I receive the following errors:
"Visualizer couldn't open r_fibula.vtp because: SimTK Exception thrown at PolygonalMesh.cpp:411:
..
SimTK Exception thrown at PolygonalMesh.cpp:340:
...
Error detected by Simbody method Xml::Element::getValue(): Element <DataArray> is not a value element.
(Required condition 'isValueElement()' was not met.)"
or
"Visualizer couldn't open l_tibia.vtp because: SimTK Exception thrown at PolygonalMesh.cpp:411:
...
SimTK Exception thrown at Xml.cpp:723:
...
Error detected by Simbody method PolygonalMesh::loadVtpFile(): Only format="ascii" is supported for .vtp file DataArray elements, got format="appended" for Points DataArray.
(Required condition 'pointData.getRequiredAttributeValue("format") == "ascii"' was not met.)"
I have meshes that were converted from an .stl to .vtp with the help of 3DSlicer (in GUI) or pyVista (in Python).
How can I get around this problem?
Thank you in advance