Model Visualization using opensim4.0 C++ API
- veerendra v
- Posts: 6
- Joined: Wed May 16, 2018 5:03 am
Model Visualization using opensim4.0 C++ API
1. Can't add .vtp files using addDisplayGeometry() function. What is the equivalent of addDisplayGeometry(){which is in 3.x} in opensim4.0?
2. What is the general procedure to visualize opensim model geometry(.osim and .vtp) using opensim4.0 C++ API?
2. What is the general procedure to visualize opensim model geometry(.osim and .vtp) using opensim4.0 C++ API?
- Christopher Dembia
- Posts: 506
- Joined: Fri Oct 12, 2012 4:09 pm
Re: Model Visualization using opensim4.0 C++ API
Code: Select all
Body.attachGeometry(Mesh("file.vtp"));
- veerendra v
- Posts: 6
- Joined: Wed May 16, 2018 5:03 am
Re: Model Visualization using opensim4.0 C++ API
Thanks Christopher..!
- cui jiashuo
- Posts: 17
- Joined: Thu Dec 06, 2018 6:21 pm
Re: Model Visualization using opensim4.0 C++ API
Why does it show no matching function for call to OpenSim::Body::attachGeometry OpenSim::Mesh
- Dimitar Stanev
- Posts: 1096
- Joined: Fri Jan 31, 2014 5:14 am
Re: Model Visualization using opensim4.0 C++ API
Are you sure that CMake finds OpenSim 4.0 and not 3.3?
- cui jiashuo
- Posts: 17
- Joined: Thu Dec 06, 2018 6:21 pm
Re: Model Visualization using opensim4.0 C++ API
Yes, in fact I did not find opensim3.3 on opensim github, so I downloaded opensim4.0. Can you tell me where to find 3.3? Thank you
- Dimitar Stanev
- Posts: 1096
- Joined: Fri Jan 31, 2014 5:14 am
Re: Model Visualization using opensim4.0 C++ API
With find I meant the find command of CMake which automatically finds the installed version of OpenSim. If you have OpenSim 3.3 and 4.0 installed it may be that CMake finds the previous version, where the function prototype for attaching geometries to bodies is different.
Anyway, you can find previous versions of OpenSim under the link Previous Releases in the download page:
https://simtk.org/frs/?group_id=91
Anyway, you can find previous versions of OpenSim under the link Previous Releases in the download page:
https://simtk.org/frs/?group_id=91
- cui jiashuo
- Posts: 17
- Joined: Thu Dec 06, 2018 6:21 pm
Re: Model Visualization using opensim4.0 C++ API
OK,I will try ,thank you.
- cui jiashuo
- Posts: 17
- Joined: Thu Dec 06, 2018 6:21 pm
Re: Model Visualization using opensim4.0 C++ API
Dear Dimitar Stanev, thank you for your help, I designed an exoskeleton similar to the chairless chair (to support the body weight). I want to use the opensim contrast simulation before and after wearing the exoskeleton, the thigh muscle torque changes. I checked a lot of information, but I can't do anything, can you give me some advice? Or recommend some information. I will be very grateful to you.