plottools
cone
generate 3-D plot object for a cone
Calling Sequence
Parameters
Description
Examples
Compatibility
cone(c, r, h, capopt, npopt, options)
c
-
vertex of the cone
r
(optional) radius of base circle of the cone; default is 1
h
(optional) height of the cone; default is 1
capopt
(optional) the keyword capped
npopt
(optional) an equation of the form numpoints=posint
options
(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.
By default, the cone does not have a disc covering the base. If you include the capped keyword, such a disc is added.
The cone returned is approximated by a number of polygons. In particular, the base circle is approximated by a regular polygon; the edges of this polygon are then connected to the vertex. The more edges, the better it approximates a circular cone; the fewer edges, the more efficiently Maple can manipulate the 3-D objects involved. The number of edges is determined as follows:
If the numpoints = n option is given, then the base is an n-gon.
Otherwise, if the grid = [n+1, m] is given, it is ignored, except that the base is taken to be an n-gon. This is because the plot structure used to be generated with plot3d, placing the n+1 points determined by the grid around the full base circle, leading to n segments in between.
If neither option is given, the base is a 100-gon.
Remaining arguments are interpreted as options, which are specified as equations of the form option = value. For more information, see plottools and plot3d/option.
with⁡plottools:
with⁡plots:
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:
display⁡icecream,scaling=constrained,orientation=45,70
This shows approximations to cones with a decreasing degree of faithfulness.
cones≔Array⁡seq⁡cone⁡0,0,0,numpoints=n,n=100,20,12,8,5:
display⁡cones,orientation=50,35,5
A cone with a triangle as the base, including a cap; that is, a tetrahedron.
tetra≔cone⁡0,0,0,1,sqrt⁡2,capped,numpoints=3:
display⁡tetra,scaling=constrained
The plottools:-cone command was updated in Maple 2024.
The capped and numpoints options were introduced in Maple 2024.
For more information on Maple 2024 changes, see Updates in Maple 2024.
See Also
plot/structure
plot3d/option
plots:-display
plottools:-pyramid
plottools:-sphere
plottools:-tetrahedron
Download Help Document