modelVisualizeSimpleRoads

Simple visualization of a road as parameterized surface

Extends from Modelica.Mechanics.MultiBody.Visualizers.Advanced.Surface (Visualizing a moveable, parameterized surface; the surface characteristic is provided by a function).

Information

Object used for visualization of road surface. Road position evaluation is performed internally to enable correct visualization of the road surface. The road length and width can be given via parameters (see list below). The road visualization object consists of segments. Their number is dependent on the number of points along s and w.

Parameters

TypeNameDefaultDescription
Integerns2Number of points along surface parameter 1
Integernw2Number of points along surface parameter 2
SI.Lengths_min0Minimum value of s
SI.Lengths_max1Maximum value of s
SI.Lengthw_min-1Minimum value of w
SI.Lengthw_max1Maximum value of w
Surface properties
Integernu (from PartialSurface)2Number of points in u-Dimension
Integernv (from PartialSurface)2Number of points in v-Dimension
Material properties
Booleanwireframe (from PartialSurface)false= true: 3D model will be displayed without faces
BooleanmultiColoredSurface (from PartialSurface)false= true: Color is defined for each surface point

Components

TypeNameDefaultDescription
Frames.OrientationR (from PartialSurface)Frames.nullRotation()Orientation object to rotate the world frame into the surface frame
SI.Position[3]r_0 (from PartialSurface){0, 0, 0}Position vector from origin of world frame to origin of surface frame, resolved in world frame
Real[3]color (from PartialSurface){255, 0, 0}Color of surface
Types.SpecularCoefficientspecularCoefficient (from PartialSurface)0.7Reflection of ambient light (= 0: light is completely absorbed)
Realtransparency (from PartialSurface)0Transparency of shape: 0 (= opaque) ... 1 (= fully transparent)

Contents

NameDescription
roadSurfaceCharacteristicprotected