FixedLines

Visualizing a set of lines as cylinders (e.g., used to display characters)

    FixedLines

Library

Modelica/Mechanics/MultiBody/Visualizers/Internal

Description

With model FixedLines a set of lines is definedthat are located relatively to frame_a. Every lineis represented by a cylinder. This allows to define simple shaped3-dimensional characters. An example is shown in thefollowing figure:
 

model Visualizers.FixedLines

 
The two letters "x" and "y" are constructed with 4 linesby providing the following data for parameter lines

   lines = {[0, 0; 1, 1],[0, 1; 1, 0],[1.5, -0.5; 2.5, 1],[1.5, 1; 2, 0.25]}

Via parameter vectors n_x and n_y a two-dimensionalcoordinate system is defined. The points defined with parameterlines are with respect to this coordinate system. For example"[0, 0; 1, 1]" defines a line that starts at {0,0} and ends at {1,1}.The diameter and color of all line cylinders are identical.

Parameters

FixedLines_0

NameLabelDescriptionData TypeValid Values

mo_animation

animation

= true, if animation shall be enabled

Scalar

true
false

mo_scale

scale

The 'lines' are visualized 'scale' times bigger

Scalar

mo_lines

lines

List of start and end points of cylinders resolved along n_x and n_y

Matrix

mo_diameter

diameter

Diameter of the cylinders defined by lines

Scalar

mo_r_lines

r_lines

Position vector from origin of frame_a to the origin of the 'lines' frame, resolved in frame_a

Vector of size 3

mo_n_x

n_x

Vector in direction of x-axis of 'lines' frame, resolved in frame_a.

Vector of size 3

mo_n_y

n_y

Vector in direction of y-axis of 'lines' frame, resolved in frame_a.

Vector of size 3

mo_color

color

Color of cylinders

Vector of size 3

mo_specularCoefficient

specularCoefficient

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

Scalar

FixedLines_1

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