jit.gl.gridshape Generate simple geometric shapes as a connected grid

The jit.gl.gridshape object creates one of several simple shapes laid out on a connected grid (sphere, torus, cylinder, opencyclinder, cube, opencube, plane, circle). These shapes may be either rendered directly, or sent out the leftmost outlet as a matrix of values. The jit.gl.gridshape 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
dim int list[2] The dimensions of the grid (default = 20 20)
displaylist int Cache in displaylist flag (default = 0) This feature may be used to speed up rendering time by creating and storing a list of gl drawing commands on the graphics card. This will have no effect if matrixoutput turned on.
gridmode int Grid render mode (default = 0 (quadrilateral grid))
0 = quad_grid (quadrilateral grid)
1 = tri_grid (triangular grid)
rad_minor float The minor radius of a torus, if one is rendered or sent out as a matrix. (default = 0.25)
shape symbol The shape to be used (default = sphere) Supported shapes are:
sphere
torus
cylinder
opencyclinder
cube
opencube
plane
circle

Example:

See Also:
jit.gl.graph, jit.gl.handle, jit.gl.isosurf, jit.gl.mesh, 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