Back to draw-VTK

'draw'-VTK interface:
object spherical


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 spherical, write the following sentence:

describe(spherical) $

A nautilus defined in spherical coordinates. The first argument to object spherical is the radius, as a function of the zenith and azimuth angles:

draw3d(
    color = white,
    spherical(a+z,a,0,3*%pi,z,0,%pi)  ) $
sph1

Another example in spherical coordinates:

draw3d(
  axis_3d          = false,
  color            = salmon,
  background_color = cyan,
  xu_grid          = 100,
  yv_grid          = 100,
  color            = white,
  spherical(sin(z)*cos(2*a),a,0,2*%pi,z,0,%pi))$
sph2

Isolines on a spherical surface:

draw3d(
  enhanced3d = a-z,
  isolines   = [x,x,y,z],
  axis_3d    = false,
  line_width = 2,
  spherical(a+z,a,0,3*%pi,z,0,%pi))$
iso7

© 2011-2017, TecnoStats.