functionpartialSurfaceCharacteristic
Interface for a function returning surface characteristics
Extends from Modelica.Icons.Function (Icon for functions).
Information
This partial function defines the interface of a function that returns
surface characteristics for an object visualization, see e.g.
Visualizers.Advanced.SurfaceCharacteristics.torus.
Function which extends from this partial class shall define all outputs
X, Y, Z and C.
The last one output C can be set as follows when a multi-colored surface
is not utilized.
function mySurface
extends partialSurfaceCharacteristic(
final multiColoredSurface = false,
final C = zeros(0,0,3));
...
end mySurface;
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | nu | Number of points in u-Dimension | |
| Integer | nv | Number of points in v-Dimension | |
| Boolean | multiColoredSurface | false | = true: Color is defined for each surface point |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| SI.Position[nu,nv] | X | [nu,nv] positions of points in x-Direction resolved in surface frame | |
| SI.Position[nu,nv] | Y | [nu,nv] positions of points in y-Direction resolved in surface frame | |
| SI.Position[nu,nv] | Z | [nu,nv] positions of points in z-Direction resolved in surface frame | |
| Real[if multiColoredSurface then nu else 0,if multiColoredSurface then nv else 0,3] | C | [nu,nv,3] Color array, defining the color for each surface point |