solid

The solid between a surface and a floor over a region: its top is the surface over the region, its walls stand on the region's edge, and its floor is the region itself. The region is written as the bounds of the iterated integral it is: x: [0, 2]; y: [0, 1 - x], the other order y: [0, 1]; x: [0, y], or polar theta: [0, 2pi]; r: [0, 2]. Space only.

solidNode
The solid under the dome z = 4 − x² − y² over the quarter disc of radius 1.8, its curved top, flat floor and walls.The solid under the dome z = 4 − x² − y² over the quarter disc of radius 1.8, its curved top, flat floor and walls.

#Attributes

ofRequiredImplicitAnimatable
The surface it stands under: z = f(x, y) written out, or #id naming a surface in the same graph.
surface-of
Also written: underCan be written as shorthand: solid:value
aboveAnimatable
The floor: a second surface, or a height. z = 0 when not given.
surface-of
Also written: over, floor
xAnimatable
The bounds of x, e.g. [0, 2], or [0, y] when x is the inner variable.
region-bound
yAnimatable
The bounds of y, e.g. [0, 1 - x] — the inner bound may read the outer variable.
region-bound
thetaAnimatable
In the polar form, the outer bound: the angles the region turns through, e.g. [0, 2pi].
region-bound
rAnimatable
In the polar form, the inner bound: the radii at each angle, e.g. [0, 2 cos(theta)].
region-bound
colourAnimatable
Its colour — blue when not given. Faces are shaded in steps of the hue by how squarely they face a light fixed to the camera.
bluelight-bluedark-blueredlight-reddark-redorangelight-orangedark-orangeyellowlight-yellowdark-yellowteallight-tealdark-tealgreenlight-greendark-greenpinklight-pinkdark-pinkpurplelight-purpledark-purplegreylight-greydark-greyneutralhex(…)rgb(…)
Also written: color
Defaultblue
opacityAnimatable
How solid it is, 0 to 1.
Default0.4
label
Words drawn beside it, over everything.
hiddenAnimatable
Declared but not drawn — animatable, so hidden: true !cue.to{false}(at: 2) is its reveal.
Defaultfalse
lock
A reader may not edit it.
Also written: locked
Defaultfalse
layerAnimatable
Accepted for parity with the flat marks; in space the paint order is depth.

#Examples

The solid under the plane z = 4 − x − y over the triangle 0 ≤ x ≤ 2, 0 ≤ y ≤ 2 − x.The solid under the plane z = 4 − x − y over the triangle 0 ≤ x ≤ 2, 0 ≤ y ≤ 2 − x.
graph:xyz{
    solid(of: 4 - x - y; x: [0, 2]; y: [0, 2 - x])
}(
    x domain: [0, 2]
    y domain: [0, 2]
    z domain: [0, 4]
)
The solid under the bell z = 3e^(−(x² + y²)/2) over the disc of radius 1.5, written in polar bounds.The solid under the bell z = 3e^(−(x² + y²)/2) over the disc of radius 1.5, written in polar bounds.
graph:xyz{
    solid(of: 3 * e^(-(x^2 + y^2) / 2); theta: [0, 2pi]; r: [0, 1.5]; colour: purple; opacity: 0.8)
}(
    x domain: [-2, 2]
    y domain: [-2, 2]
    z domain: [0, 3]
)

Last updated