API

David Paul Rosser edited this page Jul 27, 2013 · 6 revisions
Clone this wiki locally

Configuration

For the full list of global configurable variables click here.

Shapes

Triangle

  • side-length Default: 50px
  • angle Default: 60
  • translate-x Default: 0
  • translate-y Default: 0
  • translate-z Default: 0
  • rotate-x Default: 0deg
  • rotate-y Default: 0deg
  • rotate-z Default: 0deg
  • color Default: material-color
.mesh .face
    triangle()

Rectangle

  • width Default: 50px
  • height Default: 50px
  • translate-x Default: 0
  • translate-y Default: 0
  • translate-z Default: 0
  • rotate-x Default: 0deg
  • rotate-y Default: 0deg
  • rotate-z Default: 0deg
  • color Default: material-color
.mesh .face
    rectangle()

Pentagon

  • radius Default: 50px
  • translate-x Default: 0
  • translate-y Default: 0
  • translate-z Default: 0
  • rotate-x Default: 0deg
  • rotate-y Default: 0deg
  • rotate-z Default: 0deg
  • color Default: material-color
.mesh .face
    pentagon()

Line

  • length Default: 100px
  • depth Default: 2px
  • translate-x Default: 0
  • translate-y Default: 0
  • translate-z Default: 0
  • rotate-x Default: 0deg
  • rotate-y Default: 0deg
  • rotate-z Default: 0deg
  • color Default: material-color
.mesh.line
    line()

Particles

  • radius Default: particle-size
  • translate-x Default: 0
  • translate-y Default: 0
  • translate-z Default: 0
  • rotate-x Default: 0deg
  • rotate-y Default: 0deg
  • rotate-z Default: 0deg
  • color Default: particle-color
  • instance Default: false
  • particle-id Default: 0
.mesh.particle
    particle()

Primitives

Plane

  • width Default: 50px
  • height Default: 50px
  • translate-x Default: 0
  • translate-y Default: 0
  • translate-z Default: 0
  • rotate-x Default: 0deg
  • rotate-y Default: 0deg
  • rotate-z Default: 0deg
  • color Default: material-color
  • instance Default: false
  • mesh-id Default: 0
.mesh.plane
    plane()

Cube

  • width Default: 50px
  • height Default: 50px
  • depth Default: 50px
  • translate-x Default: 0
  • translate-y Default: 0
  • translate-z Default: 0
  • rotate-x Default: 0deg
  • rotate-y Default: 0deg
  • rotate-z Default: 0deg
  • color Default: material-color
  • instance Default: false
  • mesh-id Default: 0
.mesh.cube
    cube()

Pyramid

  • radius Default: 200px
  • translate-x Default: 0
  • translate-y Default: 0
  • translate-z Default: 0
  • rotate-x Default: 0deg
  • rotate-y Default: 0deg
  • rotate-z Default: 0deg
  • color Default: material-color
  • instance Default: false
  • mesh-id Default: 0
.mesh.pyramid
    pyramid()

Platonic solids

Dodecahedron

  • radius Default: 100px
  • translate-x Default: 0
  • translate-y Default: 0
  • translate-z Default: 0
  • rotate-x Default: 0deg
  • rotate-y Default: 0deg
  • rotate-z Default: 0deg
  • color Default: material-color
  • instance Default: false
  • mesh-id Default: 0
.mesh.dodecahedron
    dodecahedron()

Icosahedron

  • radius Default: 100px
  • translate-x Default: 0
  • translate-y Default: 0
  • translate-z Default: 0
  • rotate-x Default: 0deg
  • rotate-y Default: 0deg
  • rotate-z Default: 0deg
  • color Default: material-color
  • instance Default: false
  • mesh-id Default: 0
.mesh.icosahedron
    icosahedron()

Octahedron

  • radius Default: 200px
  • translate-x Default: 0
  • translate-y Default: 0
  • translate-z Default: 0
  • rotate-x Default: 0deg
  • rotate-y Default: 0deg
  • rotate-z Default: 0deg
  • color Default: material-color
  • instance Default: false
  • mesh-id Default: 0
.mesh.octahedron
    octahedron()

Tetrahedron

  • radius Default: 100px
  • translate-x Default: 0
  • translate-y Default: 0
  • translate-z Default: 0
  • rotate-x Default: 0deg
  • rotate-y Default: 0deg
  • rotate-z Default: 0deg
  • color Default: material-color
  • instance Default: false
  • mesh-id Default: 0
.mesh.tetrahedron
    tetrahedron()

UI components

Grid

  • width Default: grid-width
  • height Default: grid-height
  • tile-size Default: grid-tile-size
  • wire-color Default: grid-wire-color
  • wire-width Default: grid-wire-width
  • translate-x Default: 0
  • translate-y Default: 0
  • translate-z Default: 0
  • rotate-x Default: 0deg
  • rotate-y Default: 0deg
  • rotate-z Default: 0deg
  • component-id Default: 0
.ui-component.grid
    grid()

Display Axis

  • axis-line-width Default: display-axis-line-width
  • axis-line-height Default: display-axis-line-height
  • translate-x Default: 0
  • translate-y Default: 0
  • translate-z Default: 0
  • rotate-x Default: 0deg
  • rotate-y Default: 0deg
  • rotate-z Default: 0deg
  • component-id Default: 0
.ui-component.display-axis
    display-axis()

Extras

Sierpinski Sponge

  • iterations Default: 1
  • size Default: 300px
  • grid Default: 3
  • holes Default: (4 10 12 13 14 16 22)
  • translate-x Default: 0
  • translate-y Default: 0
  • translate-z Default: 0
  • rotate-x Default: 0deg
  • rotate-y Default: 0deg
  • rotate-z Default: 0deg
  • color Default: material-color
  • group-id Default: 0
.group.sierpinski-sponge
    sierpinski-sponge()