Chevron Down
Table of Contents
Chevron DownGetting Started
Chevron DownAPI Reference

IcoSphere

Creates a sphere geometry by subdividing an Icosahedron.

The generated geometry will have indices and POSITION, NORMAL and TEXCOORD_0 attributes.

Usage

Create an IcoSphere of radius 1

import {IcoSphere} from '@luma.gl/core';
const sphere = new IcoSphere({
  iterations: 1
});

Inheritance

IcoSphereGeometry extends Geometry

Methods

constructor(props : Object)

The constructor for the IcoSphere class. Use this to create a new IcoSphere.

  • props.iterations=0 - (number) The number of iterations used to subdivide the Icosahedron.