Class: Sphere

og/shape/BaseShape~Sphere

new Sphere(options)

Name Type Description
options Object Sphere parameters:
Name Type Default Description
position og.Vec3 optional Sphere position.
orientation og.Quat optional Sphere orientation(rotation).
scale og.Vec3 optional Scale vector.
color Array.<number, number, number, number> optional Sphere RGBA color.
src string optional Texture image url source.
visibility boolean optional Sphere visibility.
radius number 100 optional Sphere radius.
latBands number 16 optional Number of latitude bands.
lonBands number 16 optional Number of longitude bands.

Extends

  • og.shape.BaseShape

Members

protected_latBandsnumber

Number of latitude bands.

protected_lonBandsnumber

Number of longitude bands.

protected_radiusnumber

Sphere radius.

Methods

abstract,protected_createData()

Create specific shape vertices data.