- General
# [anything ...] a comment
o [name] begin/end object context
xf [xform] begin/end transformation context
i pathname [xform] include file (with transformation)
ies pathname [-m f][xform] include IES luminaire (with transformation)
- Color
c [id [= [template]]] get/set color context
cxy x y set CIE (x,y) chromaticity for current color
cspec l_min l_max v1 v2 ... set relative spectrum for current color
cct temperature set spectrum based on black body temperature
cmix w1 c1 w2 c2 ... mix named colors to make current color
- Material
m [id [= [template]]] get/set material context
sides {1|2} set number of sides for current material
rd rho_d set diffuse reflectance for current material
td tau_d set diffuse transmittance for current material
ed epsilon_d set diffuse emittance for current material
rs rho_s alpha_r set specular reflectance for current material
ts tau_s alpha_t set specular transmittance for current material
ir n_real n_imag set index of refraction for current material
- Vertex
v [id [= [template]]] get/set vertex context
p x y z set point position for current vertex
n dx dy dz set surface normal for current vertex
- Geometry
f v1 v2 v3 ... polygon using current material, spec. vertices
sph vc radius sphere
cyl v1 radius v2 truncated right cylinder (open-ended)
cone v1 rad1 v2 rad2 truncated right cone (open-ended)
prism v1 v2 v3 ... length truncated right prism (closed solid)
ring vc rmin rmax circular ring with inner and outer radii
torus vc rmin rmax circular torus with inner and outer radii