ConeMesh constructor

ConeMesh({
  1. required double radius,
  2. required double height,
  3. required Material material,
  4. int segments = 32,
})

Creates a conical mesh with a circular base of radius radius on the x-z plane and a height of height pointing upwards parallel to the y-axis.

You can optionally specify the number of segments used for the triangulation (the higher, the more "high-res" the cone will be).