jit.gl.mesh Generates GL geometry from existing data

The jit.gl.mesh object creates a geometric surface from a jit.matrix connected to the left-most inlet containing spatial coordinates. Additional geometry can be specified by attaching other jit.matrix objects to the other inlets, which correspond to (from left to right): vertex, texcoord, normal, color, specular, edgeflag, tangent, bitangent, and index data. The jit.gl.mesh object requires one argument: the name of a drawing context. A named drawing context is a named instance of a jit.window, jit.pwindow, or jit.matrix object that has an instance of the jit.gl.render object associated with it. This value may also be set via the OB3D drawto attribute.

GL Group

Attributes:
Name Type Description
auto_colors long Enables or disables the calculation of vertex colors (default = 0).
auto_normals long Enables or disables the calculation of normal directions used for calculating lighting (default = 1).
auto_tangents long Enables or disables the calculation of tangent directions (only available if texcoords and normals exist) (default = 0).
auto_bitangents long Enables or disables the calculation of bitangent (aka binormal) directions (only available if texcoords and normals exist) (default = 0).
cache_mode symbol The mode to use for the geometry cache. (default = var) Supported modes are:
none
var (vertex arrays)
vbo (vertex buffer objects)
color_mode symbol The mode to use for the calculating vertex colors. (default = none) Supported modes are:
index
position
vertex
normal
texcoord
edgeflag
tangent
bitangent
none
draw_mode symbol The mode to use for rendering the geometry. (default = tri_grid) Supported modes are:
points
point_sprite
lines
line_strip
line_loop
triangles
tri_strip
tri_fan
quads
quad_strip
polygon
tri_grid
quad_grid

Example:

See Also:
jit.gl.graph, jit.gl.gridshape, jit.gl.handle, jit.gl.isosurf, jit.gl.model, jit.gl.nurbs, jit.gl.plato, jit.gl.render, jit.gl.shader, jit.gl.sketch, jit.gl.slab, jit.gl.text2d, jit.gl.text3d, jit.gl.texture, jit.gl.videoplane, jit.gl.volume