M3CylinderGeom class

A cylinder or cone geometry with configurable top and bottom radii.

Vertices are ordered from top to bottom, counter-clockwise by each row. Set topRadius to 0 for a cone shape.

Inheritance

Constructors

M3CylinderGeom(double topRadius, double bottomRadius, double height, {int radiusSegments = M3Geom.radialSegments, int heightSegments = 1, double creaseAngle = 40.0})

Properties

gl RenderingContext
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
localBounding M3Bounding
getter/setter pairinherited
name String
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
vertexCount int
no setterinherited

Methods

computeNormals(List<int> indices) → void
Computes vertex normals automatically based on triangle geometry.
inherited
dispose() → void
Releases all GPU resources associated with this geometry.
inherited
draw(M3Program prog, {bool bSolid = true}) → void
Renders the geometry using the specified shader program.
inherited
getTriangleCount({bool bSolid = true}) int
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