modelRectangle

Visualizing a planar rectangular surface

Extends from Modelica.Mechanics.MultiBody.Interfaces.PartialVisualizer (Base model for visualizers (has a frame_a on the left side + outer world + assert to guarantee that the component is connected)).

Information

This model visualizes a planar rectangle. The center of the rectangle is located at connector 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 influence of the discretization. Moreover, the u-axis of this rectangle is modified so that the rectangle is rotated about the z-axis of frame_a.

Parameters

TypeNameDefaultDescription
Booleananimationtrue= true, if animation shall be enabled
MultiBody.Types.Axisdirection_u{1, 0, 0}Vector along u-axis of rectangle resolved in frame_a
MultiBody.Types.Axisdirection_v{0, 1, 0}Vector along v-axis of rectangle resolved in frame_a
SI.Distancelength_u3Length of rectangle in direction u
SI.Distancelength_v1Length of rectangle in direction v
Discretization
Integernu3Number of points in direction u
Integernv2Number of points in direction v
Material properties
Booleanwireframefalse= true: 3D model will be displayed without faces

Connectors

TypeNameDefaultDescription
Interfaces.Frame_aframe_a (from PartialVisualizer)Coordinate system in which visualization data is resolved

Components

TypeNameDefaultDescription
Modelica.Mechanics.MultiBody.Types.RealColorcolor{0, 128, 255}Color of surface
Types.SpecularCoefficientspecularCoefficient0.7Reflection of ambient light (= 0: light is completely absorbed)
Realtransparency0Transparency of shape: 0 (= opaque) ... 1 (= fully transparent)