revolution
The solid swept out by turning the region under y = f(x) about an axis.
revolutionOnly with
xyzplane![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&dpl=dpl_FnbJEo5G35bW1x8knVYhKdRonU2u)
![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&dpl=dpl_FnbJEo5G35bW1x8knVYhKdRonU2u)
#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.
xyDefault
xxThe interval of x the profile runs over.
Also written:
domaincolourThe solid's colour.
paintAlso written:
colorDefault
purpleopacityHow solid it is, 0 to 1.
Default
0.4labelWords drawn beside it, over everything.
hiddenDeclared but not drawn.
Default
falselockStops the reader editing it.
Also written:
lockedDefault
falselayerAccepted for parity with the flat marks; in space the paint order is depth.
groupThe groups this mark belongs to, comma-separated.
#Derived attributes
Computed while the element renders — read one with #id.name in attribute position or {{#id.name}} in prose, never set.
volumeThe solid's volume in cubic units of the box.
#Allowed in
#Examples


graph:xyz{
revolution#vase(expression: sqrt(x); inner: x / 2; x: [0, 4]; opacity: 0.5)
section(of: #vase; x: 2; thickness: 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&dpl=dpl_FnbJEo5G35bW1x8knVYhKdRonU2u)
![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&dpl=dpl_FnbJEo5G35bW1x8knVYhKdRonU2u)
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
)#Notes
- About x its cross-sections are discs, or washers with
inner:. - About y it is the solid the shell method cuts up: a
shellcuts one shell from it. - Space only (
graph:xyz).