How to edit DisplayGeometry transform in Matlab
Posted: Mon Jun 26, 2017 1:32 am
Hi all,
I am relatively new to OpenSim Scripting in Matlab and am having a trouble figuring out how to edit the <transform> array - within the <GeometrySet> class shown at the bottom - via Matlab. I have tried getting and setting the values using the GeometrySet and/or DisplayGeometry classes but with no success. My most recent attempt was using the member function from the API
within the DisplayGeometry class but also wasn't successful. Any help or pointers on which methods/classes/syntax to use to do this would be much appreciated.
I am relatively new to OpenSim Scripting in Matlab and am having a trouble figuring out how to edit the <transform> array - within the <GeometrySet> class shown at the bottom - via Matlab. I have tried getting and setting the values using the GeometrySet and/or DisplayGeometry classes but with no success. My most recent attempt was using the member function from the API
Code: Select all
getRotationsAndTranslationsAsArray6 (double aArray[]) const
within the DisplayGeometry class but also wasn't successful. Any help or pointers on which methods/classes/syntax to use to do this would be much appreciated.
Code: Select all
<Body name="lumbar5">
<VisibleObject>
<GeometrySet>
<objects>
<DisplayGeometry>
<geometry_file>newlumbar5.vtp</geometry_file>
<color> 1 1 1</color>
<texture_file />
<transform> 0 0 0 0 0 0</transform>
<scale_factors> 1 1 1</scale_factors>
<display_preference>4</display_preference>
<opacity>1</opacity>
</DisplayGeometry>
</objects>
<groups />
</GeometrySet>