generate 3-D plot object for a cone
cone(c, r, h, options)
vertex of the cone
(optional) radius of base circle of the cone; default is 1
(optional) height of the cone; default is 1
(optional) equations of the form option=value. For a complete list, see plot3d/option.
The cone command creates a three-dimensional plot data object, which when displayed is a cone of height h. The vertex of the cone is located at c. The base circle of the cone is centered at c + [0,0,h] and of radius r.
The plot data object produced by the cone command can be used in a PLOT3D data structure, or displayed using the plots[display] command.
Remaining arguments are interpreted as options, which are specified as equations of the form option = value. For more information, see plottools and plot3d/option.
An artificial ice-cream cone.
icecream ≔ cone⁡0,0,−2,0.7,2,color=Tan,sphere⁡0,0,0.2,0.75,color=Pink,style=patchnogrid:
Download Help Document