createCylinderMeshDataFromArc

Util.createCylinderMeshDataFromArc()
createCylinderMeshDataFromArc(arc: number[], axisDirection: Point3, numSegments: number, scale: number): MeshData

Creates a cylinder that is deformed by an arc. An example of the resulting geometry can be observed in the Handles implementation.

Parameters

arc: number[]

an array of numbers describing points on an arc that will be used to deform the cylinder

axisDirection: Point3

cylinder axis.

numSegments: number

the number of segments to use when constructing the cylinder. A higher number will give a smoother appearance but consume more memory.

scale: number

a scaling factor to apply to the geometry.

Returns: MeshData