cone

fun cone(base: Shape2d, height: Double): Shape3d

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)