generateConeCylinderMeshData
-
Util.generateConeCylinderMeshData() - generateConeCylinderMeshData(cylinderRadius: number, numSegments: number, stemHeight: number, coneBaseRadius: number, capHeight: number, taperHeight: number):
MeshDataCreates a cylinder with an attached cone. An example of the resulting geometry can be observed in the default Axis Triad or Handles implementation.
Parameters
cylinderRadius: number
the radius of the cylinder portion of the geometry.numSegments: number
the number of segments used to create the cylinder and cone portions. Increasing this number will result in a smoother appearance but consume more memory.stemHeight: number
the height of the cone portion.coneBaseRadius: number
the radius of the cone portioncapHeight: number
the height of the cylinder captaperHeight: number
the height of the taper.Returns:
MeshData