CylinderShape class final

Cylinder or truncated cone, centred on the origin, axis along Y.

Caps are part of the profile rather than separate meshes, so the rim stays a single watertight surface, and the repeated rim points give it a hard edge.

Inheritance

Constructors

CylinderShape({double radiusTop = 0.5, double radiusBottom = 0.5, double height = 1.0, int segments = 32, bool capped = true})
const

Properties

capped → bool
final
delegate → Shape
The shape this one reduces to.
no setteroverride
hashCode → int
The hash code for this object.
no setterinherited
height → double
final
name → String
Name for diagnostics and UI labels.
no setteroverride
radiusBottom → double
final
radiusTop → double
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
segments → int
final

Methods

build({VertexLayout layout = VertexLayout.standard}) → MeshData
Generates the geometry for the requested layout.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited