beta
cables is under heavy development.
There might be one or another bug, please let us know about it!

TriangleArrayToGeometry_v2 Op



TriangleArrayToGeometry

Op author: pandur

Test Patches: 1 Test

Draws multiple triangles using coordinates from an array


Array length should be a multiple of 9.

Format for one triangle is:

x1, y1, z1, x2, y2, z2, x3, y3, z3


Inputs

Render (Trigger)

Renders the triangles

Points (Array)

The points forming the triangles, one dimensional array

Vertex Colors (Array)
TexCoords (Array)
Flat (boolean /Number)
Render Mesh (boolean /Number)

Outputs

Next (Trigger)

Triggers the next op

Geometry (Object)

The geometry of the triangles


Caught a mistake or want to contribute to the documentation?

Edit Documentation 

Patches using TriangleArrayToGeometry_v2

  • Examples
  • Public
  • My Patches

Changelog


add vertexcolors/texturecoordinates and render-mesh boolean
2022-06-30 - stephan
add option to have vertex indices and flat mode
2022-07-07 - stephan
bugfixfix bug with not updating in some cases
2022-12-14 - pandur
renameOps.Gl.Meshes.TriangleArray_v2 renamed to Ops.Graphics.Geometry.TriangleArray_v2
2023-06-05 - pandur
renameOps.Graphics.Geometry.TriangleArray_v2 renamed to Ops.Graphics.Geometry.TriangleArrayToGeometry
2023-06-05 - pandur
renameOps.Graphics.Geometry.TriangleArrayToGeometry renamed to Ops.Graphics.Geometry.TriangleArrayToGeometry_v2
2023-06-05 - pandur