Short Name: SetMeshParms
Requires: Full Development System
Class: SceneMesh Methods
To Use: Create a method.
Sets the parameters that describe the mesh. Use this method to define how LabVIEW renders the 3D object to which you apply the mesh. If you do not specify a value for a parameter of this method, LabVIEW uses the current value of the parameter.
Data type | Name | Required | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Draw Mode | No | Specifies the mode LabVIEW uses to draw the mesh. The mode determines how LabVIEW interprets the data you wire to Vertex Array.
| |||||||||||||||||||||
Vertex Array | No | Sets the x, y, and z values that define the array of vertices of the mesh. | |||||||||||||||||||||
Indices | No | Determines the order in which LabVIEW processes the data in each of the arrays of the mesh.
For example, if Indices is [3, 2, 4, 1], then V0 appears at index 3 in the Vertex Array, the color of V0 appears at index 3 in the Color Array, and so on.
| |||||||||||||||||||||
Color Binding Mode | No | Specifies the mode used to bind color to the mesh. The mode determines how LabVIEW assigns the color you specified in Color Array.
| |||||||||||||||||||||
Color Array | No | Specifies the RGBA color value for the color that Color Binding Mode applies to the 3D object. | |||||||||||||||||||||
Normal Binding Mode | No | Sets the binding mode for the normal vectors of the mesh. The mode determines how LabVIEW assigns the normals specified by Normal Array to the 3D object. Normals determine how lights in a 3D scene affect the rendering of a 3D object.
| |||||||||||||||||||||
Normal Array | No | Sets the x, y, and z values that define the array of normals that Normal Binding Mode applies to the 3D object. | |||||||||||||||||||||
Texture Coordinate Array | No | Sets the s and t coordinates that define how to apply a texture to the mesh. You must assign a texture to the mesh for this array to have meaning. Each element of the array is a coordinate in a 2-D plane of domain {0..1, 0..1}, where [0,0] is the bottom-left pixel of the image, and [1, 1] is the top-right pixel. |
The following table lists the characteristics of this method.
Data type | No return value |
Available in Run-Time Engine | Yes (Read/Write) |
Available in Real-Time Operating System | No |
Settable when the VI is running | Yes |
Loads the front panel into memory | No |
Need to authenticate before use | No |
Loads the block diagram into memory | No |
Remote access allowed | Yes |
Refer to the Using Meshes VI in the labview\examples\Graphics and Sound\3D Picture Control directory for an example of using the Set Mesh Parameters method.