15832144755
2022-01-06 7b4c8991dca9cf2a809a95e239d144697d3afb56
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import { queryToObject } from "../Source/Cesium.js";
import { RuntimeError } from "../Source/Cesium.js";
 
function BadGeometry() {
  this._workerName = "../../Specs/TestWorkers/createBadGeometry";
 
  // Make this worker loadable when testing against the built version of Cesium.
  if (
    typeof window !== "undefined" &&
    typeof window.location !== "undefined" &&
    typeof window.location.search !== "undefined"
  ) {
    var parameters = queryToObject(window.location.search.substring(1));
    if (parameters.built) {
      this._workerName = "../" + this._workerName;
    }
  }
}
 
BadGeometry.createGeometry = function () {
  //This function is only called when synchronous, see Specs/TestWorks/createBadGeometry for asynchronous.
  throw new RuntimeError("BadGeometry.createGeometry");
};
 
BadGeometry.packedLength = 0;
 
BadGeometry.pack = function () {};
 
BadGeometry.unpack = function () {
  return new BadGeometry();
};
export default BadGeometry;