shell

The cylindrical shell at radius r of a revolution about y, as tall as the profile there.

shellNode
Only withxyzplane
On this page
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
thicknessAnimatable
How thick the shell is.
Default0
colourAnimatable
The shell's colour; faces are shaded in steps of it by how squarely they face the camera's light.
paint
Also written: color
Defaultred
opacityAnimatable
How solid it is.
Default0.8
label
Words drawn beside it, over everything.
hiddenAnimatable
Declared but not drawn.
Defaultfalse
lock
Stops a reader editing it.
Also written: locked
Defaultfalse
layerAnimatable
Accepted for parity with the flat marks; in space the paint order is depth.
group
The 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.

volumeDerived
The volume between the shell's two walls, in cubic units of the box; a dash with no thickness:, outside the revolution's span, or where the profile does not resolve.

#Allowed in

#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; thickness: 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; thickness: 0.4)
}(
    x domain: [-2, 2]
    y domain: [0, 2]
    z domain: [-2, 2]
    aspect: equal
)

#Notes

  • Space only (graph:xyz).

Last updated