Back to draw-VTK

'draw'-VTK interface:
object cylindrical


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

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

To read the documentation on object cylindrical, write the following sentence:

describe(cylindrical) $

Surfaces in cylindrical coordinates:

draw3d(
  color        = blue,
  cylindrical(z,z,-2,2,az,0,2*%pi), /*cone*/
  color        = brown,
  cylindrical(3,z,-2,2,az,0,%pi),  /*cylinder*/
  color        = green,
  cylindrical(sqrt(25-z^2),z,-5,5,az,0,%pi) /*sphere*/ )$
cyl1

As above, but with transparencies:

draw3d(
  color        = blue,
  cylindrical(z,z,-2,2,az,0,2*%pi), /*cone*/
  color        = brown,
  cylindrical(3,z,-2,2,az,0,2*%pi),  /*cylinder*/
  color        = green,
  opacity = 0.2,
  cylindrical(sqrt(25-z^2),z,-5,5,az,0,2*%pi) /*sphere*/ )$
cyl2

Isolines on a spherical surface:

draw3d(
  enhanced3d = sin(a),
  isolines   = [x+z,x,y,z],
  palette    = gray,
  line_width = 2,
  cylindrical(z,z,-2,2,a,0,2*%pi) )$
cyl2

© 2011-2017, TecnoStats.