.Modelica.Mechanics.MultiBody.Visualizers.Advanced.SurfaceCharacteristics.torus

Information

Function torus computes the X, Y and Z arrays to visualize a torus with model Torus. The left image below shows a torus with R = 0.5 m and r = 0.2 m. The right images below shows the torus with the additional parameter settings:

opening    =   45 degree
startAngle = -135 degree
stopAngle  =  135 degree

Interface

function torus
  extends Modelica.Mechanics.MultiBody.Interfaces.partialSurfaceCharacteristic(final multiColoredSurface = false);
  input SI.Length R = 1 "Major radius (distance from center of torus to center of tube)" annotation(
    Dialog);
  input SI.Length r = 0.2 "Minor radius (radius of tube)" annotation(
    Dialog);
  input SI.Angle opening = 0 "Opening angle of torus" annotation(
    Dialog);
  input SI.Angle startAngle = -Modelica.Constants.pi "Start angle of torus slice" annotation(
    Dialog);
  input SI.Angle stopAngle = Modelica.Constants.pi "End angle of torus slice" annotation(
    Dialog);
end torus;

Generated at 2020-06-05T21:39:08Z by OpenModelica 1.16.0~dev-442-g2e5bc9f