diff --git a/Applications/Scale/test/testScale.cpp b/Applications/Scale/test/testScale.cpp index af6fd731ca..b42af1e408 100644 --- a/Applications/Scale/test/testScale.cpp +++ b/Applications/Scale/test/testScale.cpp @@ -35,7 +35,6 @@ #include #include #include -#include #include #include #include @@ -562,9 +561,8 @@ void scalePhysicalOffsetFrames() const Vec3 offset1 = Vec3(0.2, 0.4, 0.6); PathActuator* act1 = new PathActuator(); act1->setName("pathActuator1"); - auto& path = act1->updPath(); - path.appendNewPathPoint("point1a", model->updGround(), Vec3(0)); - path.appendNewPathPoint("point1b", *body, offset1); + act1->addNewPathPoint("point1a", model->updGround(), Vec3(0)); + act1->addNewPathPoint("point1b", *body, offset1); body->addComponent(act1); // Second PathActuator is attached to the Body via a POF. Both new @@ -578,8 +576,8 @@ void scalePhysicalOffsetFrames() PathActuator* act2 = new PathActuator(); act2->setName("pathActuator2"); auto& path2 = act2->updPath(); - path2.appendNewPathPoint("point2a", model->updGround(), Vec3(0)); - path2.appendNewPathPoint("point2b", *pof2, offset2); + act2->addNewPathPoint("point2a", model->updGround(), Vec3(0)); + act2->addNewPathPoint("point2b", *pof2, offset2); act1->addComponent(act2); State& s = model->initSystem(); diff --git a/Bindings/Java/OpenSimJNI/Test/testContext.cpp b/Bindings/Java/OpenSimJNI/Test/testContext.cpp index e26aaf2828..fc380b8269 100644 --- a/Bindings/Java/OpenSimJNI/Test/testContext.cpp +++ b/Bindings/Java/OpenSimJNI/Test/testContext.cpp @@ -33,7 +33,6 @@ #include #include #include -#include #include #include #include diff --git a/Bindings/Java/tests/TestBasics.java b/Bindings/Java/tests/TestBasics.java index 79483cd421..919ab4aba4 100644 --- a/Bindings/Java/tests/TestBasics.java +++ b/Bindings/Java/tests/TestBasics.java @@ -35,14 +35,12 @@ public static void testMuscleList() { Ground ground = model.getGround(); Thelen2003Muscle thelenMuscle = new Thelen2003Muscle("Darryl", 1, 0.5, 0.5, 0); - GeometryPath pathThelen = thelenMuscle.initGeometryPath(); - pathThelen.appendNewPathPoint("muscle1-point1", ground, new Vec3(0.0,0.0,0.0)); - pathThelen.appendNewPathPoint("muscle1-point2", ground, new Vec3(1.0,0.0,0.0)); + thelenMuscle.addNewPathPoint("muscle1-point1", ground, new Vec3(0.0,0.0,0.0)); + thelenMuscle.addNewPathPoint("muscle1-point2", ground, new Vec3(1.0,0.0,0.0)); Millard2012EquilibriumMuscle millardMuscle = new Millard2012EquilibriumMuscle("Matt", 1, 0.5, 0.5, 0); - GeometryPath pathMillard = millardMuscle.initGeometryPath(); - pathMillard.appendNewPathPoint("muscle1-point1", ground, new Vec3(0.0,0.0,0.0)); - pathMillard.appendNewPathPoint("muscle1-point2", ground, new Vec3(1.0,0.0,0.0)); + millardMuscle.addNewPathPoint("muscle1-point1", ground, new Vec3(0.0,0.0,0.0)); + millardMuscle.addNewPathPoint("muscle1-point2", ground, new Vec3(1.0,0.0,0.0)); model.addComponent(thelenMuscle); model.addComponent(millardMuscle); diff --git a/Bindings/Java/tests/TestModelBuilding.java b/Bindings/Java/tests/TestModelBuilding.java index a85252eb02..fdf9cce6c9 100644 --- a/Bindings/Java/tests/TestModelBuilding.java +++ b/Bindings/Java/tests/TestModelBuilding.java @@ -26,9 +26,8 @@ public static void main(String[] args) { 0.6, // Optimal fibre length 0.55, // Tendon slack length 0.0); // Pennation angle - GeometryPath pathBiceps = biceps.initGeometryPath(); - pathBiceps.appendNewPathPoint("origin", hum, ArrayDouble.createVec3(new double[]{0, 0.8, 0})); - pathBiceps.appendNewPathPoint("insert", rad, ArrayDouble.createVec3(new double[]{0, 0.7, 0})); + biceps.addNewPathPoint("origin", hum, ArrayDouble.createVec3(new double[]{0, 0.8, 0})); + biceps.addNewPathPoint("insert", rad, ArrayDouble.createVec3(new double[]{0, 0.7, 0})); PrescribedController cns = new PrescribedController(); cns.addActuator(biceps); diff --git a/OpenSim/Actuators/Test/testActuators.cpp b/OpenSim/Actuators/Test/testActuators.cpp index 45d7a2e3f1..3816d32a0e 100644 --- a/OpenSim/Actuators/Test/testActuators.cpp +++ b/OpenSim/Actuators/Test/testActuators.cpp @@ -480,9 +480,8 @@ void testMcKibbenActuator() OpenSim::Body* ball = new OpenSim::Body("ball", mass, Vec3(0), mass*SimTK::Inertia::sphere(0.1)); ball->scale(Vec3(ball_radius), false); - auto& path = actuator->updPath(); - path.appendNewPathPoint("mck_ground", ground, Vec3(0)); - path.appendNewPathPoint("mck_ball", *ball, Vec3(ball_radius)); + actuator->addNewPathPoint("mck_ground", ground, Vec3(0)); + actuator->addNewPathPoint("mck_ball", *ball, Vec3(ball_radius)); Vec3 locationInParent(0, ball_radius, 0), orientationInParent(0), locationInBody(0), orientationInBody(0); SliderJoint *ballToGround = new SliderJoint("ballToGround", ground, locationInParent, orientationInParent, *ball, locationInBody, orientationInBody); diff --git a/OpenSim/Actuators/Test/testModelProcessor.cpp b/OpenSim/Actuators/Test/testModelProcessor.cpp index 8129e9a989..7097cfa089 100644 --- a/OpenSim/Actuators/Test/testModelProcessor.cpp +++ b/OpenSim/Actuators/Test/testModelProcessor.cpp @@ -92,10 +92,8 @@ Model createElbowModel() { // Add a muscle that flexes the elbow. auto* biceps = new Millard2012EquilibriumMuscle("biceps", 200, 0.6, 0.55, 0); - - auto& path = biceps->updPath(); - path.appendNewPathPoint("origin", model.getGround(), Vec3(0, 0.8, 0)); - path.appendNewPathPoint("insertion", *body, Vec3(0, 0.7, 0)); + biceps->addNewPathPoint("origin", model.getGround(), Vec3(0, 0.8, 0)); + biceps->addNewPathPoint("insertion", *body, Vec3(0, 0.7, 0)); model.addBody(body); model.addJoint(joint); diff --git a/OpenSim/Actuators/Test/testMuscles.cpp b/OpenSim/Actuators/Test/testMuscles.cpp index 3eeeb44536..32b56799be 100644 --- a/OpenSim/Actuators/Test/testMuscles.cpp +++ b/OpenSim/Actuators/Test/testMuscles.cpp @@ -255,9 +255,8 @@ void simulateMuscle( //Attach the muscle const string &actuatorType = aMuscle->getConcreteClassName(); aMuscle->setName("muscle"); - auto& path = aMuscle->updPath(); - path.appendNewPathPoint("muscle-box", ground, Vec3(anchorWidth/2,0,0)); - path.appendNewPathPoint("muscle-ball", *ball, Vec3(-ballRadius,0,0)); + aMuscle->addNewPathPoint("muscle-box", ground, Vec3(anchorWidth/2,0,0)); + aMuscle->addNewPathPoint("muscle-ball", *ball, Vec3(-ballRadius,0,0)); ActivationFiberLengthMuscle_Deprecated *aflMuscle = dynamic_cast(aMuscle); @@ -608,9 +607,8 @@ void testThelen2003Muscle() false); Model m; - auto& path = muscle.updPath(); - path.appendNewPathPoint("p1", m.getGround(), SimTK::Vec3(0.0)); - path.appendNewPathPoint("p2", m.getGround(), SimTK::Vec3(1.0)); + muscle.addNewPathPoint("p1", m.getGround(), SimTK::Vec3(0.0)); + muscle.addNewPathPoint("p2", m.getGround(), SimTK::Vec3(1.0)); // Test property bounds. { Thelen2003Muscle musc = muscle; @@ -700,9 +698,8 @@ void testThelen2003Muscle() MaxIsometricForce0, OptimalFiberLength0, TendonSlackLength0, PennationAngle0); - auto& path = myMcl->updPath(); - path.appendNewPathPoint("p1", myModel.getGround(), SimTK::Vec3(0.0)); - path.appendNewPathPoint("p2", myModel.getGround(), SimTK::Vec3(1.0)); + myMcl->addNewPathPoint("p1", myModel.getGround(), SimTK::Vec3(0.0)); + myMcl->addNewPathPoint("p2", myModel.getGround(), SimTK::Vec3(1.0)); myModel.addForce(myMcl); // Set properties of Thelen2003Muscle. @@ -786,9 +783,8 @@ void testThelen2003Muscle() const double tendonSlackLength = 0.001; auto muscle = new Thelen2003Muscle("muscle", 1., optimalFiberLength, tendonSlackLength, 0.); - auto& path = muscle->updPath(); - path.appendNewPathPoint("p1", model.updGround(), SimTK::Vec3(0)); - path.appendNewPathPoint("p2", model.updGround(), SimTK::Vec3(0,0,1)); + muscle->addNewPathPoint("p1", model.updGround(), SimTK::Vec3(0)); + muscle->addNewPathPoint("p2", model.updGround(), SimTK::Vec3(0,0,1)); model.addForce(muscle); SimTK::State& state = model.initSystem(); @@ -802,9 +798,8 @@ void testThelen2003Muscle() { Model model; auto muscle = new Thelen2003Muscle("muscle", 1., 0.5, 0.5, 0.); - auto& path = muscle->updPath(); - path.appendNewPathPoint("p1", model.updGround(), SimTK::Vec3(0)); - path.appendNewPathPoint("p2", model.updGround(), SimTK::Vec3(0,0,1)); + muscle->addNewPathPoint("p1", model.updGround(), SimTK::Vec3(0)); + muscle->addNewPathPoint("p2", model.updGround(), SimTK::Vec3(0,0,1)); model.addForce(muscle); model.finalizeFromProperties(); @@ -897,9 +892,8 @@ void testMillard2012EquilibriumMuscle() const double tendonSlackLength = 0.1; //short tendon auto muscle = new Millard2012EquilibriumMuscle("muscle", 1., optimalFiberLength, tendonSlackLength, 0.); - auto& path = muscle->updPath(); - path.appendNewPathPoint("p1", model.updGround(), SimTK::Vec3(0)); - path.appendNewPathPoint("p2", model.updGround(), SimTK::Vec3(0, 0, 1)); + muscle->addNewPathPoint("p1", model.updGround(), SimTK::Vec3(0)); + muscle->addNewPathPoint("p2", model.updGround(), SimTK::Vec3(0, 0, 1)); model.addForce(muscle); SimTK::State& state = model.initSystem(); @@ -914,9 +908,8 @@ void testMillard2012EquilibriumMuscle() { Model model; auto muscle = new Millard2012EquilibriumMuscle("mcl", 1., 0.5, 0.5, 0.); - auto& path = muscle->updPath(); - path.appendNewPathPoint("p1", model.updGround(), SimTK::Vec3(0)); - path.appendNewPathPoint("p2", model.updGround(), SimTK::Vec3(0,0,1)); + muscle->addNewPathPoint("p1", model.updGround(), SimTK::Vec3(0)); + muscle->addNewPathPoint("p2", model.updGround(), SimTK::Vec3(0,0,1)); model.addForce(muscle); model.finalizeFromProperties(); diff --git a/OpenSim/Analyses/Test/testOutputReporter.cpp b/OpenSim/Analyses/Test/testOutputReporter.cpp index a54832dd51..822fd0b7b1 100644 --- a/OpenSim/Analyses/Test/testOutputReporter.cpp +++ b/OpenSim/Analyses/Test/testOutputReporter.cpp @@ -161,9 +161,8 @@ void simulateMuscle( //Attach the muscle /*const string &actuatorType = */muscle->getConcreteClassName(); muscle->setName("muscle"); - auto& path = muscle->updPath(); - path.appendNewPathPoint("muscle-box", ground, Vec3(anchorWidth / 2, 0, 0)); - path.appendNewPathPoint("muscle-ball", *ball, Vec3(-ballRadius, 0, 0)); + muscle->addNewPathPoint("muscle-box", ground, Vec3(anchorWidth / 2, 0, 0)); + muscle->addNewPathPoint("muscle-ball", *ball, Vec3(-ballRadius, 0, 0)); model.addForce(muscle); diff --git a/OpenSim/Examples/ExampleHopperDevice/buildDeviceModel.cpp b/OpenSim/Examples/ExampleHopperDevice/buildDeviceModel.cpp index 8cbb7f2751..901dd35389 100644 --- a/OpenSim/Examples/ExampleHopperDevice/buildDeviceModel.cpp +++ b/OpenSim/Examples/ExampleHopperDevice/buildDeviceModel.cpp @@ -82,8 +82,7 @@ Device* buildDevice() { auto pathActuator = new PathActuator(); pathActuator->setName("cableAtoB"); pathActuator->set_optimal_force(OPTIMAL_FORCE); - auto& path = pathActuator->updPath(); - path.appendNewPathPoint("pointA", *cuffA, Vec3(0)); + pathActuator->addNewPathPoint("pointA", *cuffA, Vec3(0)); //pathActuator->addNewPathPoint("pointB", *cuffB, Vec3(0)); device->addComponent(pathActuator); diff --git a/OpenSim/Examples/ExampleHopperDevice/buildDeviceModel_answers.cpp b/OpenSim/Examples/ExampleHopperDevice/buildDeviceModel_answers.cpp index 7ac3053f7e..58c2ec8a37 100644 --- a/OpenSim/Examples/ExampleHopperDevice/buildDeviceModel_answers.cpp +++ b/OpenSim/Examples/ExampleHopperDevice/buildDeviceModel_answers.cpp @@ -111,9 +111,8 @@ Device* buildDevice() { auto pathActuator = new PathActuator(); pathActuator->setName("cableAtoB"); pathActuator->set_optimal_force(OPTIMAL_FORCE); - auto& path = pathActuator->updPath(); - path.appendNewPathPoint("pointA", *cuffA, Vec3(0)); - path.appendNewPathPoint("pointB", *cuffB, Vec3(0)); + pathActuator->addNewPathPoint("pointA", *cuffA, Vec3(0)); + pathActuator->addNewPathPoint("pointB", *cuffB, Vec3(0)); device->addComponent(pathActuator); // Create a PropMyoController. diff --git a/OpenSim/Examples/ExampleHopperDevice/buildHopperModel.cpp b/OpenSim/Examples/ExampleHopperDevice/buildHopperModel.cpp index 49dc116244..b32f5de02e 100644 --- a/OpenSim/Examples/ExampleHopperDevice/buildHopperModel.cpp +++ b/OpenSim/Examples/ExampleHopperDevice/buildHopperModel.cpp @@ -144,9 +144,8 @@ Model buildHopper(bool showVisualizer) { mclPennAng = 0.; auto vastus = new Thelen2003Muscle("vastus", mclFmax, mclOptFibLen, mclTendonSlackLen, mclPennAng); - auto& path = vastus->updPath(); - path.appendNewPathPoint("origin", *thigh, Vec3(linkRadius, 0.1, 0)); - path.appendNewPathPoint("insertion", *shank, Vec3(linkRadius, 0.15, 0)); + vastus->addNewPathPoint("origin", *thigh, Vec3(linkRadius, 0.1, 0)); + vastus->addNewPathPoint("insertion", *shank, Vec3(linkRadius, 0.15, 0)); hopper.addForce(vastus); // Attach a cylinder (patella) to the distal end of the thigh over which the @@ -163,7 +162,7 @@ Model buildHopper(bool showVisualizer) { thigh->addComponent(patellaFrame); // Configure the vastus muscle to wrap over the patella. - path.addPathWrap(*patella); + vastus->updGeometryPath().addPathWrap(*patella); // Create a controller to excite the vastus muscle. auto brain = new PrescribedController(); diff --git a/OpenSim/Examples/ExampleHopperDevice/exampleHopperDevice.cpp b/OpenSim/Examples/ExampleHopperDevice/exampleHopperDevice.cpp index bbc23bff52..983b3fb1fa 100644 --- a/OpenSim/Examples/ExampleHopperDevice/exampleHopperDevice.cpp +++ b/OpenSim/Examples/ExampleHopperDevice/exampleHopperDevice.cpp @@ -99,8 +99,7 @@ void connectDeviceToModel(OpenSim::Device& device, OpenSim::Model& model, if (model.hasComponent(patellaPath)) { auto& cable = model.updComponent("device/cableAtoB"); auto& wrapObject = model.updComponent(patellaPath); - auto& path = cable.updPath(); - path.addPathWrap(wrapObject); + cable.updGeometryPath().addPathWrap(wrapObject); } } diff --git a/OpenSim/Examples/ExampleHopperDevice/exampleHopperDevice_answers.cpp b/OpenSim/Examples/ExampleHopperDevice/exampleHopperDevice_answers.cpp index 6a6384f324..429deffb2f 100644 --- a/OpenSim/Examples/ExampleHopperDevice/exampleHopperDevice_answers.cpp +++ b/OpenSim/Examples/ExampleHopperDevice/exampleHopperDevice_answers.cpp @@ -131,8 +131,7 @@ void connectDeviceToModel(OpenSim::Device& device, OpenSim::Model& model, if (model.hasComponent(patellaPath)) { auto& cable = model.updComponent("device/cableAtoB"); auto& wrapObject = model.updComponent(patellaPath); - auto& path = cable.updPath(); - path.addPathWrap(wrapObject); + cable.updGeometryPath().addPathWrap(wrapObject); } } diff --git a/OpenSim/Examples/ExampleLuxoMuscle/LuxoMuscle_create_and_simulate.cpp b/OpenSim/Examples/ExampleLuxoMuscle/LuxoMuscle_create_and_simulate.cpp index 86a318b62a..bdb3567aea 100644 --- a/OpenSim/Examples/ExampleLuxoMuscle/LuxoMuscle_create_and_simulate.cpp +++ b/OpenSim/Examples/ExampleLuxoMuscle/LuxoMuscle_create_and_simulate.cpp @@ -713,10 +713,9 @@ void createLuxoJr(OpenSim::Model& model){ "knee_extensor_right", knee_extensor_F0, knee_extensor_lm0, knee_extensor_lts, pennationAngle); - auto& pathKneeRight = kneeExtensorRight->updPath(); - pathKneeRight.appendNewPathPoint("knee_extensor_right_origin", *leg_Hlink, + kneeExtensorRight->addNewPathPoint("knee_extensor_right_origin", *leg_Hlink, knee_extensor_origin); - pathKneeRight.appendNewPathPoint("knee_extensor_right_insertion", + kneeExtensorRight->addNewPathPoint("knee_extensor_right_insertion", *bottom_bracket, knee_extensor_insertion); kneeExtensorRight->set_ignore_tendon_compliance(true); @@ -728,15 +727,14 @@ void createLuxoJr(OpenSim::Model& model){ knee_extensor_F0, knee_extensor_lm0, knee_extensor_lts, pennationAngle); - auto& pathKneeLeft = kneeExtensorLeft->updPath(); - pathKneeLeft.appendNewPathPoint("knee_extensor_left_origin", *leg_Hlink, + kneeExtensorLeft->addNewPathPoint("knee_extensor_left_origin", *leg_Hlink, knee_extensor_origin); - pathKneeLeft.appendNewPathPoint("knee_extensor_left_insertion", + kneeExtensorLeft->addNewPathPoint("knee_extensor_left_insertion", *bottom_bracket, knee_extensor_insertion); // flip the z coordinates of all path points - PathPointSet& points = pathKneeLeft.updPathPointSet(); + PathPointSet& points = kneeExtensorLeft->updGeometryPath().updPathPointSet(); for (int i=0; i(points[i]).upd_location()[2] *= -1; } @@ -750,10 +748,9 @@ void createLuxoJr(OpenSim::Model& model){ back_extensor_F0, back_extensor_lm0, back_extensor_lts, pennationAngle); - auto& pathBackRight = backExtensorRight->updPath(); - pathBackRight.appendNewPathPoint("back_extensor_right_origin", *chest, + backExtensorRight->addNewPathPoint("back_extensor_right_origin", *chest, back_extensor_origin); - pathBackRight.appendNewPathPoint("back_extensor_right_insertion", *back, + backExtensorRight->addNewPathPoint("back_extensor_right_insertion", *back, back_extensor_insertion); backExtensorRight->set_ignore_tendon_compliance(true); model.addForce(backExtensorRight); @@ -764,13 +761,13 @@ void createLuxoJr(OpenSim::Model& model){ back_extensor_F0, back_extensor_lm0, back_extensor_lts, pennationAngle); - auto& pathBackLeft = backExtensorLeft->updPath(); - pathBackLeft.appendNewPathPoint("back_extensor_left_origin", *chest, + backExtensorLeft->addNewPathPoint("back_extensor_left_origin", *chest, back_extensor_origin); - pathBackLeft.appendNewPathPoint("back_extensor_left_insertion", *back, + backExtensorLeft->addNewPathPoint("back_extensor_left_insertion", *back, back_extensor_insertion); - PathPointSet& pointsLeft = pathBackLeft.updPathPointSet(); + PathPointSet& pointsLeft = backExtensorLeft->updGeometryPath() + .updPathPointSet(); for (int i=0; i(pointsLeft[i]).upd_location()[2] *= -1; } diff --git a/OpenSim/Examples/ExampleMain/OutputReference/TugOfWar_Complete.cpp b/OpenSim/Examples/ExampleMain/OutputReference/TugOfWar_Complete.cpp index 09837028a1..fd9b3009ed 100644 --- a/OpenSim/Examples/ExampleMain/OutputReference/TugOfWar_Complete.cpp +++ b/OpenSim/Examples/ExampleMain/OutputReference/TugOfWar_Complete.cpp @@ -201,13 +201,11 @@ int main() // Specify the paths for the two muscles // Path for muscle 1 - auto& path1 = muscle1->updPath(); - path1.appendNewPathPoint("muscle1-point1", ground, Vec3(0.0,0.05,-0.35)); - path1.appendNewPathPoint("muscle1-point2", *block, Vec3(0.0,0.0,-0.05)); + muscle1->addNewPathPoint("muscle1-point1", ground, Vec3(0.0,0.05,-0.35)); + muscle1->addNewPathPoint("muscle1-point2", *block, Vec3(0.0,0.0,-0.05)); // Path for muscle 2 - auto& path2 = muscle2->updPath(); - path2.appendNewPathPoint("muscle2-point1", ground, Vec3(0.0,0.05,0.35)); - path2.appendNewPathPoint("muscle2-point2", *block, Vec3(0.0,0.0,0.05)); + muscle2->addNewPathPoint("muscle2-point1", ground, Vec3(0.0,0.05,0.35)); + muscle2->addNewPathPoint("muscle2-point2", *block, Vec3(0.0,0.0,0.05)); // Add the two muscles (as forces) to the model osimModel.addForce(muscle1); diff --git a/OpenSim/Examples/Moco/exampleHangingMuscle/exampleHangingMuscle.cpp b/OpenSim/Examples/Moco/exampleHangingMuscle/exampleHangingMuscle.cpp index ec7d102053..68f3c364b5 100644 --- a/OpenSim/Examples/Moco/exampleHangingMuscle/exampleHangingMuscle.cpp +++ b/OpenSim/Examples/Moco/exampleHangingMuscle/exampleHangingMuscle.cpp @@ -63,9 +63,8 @@ Model createHangingMuscleModel(bool ignoreActivationDynamics, actu->set_tendon_compliance_dynamics_mode("implicit"); actu->set_max_contraction_velocity(10); actu->set_pennation_angle_at_optimal(0.10); - auto& path = actu->updPath(); - path.appendNewPathPoint("origin", model.updGround(), SimTK::Vec3(0)); - path.appendNewPathPoint("insertion", *body, SimTK::Vec3(0)); + actu->addNewPathPoint("origin", model.updGround(), SimTK::Vec3(0)); + actu->addNewPathPoint("insertion", *body, SimTK::Vec3(0)); model.addForce(actu); // Add metabolics probes: one for the total metabolic rate, diff --git a/OpenSim/Examples/MuscleExample/mainFatigue.cpp b/OpenSim/Examples/MuscleExample/mainFatigue.cpp index 28ef25ab38..31a113d86e 100644 --- a/OpenSim/Examples/MuscleExample/mainFatigue.cpp +++ b/OpenSim/Examples/MuscleExample/mainFatigue.cpp @@ -133,16 +133,14 @@ int main() pennationAngle); // Define the path of the muscles - auto& fatigablePath = fatigable->updPath(); - fatigablePath.appendNewPathPoint("fatigable-point1", ground, + fatigable->addNewPathPoint("fatigable-point1", ground, Vec3(0.0, halfLength, -0.35)); - fatigablePath.appendNewPathPoint("fatigable-point2", *block, + fatigable->addNewPathPoint("fatigable-point2", *block, Vec3(0.0, halfLength, -halfLength)); - auto& originalPath = original->updPath(); - originalPath.appendNewPathPoint("original-point1", ground, + original->addNewPathPoint("original-point1", ground, Vec3(0.0, halfLength, 0.35)); - originalPath.appendNewPathPoint("original-point2", *block, + original->addNewPathPoint("original-point2", *block, Vec3(0.0, halfLength, halfLength)); // Define the default states for the two muscles