UNPKG

cesium

Version:

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

16 lines (14 loc) 375 B
define([ '../Core/BoxGeometry', '../Core/defined' ], function( BoxGeometry, defined) { 'use strict'; return function(boxGeometry, offset) { if (defined(offset)) { boxGeometry = BoxGeometry.unpack(boxGeometry, offset); } return BoxGeometry.createGeometry(boxGeometry); }; });