Draw Mode Property

FlexRIO Help

Edition Date: November 2015

Part Number: 372614J-01

»View Product Info

»Download the Help in ZIP Format

Short Name: DrawMode

Requires: Full Development System

Class: SceneMesh Properties

To Use: Create a property.

Returns the mode used to draw the mesh.

Values

0Points—LabVIEW draws a point at each of the n vertices.
1Lines—LabVIEW draws the mesh as a series of unconnected line segments. A line connects vertices 0 and 1, a second line connects vertices 2 and 3, and so on.
2Line Strip—LabVIEW draws the mesh as a series of connected lines. The line between vertices 0 and 1 connects to the line between vertices 1 and 2, and so on.
3Line Loop—Similar to Line Strip, LabVIEW draws the mesh as a series of connected lines, but connects the final vertex back to the original vertex, completing a loop.
4Triangles—LabVIEW draws the mesh using a series of triangles with points defined by groups of three vertices. The first triangle connects vertices 0, 1, and 2, the second triangle connects vertices 3, 4, and 5, and so on. If the total number of vertices in the mesh is not a multiple of 3, LabVIEW ignores the final one or two vertices.
5Triangle Strip—LabVIEW draws the mesh using a series of conjoined triangles that form part of a surface. The first triangle connects vertices 0, 1, and 2, the second triangle connects vertices 2, 1, and 3, and so on. The ordering preserves the orientation of the triangles.
6Triangle Fan—Similar to Triangle Strip, LabVIEW draws the mesh using a series of conjoined triangles, but with a different ordering of the mesh's vertices. The first triangle connects vertices 0, 1, and 2, the second triangle connects vertices 0, 2, and 3, and so on to create a fan shape.
7Quads—LabVIEW draws the mesh using a series of quadrilaterals. The first quad connects vertices 0, 1, 2, and 3, the second quad connects vertices 4, 5, 6, and 7, and so on. If the total number of vertices is not a multiple of 4, LabVIEW ignores the final one, two, or three vertices.
8Quad Strip—LabVIEW draws the mesh using a series of conjoined quadrilaterals. The first quad connects vertices 0, 1, 3, and 2, the second quad connects vertices 2, 3, 5, and 4, and so on. If the total number of vertices is odd, LabVIEW ignores the final vertex.
9Polygon—LabVIEW draws the mesh as a polygon, connecting all vertices in the mesh and filling the space between them. To use this draw mode, the polygon must be convex and must not intersect itself at any point.

Remarks

The following table lists the characteristics of this property.

Data type
PermissionsRead Only
Available in Run-Time EngineYes
Available in Real-Time Operating SystemNo
Settable when the VI is runningNo
Loads the front panel into memoryNo
Need to authenticate before useNo
Loads the block diagram into memoryNo
Remote access allowedYes

WAS THIS ARTICLE HELPFUL?

Not Helpful