Back to draw-VTK

# 'draw'-VTK interface:object cube

Once you have opened a Maxima session, load package draw and then set global variable draw_renderer to vtk:

load("draw") $draw_renderer: 'vtk$


Cube objects with different dimensions. Arguments for this object are: length, width, height, and center. This object needs further work to add an orientation argument. (Cube is also the name used by VTK for this object, although another one would be better.):

draw3d(
cube(3, 4, 5, [0, 0, 0]),
color = orange,
cube(1/2, 5, 3, [7, 0, 0]),
opacity = 0.5,
cube(5, 1/3, %pi, [5, 5, -4])) \$