Companion
object Companion
Functions
Link copied to clipboard
An extrusion which tapers to a point. A similar effect can be achieved by using Shape2d.extrude using a scale of 0. However, this is slightly different, because the apex will always be on the Z axis.
An extrusion which tapers to a point. A similar effect can be achieved by using Shape2d.extrude and using a scale of 0. However, the apex can be offset anywhere you like, it doesn't have to be in the center of the shape.
A convenient version of cone (Shape2d,Vector3)
Link copied to clipboard
Link copied to clipboard
Extrude crossSection, but instead of it heading straight up the Z axis, it follows the curve shape. Equivalent to :
Link copied to clipboard
fun thread(profile: Shape2d, length: Double, radius: Double, pitch: Double, sides: Double): Polyhedron
fun thread(profile: Shape2d, length: Double, radius: Double, pitch: Double, sides: Double, leadInAngle: Double, leadOutAngle: Double): Polyhedron
Creates a thread shape. Wrap it around a cylinder to form a bolt.