diff --git a/src/PluginExample/MyMappingPendulumInPlane.inl b/src/PluginExample/MyMappingPendulumInPlane.inl index d5cb512..ce3dc38 100644 --- a/src/PluginExample/MyMappingPendulumInPlane.inl +++ b/src/PluginExample/MyMappingPendulumInPlane.inl @@ -38,7 +38,7 @@ namespace sofa::component::mapping using helper::ReadAccessor; using helper::WriteAccessor; using type::Vec; -using type::Vector3; +using type::Vec3; template @@ -81,7 +81,7 @@ void MyMappingPendulumInPlane::draw(const core::visual::VisualParams* v if (!vparams->displayFlags().getShowMappings()) return; ReadAccessor > out (*this->toModel->read(core::ConstVecCoordId::position())); - std::vector< Vector3 > points(out.size()); + std::vector< Vec3 > points(out.size()); for (unsigned int i=0; i::draw(const core::visual::VisualParams* v points.resize(2*out.size()); for (unsigned int i=0; idrawTool()->drawLines (points, 1, type::RGBAColor::green()); @@ -194,9 +194,9 @@ void MyMappingPendulumInPlane::applyDJT(const core::MechanicalParams* m core::MultiVecDerivId parentForceChangeId, core::ConstMultiVecDerivId) { - ReadAccessor > childForce (*mparams->readF(this->toModel)); + ReadAccessor > childForce (*mparams->readF(this->toModel.get())); WriteAccessor > parentForce (*parentForceChangeId[this->fromModel.get()].write()); - ReadAccessor > parentDx (*mparams->readDx(this->fromModel)); + ReadAccessor > parentDx (*mparams->readDx(this->fromModel.get())); InReal kfactor = (InReal)mparams->kFactor(); for(unsigned i=0; i