shell

The cylindrical shell at radius r of a revolution about y: as tall as the profile there, as thick as width:. Space only.

shellNode
Three cylindrical shells, at radii 0.5, 1 and 1.5, cut from the region under y = 2x² − x³ turned about the y axis.Three cylindrical shells, at radii 0.5, 1 and 1.5, cut from the region under y = 2x² − x³ turned about the y axis.

#Attributes

ofRequiredImplicit
The revolution about y it is cut from, by #id.
Can be written as shorthand: shell:value
rRequiredAnimatable
The shell's radius.
Also written: radius
widthAnimatable
How thick the shell is.
Default0
colourAnimatable
Its colour — red 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
Defaultred
opacityAnimatable
How solid it is, 0 to 1.
Default0.8
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 region under y = 2x² − x³ on [0, 2] turned about the y axis, with the cylindrical shell at radius 1 cut from it.The region under y = 2x² − x³ on [0, 2] turned about the y axis, with the cylindrical shell at radius 1 cut from it.
graph:xyz{
    revolution#cup(expression: 2x^2 - x^3; about: y; x: [0, 2]; opacity: 0.3)
    shell(of: #cup; r: 1; width: 0.1; colour: orange)
}(
    x domain: [-2, 2]
    y domain: [0, 2]
    z domain: [-2, 2]
    aspect: equal
)
A thick shell, 0.4 wide at radius 1.2, with its rims, cut from the solid under y = 2x² − x³ turned about the y axis.A thick shell, 0.4 wide at radius 1.2, with its rims, cut from the solid under y = 2x² − x³ turned about the y axis.
graph:xyz{
    revolution#cup(expression: 2x^2 - x^3; about: y; x: [0, 2]; opacity: 0.2)
    shell(of: #cup; r: 1.2; width: 0.4)
}(
    x domain: [-2, 2]
    y domain: [0, 2]
    z domain: [-2, 2]
    aspect: equal
)

Last updated