modelLines
Information
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.Internal.FixedLines.
An example for dynamic lines is shown in the following figure:

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.
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Mechanics.MultiBody.Frames.Orientation | R | Frames.nullRotation() | Orientation object to rotate the world frame into the object frame |
| SI.Position[3] | r | {0, 0, 0} | Position vector from origin of world frame to origin of object frame, resolved in world frame |
| SI.Position[3] | r_lines | {0, 0, 0} | Position vector from origin of object frame to the origin of 'lines' frame, resolved in object frame |
| Real[3] | n_x | {1, 0, 0} | Vector in direction of x-axis of 'lines' frame, resolved in object frame |
| Real[3] | n_y | {0, 1, 0} | Vector in direction of y-axis of 'lines' frame, resolved in object frame |
| SI.Position[:,2,2] | lines | zeros(0, 2, 2) | List of start and end points of cylinders resolved in an x-y frame defined by n_x, n_y, e.g., {[0,0;1,1], [0,1;1,0], [2,0; 3,1]} |
| SI.Length | diameter | 0.05 | Diameter of the cylinders defined by lines |
| Modelica.Mechanics.MultiBody.Types.Color | color | {0, 128, 255} | Color of cylinders |
| Types.SpecularCoefficient | specularCoefficient | 0.7 | Reflection of ambient light (= 0: light is completely absorbed) |