polyhedron
A solid with flat faces: the convex hull of its vertices, or one of the five regular solids by name.
polyhedronOnly with
xyzplane

#Attributes
xThe vertices' x coordinates, paired with
y and z by position.yThe vertices' y coordinates.
zThe vertices' z coordinates.
shapeWhich regular solid it is, by name.
tetrahedroncubeoctahedrondodecahedronicosahedronpolyhedron:valueatWhere a regular solid is centred, as
(x, y, z).Also written:
centre, centerradiusHow far a regular solid's vertices are from its centre.
Default
1meshThe hairline along every edge.
Default
truecolourThe solid's colour; faces are shaded in steps of it by how squarely they face the camera's light.
paintAlso written:
colorDefault
tealopacityHow solid it is.
Default
0.85labelWords drawn beside it, over everything.
hiddenDeclared but not drawn.
Default
falselockStops a reader editing it.
Also written:
lockedDefault
falselayerAccepted for parity with the flat marks; in space the paint order is depth.
groupThe comma-separated groups this mark belongs to, which set its colour and style from the graph's
key:.#Derived attributes
Computed while the element renders — read one with #id.name in attribute position or {{#id.name}} in prose, never set.
#Allowed in
#Examples


graph:xyz{
polyhedron(x: 0, 2, 0, 0; y: 0, 0, 2, 0; z: 0, 0, 0, 2)
}(
x domain: [0, 2]
y domain: [0, 2]
z domain: [0, 2]
aspect: equal
)

graph:xyz{
polyhedron:dodecahedron(at: (0, 0, 0); radius: 2; colour: orange)
}(
aspect: equal
)#Notes
- Vertices, one list per axis:
polyhedron(x: 0, 2, 0, 0; y: 0, 0, 2, 0; z: 0, 0, 0, 2). A regular solid by name:polyhedron:dodecahedron(at: (0, 0, 0); radius: 2). - Faces are shaded, and the ones turned away are hidden.
- It is drawn in the data's own units, so a regular solid looks regular only under
aspect: equal. - Space only (
graph:xyz).