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 defined that are located relatively to frame_a. Every line is represented by a cylinder. This allows to define simple shaped 3-dimensional characters. An example is shown in the following figure:
 

model Visualizers.FixedLines

 
The two letters "x" and "y" are constructed with 4 lines by 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-dimensional coordinate system is defined. The points defined with parameter lines 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

Ports

NameTypeDescriptionIO TypeNumber

frame_a

implicit

Coordinate system in which visualization data is resolved

input

1