modelShape

Different visual shapes with variable size; all data have to be set as modifiers (see info layer)

Extends from Modelica.Utilities.Internal.PartialModelicaServices.Animation.PartialShape (Interface for 3D animation of elementary shapes).

Information

The interface of this model is documented at Modelica.Mechanics.MultiBody.Visualizers.Advanced.Shape.

Parameters

TypeNameDefaultDescription
Types.ShapeTypeshapeType (from PartialShape)"box"Type of shape (box, sphere, cylinder, pipecylinder, cone, pipe, beam, gearwheel, spring, <external shape>)

Components

TypeNameDefaultDescription
Frames.OrientationR (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.Lengthlength (from PartialShape)0Length of visual object
SI.Lengthwidth (from PartialShape)0Width of visual object
SI.Lengthheight (from PartialShape)0Height of visual object
Types.ShapeExtraextra (from PartialShape)0.0Additional size data for some of the shape types
Real[3]color (from PartialShape){255, 0, 0}Color of shape
Types.SpecularCoefficientspecularCoefficient (from PartialShape)0.7Reflection of ambient light (= 0: light is completely absorbed)