UNPKG

cesium

Version:

CesiumJS is a JavaScript library for creating 3D globes and 2D maps in a web browser without a plugin.

11 lines (9 loc) 381 B
import defined from '../Core/defined.js'; import SphereGeometry from '../Core/SphereGeometry.js'; function createSphereGeometry(sphereGeometry, offset) { if (defined(offset)) { sphereGeometry = SphereGeometry.unpack(sphereGeometry, offset); } return SphereGeometry.createGeometry(sphereGeometry); } export default createSphereGeometry;