revolution
The solid swept out by turning the region under y = f(x) about an axis. About x its cross-sections are discs, or washers with inner:; about y it is the solid the shell method cuts up. Space only.
revolution![The region under y = √x on [0, 4] turned about the x axis into a solid like a bell lying on its side.](/_next/image?url=%2Fmanual-figures%2Fhero-revolution.light.jpg&w=3840&q=90)
![The region under y = √x on [0, 4] turned about the x axis into a solid like a bell lying on its side.](/_next/image?url=%2Fmanual-figures%2Fhero-revolution.dark.jpg&w=3840&q=90)
#Attributes
expressionThe profile, y = f(x).
Also written:
f, outerCan be written as shorthand: revolution:valueinnerAn inner profile, which makes the cross-sections washers.
Also written:
gaboutThe axis it turns about.
xyenumDefault
xxThe interval of x the profile runs over.
Also written:
domaincolourIts colour — purple 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(…)colorDefault
purpleopacityHow solid it is, 0 to 1.
Default
0.4labelWords drawn beside it, over everything.
hiddenDeclared but not drawn — animatable, so
hidden: true !cue.to{false}(at: 2) is its reveal.Default
falselockA reader may not edit it.
Also written:
lockedDefault
falselayerAccepted for parity with the flat marks; in space the paint order is depth.
#Examples


graph:xyz{
revolution#vase(expression: sqrt(x); inner: x / 2; x: [0, 4]; opacity: 0.5)
section(of: #vase; x: 2; width: 0.15)
}(
x domain: [0, 4]
y domain: [-2, 2]
z domain: [-2, 2]
aspect: equal
)![The region under y = 2x² − x³ on [0, 2] turned about the y axis — the solid the shell method cuts up.](/_next/image?url=%2Fmanual-figures%2Fexample-revolution-2.light.jpg&w=3840&q=90)
![The region under y = 2x² − x³ on [0, 2] turned about the y axis — the solid the shell method cuts up.](/_next/image?url=%2Fmanual-figures%2Fexample-revolution-2.dark.jpg&w=3840&q=90)
graph:xyz{
revolution(expression: 2x^2 - x^3; about: y; x: [0, 2]; colour: blue)
}(
x domain: [-2, 2]
y domain: [0, 2]
z domain: [-2, 2]
aspect: equal
)