modelShape
Extends MSL Shape block
Extends from Modelica.Mechanics.MultiBody.Visualizers.Advanced.Shape (Visualizing an elementary object with variable size; all data have to be set as modifiers (see info layer)).
Information
Attribution Notice
This model is an extension of the Shape block in the
Mechanics.MultiBody.Visualizers.Advanced package
of the Modelica Standard Library
Copyright © 1998-2016, Modelica Association and DLR.
Copyright © 2018
ATA ENGINEERING, INC.
ALL RIGHTS RESERVED
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Types.ShapeType | shapeType (from PartialShape) | "box" | Type of shape (box, sphere, cylinder, pipecylinder, cone, pipe, beam, gearwheel, spring, <external shape>) |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Frames.Orientation | R (from PartialShape) | Frames.nullRotation() | Orientation object to rotate the world frame into the object frame |
| SI.Position[3] | r (from PartialShape) | {0, 0, 0} | Position vector from origin of world frame to origin of object frame, resolved in world frame |
| SI.Position[3] | r_shape (from PartialShape) | {0, 0, 0} | Position vector from origin of object frame to shape origin, resolved in object frame |
| Real[3] | lengthDirection (from PartialShape) | {1, 0, 0} | Vector in length direction, resolved in object frame |
| Real[3] | widthDirection (from PartialShape) | {0, 1, 0} | Vector in width direction, resolved in object frame |
| SI.Length | length (from PartialShape) | 0 | Length of visual object |
| SI.Length | width (from PartialShape) | 0 | Width of visual object |
| SI.Length | height (from PartialShape) | 0 | Height of visual object |
| Types.ShapeExtra | extra (from PartialShape) | 0.0 | Additional size data for some of the shape types |
| Real[3] | color (from PartialShape) | {255, 0, 0} | Color of shape |
| Types.SpecularCoefficient | specularCoefficient (from PartialShape) | 0.7 | Reflection of ambient light (= 0: light is completely absorbed) |
| Real | transparency | 0.0 | Transparency of shape: 0 (= opaque) ... 1 (= fully transparent) |