Expand description
A capped circular cylinder, built two different ways: revolved_cylinder
(via [revolve_at], an exact circular cross-section) and
extruded_cylinder (via extrude, an n-gon approximating one).
Enums§
- Axis
- Which axis a cylinder’s own axis runs parallel to.
Functions§
- extruded_
cylinder - A capped cylinder of
radiusandheight, with its axis parallel to the z-axis throughbase_center, as a regularsegments-gon prism approximating a circular cross-section, swept viaextrude. - revolved_
cylinder - A capped cylinder of
radiusandheight, with its axis parallel to the z-axis throughbase_center(the center of its bottom cap — the solid spansz in [base_center.z, base_center.z + height]), as an exact circular cross-section swept viarevolve_at. - revolved_
cylinder_ along_ axis - Like
revolved_cylinder, but with its axis parallel toaxisinstead of always z —base_centeris still the center of the bottom cap (the cap nearer the origin alongaxis’s own positive direction), so the solid spans[0, height]alongaxisfrom there.