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 R = 0.5 m andr = 0.2 m.The right images below shows the torus with the additional parametersettings:

opening    =   45 degreestartAngle = -135 degreestopAngle  =  135 degree

In the advanced menu the discretization of the surface visualization can be defined bythe number nR of points along the major radius of the torus and bythe number nr of points along the minor radius of the torus.In case the torus is closed (that is, opening = 0 degree),the actual number of points is one less (that is nR - 1, nr - 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_R

R

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

Scalar

mo_r

r

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_R

n_R

Number of points along major radius R

Scalar

mo_n_r

n_r

Number of points along minor radius r

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