Skip to content

Commit

Permalink
Merge pull request #2667 from opensim-org/example_geometry_searchpath
Browse files Browse the repository at this point in the history
Add example demonstrating usage of addDirToGeometrySearchPaths
  • Loading branch information
aymanhab authored Jan 29, 2020
2 parents 5f7df77 + f756ae0 commit 6023f5e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions OpenSim/Tests/VisualizeModel/VisualizeModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,12 @@ int main(int argc, char **argv)
Model osimModel(modelFile);
osimModel.print("updated_" + modelFile);
osimModel.setUseVisualizer(true);
// If Geometry is located in folders other than where the .osim
// file is located or in a Geometry folder adjacent to the model
// file, then define the variable additionalGeometrySearchPath
// as the folder containing geometry mesh files
// and uncomment the line below.
// ModelVisualizer::addDirToGeometrySearchPaths(additionalGeometrySearchPath);
osimModel.updDisplayHints().set_show_frames(false);
SimTK::State& si = osimModel.initSystem();
osimModel.equilibrateMuscles(si);
Expand Down

0 comments on commit 6023f5e

Please sign in to comment.