Torus
Visualizing a 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
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
mo_animation | animation | = true, if animation shall be enabled | Scalar | true |
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 |
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 |
Name | Label | Description | Data Type | Valid 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 |
Name | Label | Description | Data Type | Valid 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' | |
mo__modifiers/value | Value |
Ports
Name | Type | Description | IO Type | Number |
---|---|---|---|---|
frame_a | implicit | Coordinate system in which visualization data is resolved | input | 1 |