Shape

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

Information

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

The interface of 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)

Outputs (7)

Form

Type: Real

rxvisobj

Type: Real[3]

Description: x-axis unit vector of shape, resolved in world frame

ryvisobj

Type: Real[3]

Description: y-axis unit vector of shape, resolved in world frame

rvisobj

Type: Position[3] (m)

Description: position vector from world frame to shape frame, resolved in world frame

size

Type: Length[3] (m)

Description: {length,width,height} of shape

Material

Type: Real

Extra

Type: Real

Components (1)

R

Type: Orientation

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

Extended by (1)

Shape

Modelica.Mechanics.MultiBody.Visualizers.Advanced

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