Class CappedCylinderGenerator
Generate a Cylinder with caps. Supports sections of cylinder as well (eg wedges).
Curently UV islands are overlapping for different mesh components, if NoSharedVertices
Positioned along Y axis such that base-center is at Origin, and top is at Y=Height
You get a cone unless BaseRadius = TopRadius
No subdivisions along top/base rings or height steps.
cylinder triangles have groupid = 1, top cap = 2, bottom cap = 3, wedge faces 5 and 6
Inheritance
CappedCylinderGenerator
Namespace: g3
Assembly: cs.temp.dll.dll
Syntax
public class CappedCylinderGenerator : MeshGenerator
Fields
BaseRadius
Declaration
Field Value
EndAngleDeg
Declaration
Field Value
Height
Declaration
Field Value
NoSharedVertices
Declaration
public bool NoSharedVertices
Field Value
Slices
Declaration
Field Value
StartAngleDeg
Declaration
public float StartAngleDeg
Field Value
TopRadius
Declaration
Field Value
Methods
Generate()
Declaration
public override MeshGenerator Generate()
Returns
Overrides