From c8ebaff90576246af8527c0c5e2aca637a203ec6 Mon Sep 17 00:00:00 2001 From: aymanhab Date: Wed, 29 Jan 2020 09:18:25 -0800 Subject: [PATCH 1/2] Add example demonstrating how to use the method addDirToGeometrySearchPaths --- OpenSim/Tests/VisualizeModel/VisualizeModel.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/OpenSim/Tests/VisualizeModel/VisualizeModel.cpp b/OpenSim/Tests/VisualizeModel/VisualizeModel.cpp index cf4deb4625..4817343934 100644 --- a/OpenSim/Tests/VisualizeModel/VisualizeModel.cpp +++ b/OpenSim/Tests/VisualizeModel/VisualizeModel.cpp @@ -56,6 +56,11 @@ int main(int argc, char **argv) Model osimModel(modelFile); osimModel.print("updated_" + modelFile); osimModel.setUseVisualizer(true); + // If Geometry located in folders other than where .osim file is located or + // or in Geometry folder neath the model file, then + // set additionalGeometrySearchPath to the folder containing mesh files + // and uncomment the line below + //ModelVisualizer::addDirToGeometrySearchPaths(additionalGeometrySearchPath); osimModel.updDisplayHints().set_show_frames(false); SimTK::State& si = osimModel.initSystem(); osimModel.equilibrateMuscles(si); From f756ae06cb5fb7ab839bafc5b86b1b4cca47b7c3 Mon Sep 17 00:00:00 2001 From: Christopher Dembia Date: Wed, 29 Jan 2020 09:37:21 -0800 Subject: [PATCH 2/2] Edit comment. --- OpenSim/Tests/VisualizeModel/VisualizeModel.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/OpenSim/Tests/VisualizeModel/VisualizeModel.cpp b/OpenSim/Tests/VisualizeModel/VisualizeModel.cpp index 4817343934..03bd95388f 100644 --- a/OpenSim/Tests/VisualizeModel/VisualizeModel.cpp +++ b/OpenSim/Tests/VisualizeModel/VisualizeModel.cpp @@ -56,11 +56,12 @@ int main(int argc, char **argv) Model osimModel(modelFile); osimModel.print("updated_" + modelFile); osimModel.setUseVisualizer(true); - // If Geometry located in folders other than where .osim file is located or - // or in Geometry folder neath the model file, then - // set additionalGeometrySearchPath to the folder containing mesh files - // and uncomment the line below - //ModelVisualizer::addDirToGeometrySearchPaths(additionalGeometrySearchPath); + // 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);