SphereGrid

class SphereGrid : Iterable<Vector3d>

Sample points on a sphere quasi-uniformly by choosing the midpoionts of the faces of a regular icosohedron. Subdivide faces of the icosohedron (and project back to the sphere) as needed to get the desired resolution.

Constructors

Link copied to clipboard
fun SphereGrid(subdivisions: Int)
Link copied to clipboard
fun SphereGrid()

Types

Link copied to clipboard
class Face(a: Vector3d, b: Vector3d, c: Vector3d)

Functions

Link copied to clipboard
open fun forEach(p0: Consumer<in Vector3d>)
Link copied to clipboard
open operator override fun iterator(): Iterator<Vector3d>
Link copied to clipboard
open fun spliterator(): Spliterator<Vector3d>
Link copied to clipboard
fun subdivide()
fun subdivide(times: Int)

Properties

Link copied to clipboard
var subdivisions: Int = 0