Chevron Down
Table of Contents
Chevron DownGetting Started
Chevron DownAPI Reference

IcoSphere

A scenegraph model node with an IcoSphereGeometry.

Usage

Create a white IcoSphere of radius 1.

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

Inheritance

IcoSphere extends ModelNode extends ScenegraphNode

Methods

constructor(gl : WebGLRenderingContext, 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.