Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Set Mesh Parameters Method (Not in Base Package)

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

Method of SceneMesh.

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.

Example

Parameters

NameDescription
Draw ModeSpecifies the mode LabVIEW uses to draw the mesh. The mode determines how LabVIEW interprets the data you wire to Vertex Array. This method accepts the following values:
  • Points
  • Lines
  • Line Strip
  • Line Loop
  • Triangles
  • Triangle Strip
  • Triangle Fan
  • Quads
  • Quad Strip
  • Polygon
Vertex ArraySets the x, y, and z values that define the array of vertices of the mesh.
IndicesDetermines 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.
Note  If you set Color Binding Mode to Per Primitive, then the color refers to the entire face formed by V0, V1...VN (where N is determined by Draw Mode) instead of just the specified index.
Color Binding ModeSpecifies the mode used to bind color to the mesh. The mode determines how LabVIEW assigns the color you specified in Color Array. Color Binding Mode accepts the following values.
  • Overall—One color binds uniformly to the entire mesh.
  • Per Primitive—Different colors bind to each primitive in the mesh.
  • Per Vertex—Different colors bind to each vertex of the mesh.
  • Binding Off—No colors bind to the mesh.
Note  The Per Primitive and Overall modes differ in behavior only when Draw Mode is set to Points, Lines, Triangles, or Quads.
Color ArraySpecifies the RGBA color value for the color that Color Binding Mode applies to the 3D object.
Normal Binding ModeSets 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. This method accepts the following values:
  • Overall
  • Per Primitive
  • Per Vertex
  • No Binding
Normal ArraySets the x, y, and z values that define the array of normals that Normal Binding Mode applies to the 3D object.
Texture Coordinate ArraySets 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.

Remarks

The following table lists the characteristics of this method.

Available in Run-Time Engine and Real-Time Operating SystemYes (Read/Write)
Settable when the VI is runningYes
Loads the front panel into memoryNo
Need to authenticate before useNo
Loads the block diagram into memoryNo
Remote access disallowedNo
Must wait until user interface is idleNo
Available with control VIsNo
Available with global VIsNo
Available with strict type definitionsNo
Available with polymorphic VIsNo

Example

Refer to the Using Meshes VI in the labview\examples\picture\3D Picture Control directory for an example of using the Set Mesh Parameters method.


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit