modelPartialShape
Interface for 3D animation of elementary shapes
Information
This model is documented at Modelica.Mechanics.MultiBody.Visualizers.Advanced.Shape.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Types.ShapeType | shapeType | "box" | Type of shape (box, sphere, cylinder, pipecylinder, cone, pipe, beam, gearwheel, spring, <external shape>) |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| 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_shape | {0, 0, 0} | Position vector from origin of object frame to shape origin, resolved in object frame |
| Real[3] | lengthDirection | {1, 0, 0} | Vector in length direction, resolved in object frame |
| Real[3] | widthDirection | {0, 1, 0} | Vector in width direction, resolved in object frame |
| SI.Length | length | 0 | Length of visual object |
| SI.Length | width | 0 | Width of visual object |
| SI.Length | height | 0 | Height of visual object |
| Types.ShapeExtra | extra | 0.0 | Additional size data for some of the shape types |
| Real[3] | color | {255, 0, 0} | Color of shape |
| Types.SpecularCoefficient | specularCoefficient | 0.7 | Reflection of ambient light (= 0: light is completely absorbed) |