Skip to content

Commit

Permalink
[MechanicalLoad] Small update on SphereFF drawing to follow wireframe…
Browse files Browse the repository at this point in the history
… global option
  • Loading branch information
epernod authored and fredroy committed Mar 3, 2025
1 parent cf1a719 commit e3bf4c1
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,10 @@ void SphereForceField<DataTypes>::draw(const core::visual::VisualParams* vparams

const auto stateLifeCycle = vparams->drawTool()->makeStateLifeCycle();

if (vparams->displayFlags().getShowWireFrame())
vparams->drawTool()->setPolygonMode(0, true);


type::Vec3d center;
DataTypes::get(center[0], center[1], center[2], d_sphereCenter.getValue());
const Real& r = d_sphereRadius.getValue();
Expand Down

0 comments on commit e3bf4c1

Please sign in to comment.