SphereGeometry constructor

SphereGeometry({
  1. double radius = 0.5,
  2. int segments = 32,
  3. int rings = 16,
})

Builds a sphere of the given radius and tessellation.

Implementation

factory SphereGeometry({
  double radius = 0.5,
  int segments = 32,
  int rings = 16,
}) {
  return SphereGeometry._(
    buildSphereArrays(radius: radius, segments: segments, rings: rings),
  );
}