createBoxGeometry.js 918 B

123456789101112
  1. define(['./BoxGeometry-7eb1af60', './defaultValue-fe22d8c0', './Transforms-bc45e707', './Matrix3-41c58dde', './Check-6ede7e26', './Math-0a2ac845', './Matrix2-e1298525', './RuntimeError-ef395448', './combine-d9581036', './ComponentDatatype-cf1fa08e', './WebGLConstants-0b1ce7ba', './GeometryAttribute-a466e9c7', './GeometryAttributes-ad136444', './GeometryOffsetAttribute-9ad0019c', './VertexFormat-030f11ff'], (function (BoxGeometry, defaultValue, Transforms, Matrix3, Check, Math, Matrix2, RuntimeError, combine, ComponentDatatype, WebGLConstants, GeometryAttribute, GeometryAttributes, GeometryOffsetAttribute, VertexFormat) { 'use strict';
  2. function createBoxGeometry(boxGeometry, offset) {
  3. if (defaultValue.defined(offset)) {
  4. boxGeometry = BoxGeometry.BoxGeometry.unpack(boxGeometry, offset);
  5. }
  6. return BoxGeometry.BoxGeometry.createGeometry(boxGeometry);
  7. }
  8. return createBoxGeometry;
  9. }));