cesium
Version:
CesiumJS is a JavaScript library for creating 3D globes and 2D maps in a web browser without a plugin.
21 lines (18 loc) • 597 B
JavaScript
define([
'../Core/defined',
'../Core/Ellipsoid',
'../Core/WallOutlineGeometry'
], function(
defined,
Ellipsoid,
WallOutlineGeometry) {
'use strict';
function createWallOutlineGeometry(wallGeometry, offset) {
if (defined(offset)) {
wallGeometry = WallOutlineGeometry.unpack(wallGeometry, offset);
}
wallGeometry._ellipsoid = Ellipsoid.clone(wallGeometry._ellipsoid);
return WallOutlineGeometry.createGeometry(wallGeometry);
}
return createWallOutlineGeometry;
});