PartialShape

Interface for 3D animation of elementary shapes

Information

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

This model is documented at Modelica.Mechanics.MultiBody.Visualizers.Advanced.Shape.

Parameters (1)

shapeType

Value: "box"

Type: ShapeType

Description: Type of shape (box, sphere, cylinder, pipecylinder, cone, pipe, beam, gearwheel, spring, )

Inputs (11)

R

Default Value: Frames.nullRotation()

Type: Orientation

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

r

Default Value: {0, 0, 0}

Type: Position[3] (m)

Description: Position vector from origin of world frame to origin of object frame, resolved in world frame

r_shape

Default Value: {0, 0, 0}

Type: Position[3] (m)

Description: Position vector from origin of object frame to shape origin, resolved in object frame

lengthDirection

Default Value: {1, 0, 0}

Type: Real[3]

Description: Vector in length direction, resolved in object frame

widthDirection

Default Value: {0, 1, 0}

Type: Real[3]

Description: Vector in width direction, resolved in object frame

length

Default Value: 0

Type: Length (m)

Description: Length of visual object

width

Default Value: 0

Type: Length (m)

Description: Width of visual object

height

Default Value: 0

Type: Length (m)

Description: Height of visual object

extra

Default Value: 0.0

Type: ShapeExtra

Description: Additional size data for some of the shape types

color

Default Value: {255, 0, 0}

Type: Real[3]

Description: Color of shape

specularCoefficient

Default Value: 0.7

Type: SpecularCoefficient

Description: Reflection of ambient light (= 0: light is completely absorbed)

Components (1)

R

Type: Orientation

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

Extended by (2)

Shape

Modelica.Mechanics.MultiBody.Visualizers.Advanced

Visualizing an elementary object with variable size; all data have to be set as modifiers (see info layer)

Shape

ModelicaServices.Animation

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