Back to draw-VTK

# 'draw'-VTK interface:object cone

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

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


Transparent and opaque cones. Cones need the following arguments: center (midpoint of the height), radius, height, and direction. See that colors can be specified in hexadecimal RGB code or in English words. Also, as the rest of solid objects, cones are affected by the opacity option. As shown in this example, you can make use of the cap:

draw3d(
capping = true,
color   = "#abc80e",
cone([0,0,0],0.5,3,[0,2,1]),
color   = cyan,
capping = false,
opacity = 0.7,
cone([0,0,0],1,1,[0,-2,-1]))\$


© 2016, TecnoStats.