plots
polyhedraplot
create a 3-D point plot with polyhedra
Calling Sequence
Parameters
Description
Examples
polyhedraplot(L, options)
L
-
set or list of three-dimensional points
The polyhedraplot function is used to create a three-dimensional plot of points with polyhedra. The points that are to be plotted come from the set or list L. L is in the form [[x1,y1,z1],[x2,y2,z2],...,[xn,yn,zn]]. If there is only one point, then it may be simply [x, y, z].
The two specific options to this function are polyscale = s, where s is a constant and polytype = t, where t is a name. The polyscale option controls the size of each polyhedron, and the polytype option is the type of polyhedron (for example, tetrahedron, octahedron, ...). For a complete set of polyhedra names that are supported, see plots[polyhedra_supported]. The default scale is 1, and the default type of polyhedron is tetrahedron.
Additional arguments are interpreted as plot3d options which are specified as equations of the form option = value. See plot3d/option for details.
To perform computations with polyhedra, use the commands from the geom3d package. Information on the types of polyhedra supported in the the geom3d package can be found on geom3d/polyhedra.
with⁡plots:
p≔seq⁡cos⁡t⁢π50⁢10+4⁢sin⁡9⁢t⁢π50,sin⁡t⁢π50⁢10+4⁢sin⁡9⁢t⁢π50,4⁢cos⁡9⁢t⁢π50,t=0..200:
polyhedraplot⁡p,polyscale=0.4,polytype=hexahedron,scaling=constrained,orientation=76,40
The command to create the plot from the Plotting Guide is
polyhedraplot⁡0,0,0,polytype=dodecahedron,scaling=constrained,orientation=71,66
See Also
plot3d/option
plots/polygonplot
plots/polyhedra_supported
Download Help Document