Back to draw-VTK

'draw'-VTK interface:
object cylinder


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

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

Cylinders are defined by center (midpoint of its height), radius, height, and direction vector:

draw3d(
  capping = true,
  color = red,
  cylinder([0,0,0],1,16,[1,0,0]),
  color = green,
  cylinder([0,0,0],1,16,[0,1,0]),
  color = blue,
  cylinder([0,0,0],1,16,[0,0,1]) )$
cylinder1

© 2016, TecnoStats.