Rectangle

Visualizing a planar rectangular surface

    Rectangle

Library

Modelica/Mechanics/MultiBody/Visualizers

Description

This model visualizes a planar rectangle. The center of the rectangle is located atconnector frame_a (visualized by the red coordinate system in the figure below).The figure below shows two rectangles of the same parameters

nu = 8,nv = 3,length_u = 3,length_v = 2.

The green rectangle on the right is visualized in wireframe thus highlighting the influenceof the discretization. Moreover, the u-axis of this rectangle is modifiedso that the rectangle is rotated about the z-axis of frame_a.

Parameters

Rectangle_0

NameLabelDescriptionData TypeValid Values

mo_animation

animation

= true, if animation shall be enabled

Scalar

true
false

mo_direction_u

direction_u

Vector along u-axis of rectangle resolved in frame_a

Vector of size 3

mo_direction_v

direction_v

Vector along v-axis of rectangle resolved in frame_a

Vector of size 3

mo_length_u

length_u

Length of rectangle in direction u

Scalar

mo_length_v

length_v

Length of rectangle in direction v

Scalar

mo_nu

nu

Number of points in direction u

Scalar

mo_nv

nv

Number of points in direction v

Scalar

mo_wireframe

wireframe

= true: 3D model will be displayed without faces

Scalar

true
false

mo_color

color

Color of surface

Vector of size 3

mo_specularCoefficient

specularCoefficient

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

Scalar

mo_transparency

transparency

Transparency of shape: 0 (= opaque) ... 1 (= fully transparent)

Scalar

Rectangle_1

NameLabelDescriptionData TypeValid Values

mo__nmodifiers

Number of Modifiers

Specifies the number of modifiers

Number

mo__modifiers

Modifiers

Add new modifier

Structure

mo__modifiers/varname

Variable name

Cell of strings

mo__modifiers/attribute

Attribute

Cell of strings

'start'
'fixed'

mo__modifiers/value

Value

Ports

NameTypeDescriptionIO TypeNumber

frame_a

implicit

Coordinate system in which visualization data is resolved

input

1

See Also