Skip to content

Commit 3e61128

Browse files
committed
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 modelica#4711
1 parent 86543d8 commit 3e61128

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Modelica/Mechanics/MultiBody/Visualizers/VoluminousWheel.mo

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,12 @@ equation
6464
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),
6565
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),
6666
Text(textColor = {0,0,255}, extent = {{-150, 100}, {150, 140}}, textString = "%name"),
67-
Rectangle(origin = {6.091, 0}, lineColor = {95, 95, 95}, fillColor = {215, 215, 215}, fillPattern = FillPattern.HorizontalCylinder, extent = {{-102.091, -8}, {-19.142, 8}})},
67+
Rectangle(
68+
origin={6.091,0},
69+
lineColor={95,95,95},
70+
fillColor={215,215,215},
71+
fillPattern=FillPattern.HorizontalCylinder,
72+
extent={{-103.091,-8},{-20.142,8}})},
6873
coordinateSystem(extent = {{-100, -100}, {100, 100}}, preserveAspectRatio = true)),
6974
Documentation(info = "<html>
7075
<p>

0 commit comments

Comments
 (0)