A newer version of Max is available. Click here to access the latest version of the documentation

jit.gl.plato Reference

Generate platonic solids

jit.gl.plato

Description

Produces one of five platonic solids: tetrahedron, cube, octahedron, dodecahedron, or icosahedron.

Examples

Discussion

The jit.gl.plato 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. Additionally it can reference the name of a jit.gl.node sub-context. This value may also be set via the OB3D drawto attribute. If no argument is present, the object is implicitly added to the first valid drawing context or sub-context found in the current patch or by searching up the patcher hierarchy.

The shape attribute selects which of the five platonic solids are drawn: tetrahedron, cube, octahedron, dodecahedron, or icosahedron. As with most objects in the OB3D group, setting matrixoutput to 1 enables drawing via messages out the object's left outlet.

Attributes

shape [int]

The Platonic solid to be drawn (default = 1 (tetrahedron)) The solid may by specified by name. The allowable names are tetrahedron, cube, octahedron, dodecahedron, or icosahedron.

The solid may alternately be specified by number:
1 = tetrahedron
2 = cube
3 = octahedron
4 = dodecahedron
5 = icosahedron



Possible values:

0 = 'none'
1 = 'tetra'
2 = 'hexa'
3 = 'octa'
4 = 'dodeca'
5 = 'icosa'

Common Box Attributes

OB3D Attributes

Messages

(drag)

Drag and drop a Jitter material file

OB3D Messages

See Also

Name Description
Working with OpenGL Working with OpenGL
jit.gl.graph
jit.gl.gridshape
jit.gl.handle
jit.gl.isosurf
jit.gl.mesh
jit.gl.model
jit.gl.nurbs
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
Tutorial 34: Using Textures Tutorial 34: Using Textures