createCone method

  1. @override
Mesh createCone({
  1. required double radius,
  2. required double height,
  3. List<MeshBasicMaterial>? materials,
})
override

Creates and returns a cone mesh.

Implementation

@override
Mesh createCone(
    {required double radius,
    required double height,
    List<MeshBasicMaterial>? materials}) {
  final ConeGeometry geometry = ConeGeometry(radius, height, 32);

  return createObject(geometry, materials);
}