WOLFRAM SYSTEMMODELER

Lines

Visualizing a set of lines as cylinders with variable size, e.g., used to display characters (no Frame connector)

Wolfram Language

In[1]:=
Click for copyable input
SystemModel["Modelica.Mechanics.MultiBody.Visualizers.Internal.Lines"]
Out[1]:=

Information

This information is part of the Modelica Standard Library maintained by the Modelica Association.

With model Lines a set of dynamic lines is defined that are located relatively to frame_a. Every line is represented by a cylinder. This allows, e.g., to define simple shaped 3-dimensional characters. Note, if the lines are fixed relatively to frame_a, it is more convenient to use model Visualizers.FixedLines. An example for dynamic lines 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 input variable lines

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

Via vectors n_x and n_y a two-dimensional coordinate system is defined. The points defined with variable 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 and are defined by parameters.

Parameters (1)

n

Value: size(lines, 1)

Type: Integer

Description: Number of cylinders

Components (2)

R

Type: Orientation

Description: Orientation object to rotate the world frame into the object frame

cylinders

Type: Shape[n]

Description:

Used in Components (3)

World

World coordinate system + gravity field + default animation definition

FixedFrame

Visualizing a coordinate system including axes labels (visualization data may vary dynamically)

FixedLines

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