Torus

Visualizing a torus

    Torus

Library

Modelica/Mechanics/MultiBody/Visualizers

Description

Model Torus visualizes a torus. The center of the torus is located atconnector frame_a (visualized by the red coordinate system in the figure below).The left image below shows a torus with ri=0.5 m and ro = 0.2 m.The right images below shows the torus with the additional parametersettings:

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

In the advanced menu the discretization of the surface visualization can be defined bythe number of points of the inner radius of the torus (n_ri) and bythe number of points of the outer radius of the torus (n_ro).In case the torus is closed (that is, opening = 0 degree),the actual number of points is one less (that is n_ri-1, n_ro-1), because the first andthe last point of the parametrization coincide in this case.

Parameters

Torus_0

NameLabelDescriptionData TypeValid Values

mo_animation

animation

= true, if animation shall be enabled

Scalar

true
false

mo_ri

ri

Major radius (distance from center of torus to center of tube)

Scalar

mo_ro

ro

Minor radius (radius of tube)

Scalar

mo_opening

opening

Opening angle of torus

Scalar

mo_startAngle

startAngle

Start angle of torus slice

Scalar

mo_stopAngle

stopAngle

End angle of torus slice

Scalar

mo_wireframe

wireframe

= true: 3D model will be displayed without faces

Scalar

true
false

mo_color

color

Color of surface

Vector of size 3

mo_specularCoefficient

specularCoefficient

Reflection of ambient light (= 0: light is completely absorbed)

Scalar

mo_transparency

transparency

Transparency of shape: 0 (= opaque) ... 1 (= fully transparent)

Scalar

Torus_1

NameLabelDescriptionData TypeValid Values

mo_n_ri

n_ri

Number of points along major radius ri

Scalar

mo_n_ro

n_ro

Number of points along minor radius ro

Scalar

Torus_2

NameLabelDescriptionData TypeValid Values

mo__nmodifiers

Number of Modifiers

Specifies the number of modifiers

Number

mo__modifiers

Modifiers

Add new modifier

Structure

mo__modifiers/varname

Variable name

Cell of strings

mo__modifiers/attribute

Attribute

Cell of strings

'start'
'fixed'

mo__modifiers/value

Value

Ports

NameTypeDescriptionIO TypeNumber

frame_a

implicit

Coordinate system in which visualization data is resolved

input

1

See Also