A static class SurfaceData.
More...
Classes | |
| struct | VertexData |
| VertexData struct. More... | |
Static Public Member Functions | |
| static VertexData | GetBuiltinData () |
| This method is used to create surface data. More... | |
| static VertexData | CreateData (Func< float, float, Vector3 > f, float XMin, float XMax, float ZMin, float ZMax) |
| This method generates the surface data. More... | |
| static void | RotateObject (Transform transform) |
| this method is used to rotate the game object. More... | |
Static Public Attributes | |
| static ColormapEnum | ColormapName = ColormapEnum.jet |
| select colormap from the ColormapEnum enumeration. More... | |
| static MathFunctionEnum | BuiltinFunctionEnum = MathFunctionEnum.Sinc |
| select a built-in math function from the MathFunctionEnum enumeration. More... | |
| static List< float > | Parameters = new List<float>() |
| parameters used to create the math function. More... | |
| static bool | ColormapReverse = false |
| whether or not reverse the colormap. More... | |
| static bool | UseCustomColormap = false |
| whether use the built-in colormaps or custom colormap | |
| static Gradient | CustomColormap = new Gradient() |
| Specify a custom colormap | |
| static float | Scale = 1f |
| Scale used to set the default surface size | |
| static float | Aspect = 1f |
| Set aspect ratio for the surface | |
| static int | XSegments = 101 |
| XSegments, divisions along the x direction | |
| static int | ZSegments = 101 |
| ZSegments, divisions along the z direction | |
| static bool | IsAnimation = false |
| IsAnimation: whether perform animation or not | |
A static class SurfaceData.
It contains methods to generate the vertex, colormap, uvs, and triangle (or index) data data for a 3D surface.
|
static |
This method generates the surface data.
It creates vertex, colormap, uv coordinate, and triangle (or index) data for a 3D surface described by a math function provided by the user.
| f | a math function used to describe a simple 3D surface. |
| XMin | the minimum value of the x data range. |
| XMax | the maximum value of the x data range. |
| ZMin | the minimum value of the z data range. |
| ZMax | the maximum value of the z data range. |
|
static |
This method is used to create surface data.
It creates the vertex, colormap, uv coordinate, and triangle (or index) data for a 3D surface described by a built-in math function selected using MathFunctionEnum.
|
static |
this method is used to rotate the game object.
| transform | this is the tranform attached to the game object. |
|
static |
select a built-in math function from the MathFunctionEnum enumeration.
|
static |
select colormap from the ColormapEnum enumeration.
|
static |
whether or not reverse the colormap.
|
static |
parameters used to create the math function.