From 3e61128bc7211346981167494716327575d41955 Mon Sep 17 00:00:00 2001 From: HOS Date: Wed, 10 Dec 2025 13:27:07 +0100 Subject: [PATCH 1/2] The change (apart from nicer formatting) is that the cylinder going into the wheel is ends 1mm to the left. Previously it looked as if it was in front of the wheel (when looking at the entire icon - in small scale it doesn't matter). The gradient-part was not changed. Split off from #4711 --- .../Mechanics/MultiBody/Visualizers/VoluminousWheel.mo | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Modelica/Mechanics/MultiBody/Visualizers/VoluminousWheel.mo b/Modelica/Mechanics/MultiBody/Visualizers/VoluminousWheel.mo index 15f34cd53f..b0357cffeb 100644 --- a/Modelica/Mechanics/MultiBody/Visualizers/VoluminousWheel.mo +++ b/Modelica/Mechanics/MultiBody/Visualizers/VoluminousWheel.mo @@ -64,7 +64,12 @@ equation Polygon(lineColor = {64, 64, 64}, fillColor = {64, 64, 64}, fillPattern = FillPattern.Solid, points = {{1, 0}, {0.302, 15.68}, {-1.74, 30.614}, {-5.049, 44.383}, {-9.544, 56.568}, {-21.224, 73.91}, {-35, 80}, {-48.776, 73.91}, {-60.456, 56.568}, {-64.951, 44.383}, {-68.26, 30.614}, {-70.302, 15.68}, {-71, 0}, {-70.302, -15.68}, {-68.26, -30.614}, {-64.951, -44.383}, {-60.456, -56.568}, {-48.776, -73.91}, {-35, -80}, {-21.224, -73.91}, {-9.544, -56.568}, {-5.049, -44.383}, {-1.74, -30.614}, {0.302, -15.68}, {1, 0}}, smooth = Smooth.Bezier), Polygon(lineColor = {64, 64, 64}, fillColor = {191, 191, 191}, fillPattern = FillPattern.HorizontalCylinder, points = {{-12.5, 0}, {-14.213, -19.134}, {-19.09, -35.355}, {-26.39, -46.194}, {-35, -50}, {-43.61, -46.194}, {-50.91, -35.355}, {-55.787, -19.134}, {-57.5, 0}, {-55.787, 19.134}, {-50.91, 35.355}, {-43.61, 46.194}, {-35, 50}, {-26.39, 46.194}, {-19.09, 35.355}, {-14.213, 19.134}, {-12.5, 0}}, smooth = Smooth.Bezier), Text(textColor = {0,0,255}, extent = {{-150, 100}, {150, 140}}, textString = "%name"), - Rectangle(origin = {6.091, 0}, lineColor = {95, 95, 95}, fillColor = {215, 215, 215}, fillPattern = FillPattern.HorizontalCylinder, extent = {{-102.091, -8}, {-19.142, 8}})}, + Rectangle( + origin={6.091,0}, + lineColor={95,95,95}, + fillColor={215,215,215}, + fillPattern=FillPattern.HorizontalCylinder, + extent={{-103.091,-8},{-20.142,8}})}, coordinateSystem(extent = {{-100, -100}, {100, 100}}, preserveAspectRatio = true)), Documentation(info = "

From 05dafb3ee4d2d882b3f92369bbd6185dceaf76c4 Mon Sep 17 00:00:00 2001 From: Hans Olsson Date: Wed, 10 Dec 2025 14:17:17 +0100 Subject: [PATCH 2/2] Update Modelica/Mechanics/MultiBody/Visualizers/VoluminousWheel.mo Co-authored-by: Malte Lenz --- .../MultiBody/Visualizers/VoluminousWheel.mo | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/Modelica/Mechanics/MultiBody/Visualizers/VoluminousWheel.mo b/Modelica/Mechanics/MultiBody/Visualizers/VoluminousWheel.mo index b0357cffeb..b199973e7e 100644 --- a/Modelica/Mechanics/MultiBody/Visualizers/VoluminousWheel.mo +++ b/Modelica/Mechanics/MultiBody/Visualizers/VoluminousWheel.mo @@ -65,11 +65,18 @@ equation Polygon(lineColor = {64, 64, 64}, fillColor = {191, 191, 191}, fillPattern = FillPattern.HorizontalCylinder, points = {{-12.5, 0}, {-14.213, -19.134}, {-19.09, -35.355}, {-26.39, -46.194}, {-35, -50}, {-43.61, -46.194}, {-50.91, -35.355}, {-55.787, -19.134}, {-57.5, 0}, {-55.787, 19.134}, {-50.91, 35.355}, {-43.61, 46.194}, {-35, 50}, {-26.39, 46.194}, {-19.09, 35.355}, {-14.213, 19.134}, {-12.5, 0}}, smooth = Smooth.Bezier), Text(textColor = {0,0,255}, extent = {{-150, 100}, {150, 140}}, textString = "%name"), Rectangle( - origin={6.091,0}, - lineColor={95,95,95}, - fillColor={215,215,215}, - fillPattern=FillPattern.HorizontalCylinder, - extent={{-103.091,-8},{-20.142,8}})}, + origin = {9.846, 0}, + lineColor = {95, 95, 95}, + fillColor = {215, 215, 215}, + fillPattern = FillPattern.HorizontalCylinder, + extent = {{-105.846, -8}, {-19.846, 8}}), + Polygon( + lineColor = {64, 64, 64}, + fillColor = {64, 64, 64}, + fillPattern = FillPattern.Solid, + points = {{-12.5, 0}, {-14.213, 19.134}, {-7.765, 10}, {-7.765, -10}, {-14.213, -19.134}, {-12.5, 0}}, + smooth = Smooth.Bezier) + }, coordinateSystem(extent = {{-100, -100}, {100, 100}}, preserveAspectRatio = true)), Documentation(info = "