@ohif/app 3.13.0-beta.35 → 3.13.0-beta.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{147.bundle.9c245011849e09bd7904.js → 147.bundle.f71d384c49f50e23f795.js} +15 -40
- package/dist/{1608.bundle.417884758328a1fc04a9.js → 1608.bundle.c10d9aef452fe5a86d77.js} +2 -2
- package/dist/{1933.bundle.19f83b2c7881912dcc34.js → 1933.bundle.0aba0ce3d97d32bd3ca5.js} +2 -2
- package/dist/{2701.bundle.2cfa58ae04427d4c897d.js → 2701.bundle.28b3ca0e6ae5a13f78b3.js} +2 -2
- package/dist/{3138.bundle.4e151e0dbd74a8265f42.js → 3138.bundle.a377f868158dec8efdb0.js} +2 -2
- package/dist/{4202.bundle.9dc6af971a47981d2a5e.js → 4202.bundle.f11f02596e30a22d1105.js} +1 -1
- package/dist/{4287.bundle.d2d09ffd5cd8680fad8d.js → 4287.bundle.b7840e7b94cbbc102236.js} +3 -3
- package/dist/{4688.bundle.add6a6c6bb72fcd35ee3.js → 4688.bundle.324f320f177fe7f70db8.js} +130 -120
- package/dist/{4819.bundle.1ff04ae518bab5e59dc6.js → 4819.bundle.5aa5ed42843908dbb820.js} +4 -4
- package/dist/{5015.bundle.a35182426b6b4d2d1fe4.js → 5015.bundle.4f91f03ea8084a82657b.js} +2 -2
- package/dist/{5802.bundle.70d423c8b488cc56cc36.js → 5802.bundle.a3a398ddaac222cf08f7.js} +2 -2
- package/dist/{581.bundle.b70e5d2d0f3958df69f0.js → 581.bundle.f48ce2a0f0dae080154c.js} +7 -6
- package/dist/{6354.bundle.d8a592b03e9a5b7a66c2.js → 6354.bundle.929febcf6d326e582e00.js} +50 -45
- package/dist/{6386.bundle.c0618e49b65769ddf752.js → 6386.bundle.e75a2f70039dfe42f935.js} +11 -3
- package/dist/{7537.bundle.1a18959ceec98634bc48.js → 7537.bundle.b784154ebd4c85946642.js} +758 -679
- package/dist/{8305.bundle.7e577ab4f21ac44d355e.js → 8305.bundle.371dde3415de88db3f43.js} +2 -2
- package/dist/{8583.bundle.47394b6ef65ff3a4190c.js → 8583.bundle.f6c226c9fa6de90f2bcb.js} +2 -2
- package/dist/{6280.bundle.081861b7e685b28616c8.js → 9039.bundle.fd54c15934103ff3fd3b.js} +1470 -1259
- package/dist/{9195.bundle.a38804074672c87ad1ec.js → 9195.bundle.afd5483195e12e5cef8e.js} +8 -8
- package/dist/{9205.bundle.09c52845b43bd8513d50.js → 9205.bundle.7c4a29705386dcefd999.js} +1602 -1347
- package/dist/{933.bundle.ea9db108b8a4e3d51904.js → 9567.bundle.be350438bed4e656f278.js} +2690 -193
- package/dist/{9845.bundle.fe6930acb204e2fd8323.js → 9845.bundle.36b3563ae1dba65b6b9a.js} +2 -2
- package/dist/{9862.bundle.47e7574a486c30ab0dfd.js → 9862.bundle.f59f3a574a92024c8823.js} +1 -1
- package/dist/{app.bundle.3e902f3aba87f5fdaca0.js → app.bundle.6c3daf11c7fbd7e48175.js} +970 -811
- package/dist/app.bundle.css +1 -1
- package/dist/{compute.bundle.6016de6e5f7c25749422.js → compute.bundle.47da6b38c64751bdb9c4.js} +1 -1
- package/dist/{histogram-worker.bundle.5b679ce4142c803c80a4.js → histogram-worker.bundle.a2a50c4674d99c619ca7.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/{interpolation.bundle.072a28b303f2dbafe05c.js → interpolation.bundle.53073c15cca1c5a41ae4.js} +1 -1
- package/dist/{polySeg.bundle.cdcc2c3d11009ccf112c.js → polySeg.bundle.8954fb59f99daeb3f0b0.js} +3 -3
- package/dist/sw.js +1 -1
- package/package.json +21 -21
- /package/dist/{1459.bundle.062605b72ad894597c40.js → 1459.bundle.4aef0d934c3a12aa66bb.js} +0 -0
- /package/dist/{2018.bundle.d8cf3001bae55516d13a.js → 2018.bundle.896e322e7c39599383f7.js} +0 -0
- /package/dist/{2075.bundle.16215ba94d714a1c905f.js → 2075.bundle.0e69a126a39539ff8e9a.js} +0 -0
- /package/dist/{213.bundle.5527b63c734814bca27c.js → 213.bundle.9a4de523c0842d7bd7fd.js} +0 -0
- /package/dist/{2424.bundle.7cf905346cf856a74d18.js → 2424.bundle.6a9ca8e7e84f5528c8d1.js} +0 -0
- /package/dist/{3461.bundle.19921563b1d9ee7c4599.js → 3461.bundle.b6304f280d7dc0ade73a.js} +0 -0
- /package/dist/{4507.bundle.816349fd19d1f7feb8cc.js → 4507.bundle.67c73fab897aa7040fce.js} +0 -0
- /package/dist/{5028.bundle.12210efc962029543cf8.js → 5028.bundle.71b240621417df1a6fab.js} +0 -0
- /package/dist/{5457.bundle.ce2a509fad38c7b5d23e.js → 5457.bundle.109f104b4520e6374fa6.js} +0 -0
- /package/dist/{5485.bundle.18ac74bcc1f62f4ff48a.js → 5485.bundle.a88fd5be3f5aa20dc643.js} +0 -0
- /package/dist/{6027.bundle.11593983ae8a72b4b10d.js → 6027.bundle.555553c951bba02afa54.js} +0 -0
- /package/dist/{7431.bundle.84b3d88ef94b97c84298.js → 7431.bundle.e5a9b628c993b78ff7db.js} +0 -0
- /package/dist/{7639.bundle.47fa2f67acb39082efe9.js → 7639.bundle.0f0b2419e43c7dc3b88a.js} +0 -0
- /package/dist/{8499.bundle.ef8d548ca8261c78ed2b.js → 8499.bundle.c179a028eae7170b397d.js} +0 -0
- /package/dist/{85.bundle.47697c7697f28e3d1865.js → 85.bundle.80b16edc06976de80ae6.js} +0 -0
- /package/dist/{8558.bundle.b7124f251785e778c3c1.js → 8558.bundle.f08683ca26d63fb8c0ef.js} +0 -0
- /package/dist/{9927.bundle.861ce96aab6eed8e6ff3.js → 9927.bundle.6966a86ab930197c8295.js} +0 -0
|
@@ -330,6 +330,8 @@ class StatsOverlay {
|
|
|
330
330
|
|
|
331
331
|
const stats_StatsOverlay = StatsOverlay.getInstance();
|
|
332
332
|
|
|
333
|
+
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/utilities/convertColorArrayToRgbString.js
|
|
334
|
+
var convertColorArrayToRgbString = __webpack_require__(57652);
|
|
333
335
|
;// ../../../node_modules/@cornerstonejs/core/dist/esm/RenderingEngine/BaseRenderingEngine.js
|
|
334
336
|
|
|
335
337
|
|
|
@@ -345,6 +347,7 @@ const stats_StatsOverlay = StatsOverlay.getInstance();
|
|
|
345
347
|
|
|
346
348
|
|
|
347
349
|
|
|
350
|
+
|
|
348
351
|
const VIEWPORT_MIN_SIZE = 2;
|
|
349
352
|
class BaseRenderingEngine {
|
|
350
353
|
constructor(id) {
|
|
@@ -526,14 +529,9 @@ class BaseRenderingEngine {
|
|
|
526
529
|
}
|
|
527
530
|
fillCanvasWithBackgroundColor(canvas, backgroundColor) {
|
|
528
531
|
const ctx = canvas.getContext('2d');
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
fillStyle = `rgb(${rgb[0]}, ${rgb[1]}, ${rgb[2]})`;
|
|
533
|
-
}
|
|
534
|
-
else {
|
|
535
|
-
fillStyle = 'black';
|
|
536
|
-
}
|
|
532
|
+
const fillStyle = backgroundColor
|
|
533
|
+
? (0,convertColorArrayToRgbString/* convertColorArrayToRgbString */.J)(backgroundColor)
|
|
534
|
+
: 'black';
|
|
537
535
|
ctx.fillStyle = fillStyle;
|
|
538
536
|
ctx.fillRect(0, 0, canvas.width, canvas.height);
|
|
539
537
|
}
|
|
@@ -1139,6 +1137,9 @@ class BaseVolumeViewport extends Viewport/* default */.A {
|
|
|
1139
1137
|
static get useCustomRenderingPipeline() {
|
|
1140
1138
|
return false;
|
|
1141
1139
|
}
|
|
1140
|
+
isOrientationChangeable() {
|
|
1141
|
+
return true;
|
|
1142
|
+
}
|
|
1142
1143
|
getSliceViewInfo() {
|
|
1143
1144
|
throw new Error('Method not implemented.');
|
|
1144
1145
|
}
|
|
@@ -2665,8 +2666,8 @@ var vtkAbstractImageMapper$1 = {
|
|
|
2665
2666
|
|
|
2666
2667
|
// EXTERNAL MODULE: ../../../node_modules/gl-matrix/esm/index.js + 1 modules
|
|
2667
2668
|
var esm = __webpack_require__(3823);
|
|
2668
|
-
// EXTERNAL MODULE: ../../../node_modules/@kitware/vtk.js/Common/DataModel/Plane.js
|
|
2669
|
-
var Plane = __webpack_require__(
|
|
2669
|
+
// EXTERNAL MODULE: ../../../node_modules/@kitware/vtk.js/Common/DataModel/Plane.js
|
|
2670
|
+
var Plane = __webpack_require__(49794);
|
|
2670
2671
|
;// ../../../node_modules/@kitware/vtk.js/Rendering/Core/AbstractImageMapper/helper.js
|
|
2671
2672
|
|
|
2672
2673
|
|
|
@@ -6954,7 +6955,7 @@ class VideoViewport extends Viewport/* default */.A {
|
|
|
6954
6955
|
/* harmony export */ });
|
|
6955
6956
|
/* harmony import */ var _kitware_vtk_js_Common_Core_MatrixBuilder__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(90364);
|
|
6956
6957
|
/* harmony import */ var _kitware_vtk_js_Common_Core_Math__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(91352);
|
|
6957
|
-
/* harmony import */ var _kitware_vtk_js_Common_DataModel_Plane__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
|
|
6958
|
+
/* harmony import */ var _kitware_vtk_js_Common_DataModel_Plane__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(49794);
|
|
6958
6959
|
/* harmony import */ var gl_matrix__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(3823);
|
|
6959
6960
|
/* harmony import */ var _enums_Events__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(32643);
|
|
6960
6961
|
/* harmony import */ var _enums_ViewportStatus__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(1814);
|
|
@@ -7064,6 +7065,9 @@ class Viewport {
|
|
|
7064
7065
|
static get useCustomRenderingPipeline() {
|
|
7065
7066
|
return false;
|
|
7066
7067
|
}
|
|
7068
|
+
isOrientationChangeable() {
|
|
7069
|
+
return false;
|
|
7070
|
+
}
|
|
7067
7071
|
setRendered() {
|
|
7068
7072
|
if (this.viewportStatus === _enums_ViewportStatus__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .A.NO_DATA ||
|
|
7069
7073
|
this.viewportStatus === _enums_ViewportStatus__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .A.LOADING) {
|
|
@@ -8094,8 +8098,8 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
8094
8098
|
|
|
8095
8099
|
// EXTERNAL MODULE: ../../../node_modules/gl-matrix/esm/index.js + 1 modules
|
|
8096
8100
|
var esm = __webpack_require__(3823);
|
|
8097
|
-
// EXTERNAL MODULE: ../../../node_modules/@kitware/vtk.js/Common/DataModel/Plane.js
|
|
8098
|
-
var Plane = __webpack_require__(
|
|
8101
|
+
// EXTERNAL MODULE: ../../../node_modules/@kitware/vtk.js/Common/DataModel/Plane.js
|
|
8102
|
+
var Plane = __webpack_require__(49794);
|
|
8099
8103
|
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/cache/cache.js
|
|
8100
8104
|
var cache = __webpack_require__(49038);
|
|
8101
8105
|
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/constants/index.js + 4 modules
|
|
@@ -19057,8 +19061,8 @@ var vtkRenderWindowInteractor$1 = {
|
|
|
19057
19061
|
|
|
19058
19062
|
// EXTERNAL MODULE: ../../../node_modules/@kitware/vtk.js/Common/Core/Points.js
|
|
19059
19063
|
var Points = __webpack_require__(74973);
|
|
19060
|
-
// EXTERNAL MODULE: ../../../node_modules/@kitware/vtk.js/Common/DataModel/PolyData.js +
|
|
19061
|
-
var PolyData = __webpack_require__(
|
|
19064
|
+
// EXTERNAL MODULE: ../../../node_modules/@kitware/vtk.js/Common/DataModel/PolyData.js + 7 modules
|
|
19065
|
+
var PolyData = __webpack_require__(27480);
|
|
19062
19066
|
// EXTERNAL MODULE: ../../../node_modules/@kitware/vtk.js/Rendering/Core/Actor.js
|
|
19063
19067
|
var Core_Actor = __webpack_require__(44404);
|
|
19064
19068
|
// EXTERNAL MODULE: ../../../node_modules/@kitware/vtk.js/Rendering/Core/Mapper.js + 1 modules
|
|
@@ -20731,8 +20735,8 @@ var DataAccessHelper = __webpack_require__(4437);
|
|
|
20731
20735
|
var macros2 = __webpack_require__(90027);
|
|
20732
20736
|
// EXTERNAL MODULE: ../../../node_modules/@kitware/vtk.js/Common/Core/DataArray.js
|
|
20733
20737
|
var DataArray = __webpack_require__(445);
|
|
20734
|
-
// EXTERNAL MODULE: ../../../node_modules/@kitware/vtk.js/Common/DataModel/PolyData.js +
|
|
20735
|
-
var PolyData = __webpack_require__(
|
|
20738
|
+
// EXTERNAL MODULE: ../../../node_modules/@kitware/vtk.js/Common/DataModel/PolyData.js + 7 modules
|
|
20739
|
+
var PolyData = __webpack_require__(27480);
|
|
20736
20740
|
// EXTERNAL MODULE: ../../../node_modules/@kitware/vtk.js/IO/Core/DataAccessHelper/LiteHttpDataAccessHelper.js + 1 modules
|
|
20737
20741
|
var LiteHttpDataAccessHelper = __webpack_require__(97833);
|
|
20738
20742
|
;// ../../../node_modules/@kitware/vtk.js/IO/Geometry/PLYReader.js
|
|
@@ -26506,8 +26510,8 @@ var BoundingBox = __webpack_require__(24377);
|
|
|
26506
26510
|
var DataArray = __webpack_require__(445);
|
|
26507
26511
|
// EXTERNAL MODULE: ../../../node_modules/@kitware/vtk.js/Rendering/Core/Mapper.js + 1 modules
|
|
26508
26512
|
var Mapper = __webpack_require__(81418);
|
|
26509
|
-
// EXTERNAL MODULE: ../../../node_modules/@kitware/vtk.js/Common/DataModel/PolyData.js +
|
|
26510
|
-
var PolyData = __webpack_require__(
|
|
26513
|
+
// EXTERNAL MODULE: ../../../node_modules/@kitware/vtk.js/Common/DataModel/PolyData.js + 7 modules
|
|
26514
|
+
var PolyData = __webpack_require__(27480);
|
|
26511
26515
|
// EXTERNAL MODULE: ../../../node_modules/@kitware/vtk.js/Rendering/Core/Texture.js
|
|
26512
26516
|
var Texture = __webpack_require__(41090);
|
|
26513
26517
|
;// ../../../node_modules/@kitware/vtk.js/Rendering/Core/CubeAxesActor.js
|
|
@@ -31871,8 +31875,8 @@ var macros2 = __webpack_require__(90027);
|
|
|
31871
31875
|
var esm = __webpack_require__(3823);
|
|
31872
31876
|
// EXTERNAL MODULE: ../../../node_modules/@kitware/vtk.js/Common/Core/CellArray.js
|
|
31873
31877
|
var CellArray = __webpack_require__(32461);
|
|
31874
|
-
// EXTERNAL MODULE: ../../../node_modules/@kitware/vtk.js/Common/DataModel/PolyData.js +
|
|
31875
|
-
var PolyData = __webpack_require__(
|
|
31878
|
+
// EXTERNAL MODULE: ../../../node_modules/@kitware/vtk.js/Common/DataModel/PolyData.js + 7 modules
|
|
31879
|
+
var PolyData = __webpack_require__(27480);
|
|
31876
31880
|
;// ../../../node_modules/@kitware/vtk.js/Filters/General/ClosedPolyLineToSurfaceFilter.js
|
|
31877
31881
|
|
|
31878
31882
|
|
|
@@ -32180,8 +32184,8 @@ var vtkImageDataOutlineFilter$1 = {
|
|
|
32180
32184
|
var Core_Math = __webpack_require__(8047);
|
|
32181
32185
|
// EXTERNAL MODULE: ../../../node_modules/@kitware/vtk.js/Rendering/OpenGL/Texture.js + 1 modules
|
|
32182
32186
|
var Texture = __webpack_require__(22323);
|
|
32183
|
-
// EXTERNAL MODULE: ../../../node_modules/@kitware/vtk.js/Common/DataModel/Plane.js
|
|
32184
|
-
var Plane = __webpack_require__(
|
|
32187
|
+
// EXTERNAL MODULE: ../../../node_modules/@kitware/vtk.js/Common/DataModel/Plane.js
|
|
32188
|
+
var Plane = __webpack_require__(49794);
|
|
32185
32189
|
// EXTERNAL MODULE: ../../../node_modules/@kitware/vtk.js/Rendering/OpenGL/ReplacementShaderMapper.js
|
|
32186
32190
|
var ReplacementShaderMapper = __webpack_require__(71705);
|
|
32187
32191
|
// EXTERNAL MODULE: ../../../node_modules/@kitware/vtk.js/Rendering/OpenGL/ShaderProgram.js + 1 modules
|
|
@@ -35905,6 +35909,22 @@ class VoxelManager {
|
|
|
35905
35909
|
}
|
|
35906
35910
|
|
|
35907
35911
|
|
|
35912
|
+
/***/ },
|
|
35913
|
+
|
|
35914
|
+
/***/ 57652
|
|
35915
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
35916
|
+
|
|
35917
|
+
"use strict";
|
|
35918
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
35919
|
+
/* harmony export */ J: () => (/* binding */ convertColorArrayToRgbString)
|
|
35920
|
+
/* harmony export */ });
|
|
35921
|
+
function convertColorArrayToRgbString(colorArr) {
|
|
35922
|
+
return Array.isArray(colorArr)
|
|
35923
|
+
? `rgb(${colorArr.map((v) => Math.round(v * 255)).join(',')})`
|
|
35924
|
+
: colorArr;
|
|
35925
|
+
}
|
|
35926
|
+
|
|
35927
|
+
|
|
35908
35928
|
/***/ },
|
|
35909
35929
|
|
|
35910
35930
|
/***/ 87784
|
|
@@ -36308,7 +36328,7 @@ function uuidv4() {
|
|
|
36308
36328
|
|
|
36309
36329
|
"use strict";
|
|
36310
36330
|
/* unused harmony export version */
|
|
36311
|
-
const version = '4.
|
|
36331
|
+
const version = '4.19.0';
|
|
36312
36332
|
|
|
36313
36333
|
|
|
36314
36334
|
/***/ },
|
|
@@ -58221,6 +58241,310 @@ var vtkCell$1 = {
|
|
|
58221
58241
|
|
|
58222
58242
|
|
|
58223
58243
|
|
|
58244
|
+
/***/ },
|
|
58245
|
+
|
|
58246
|
+
/***/ 82649
|
|
58247
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
58248
|
+
|
|
58249
|
+
"use strict";
|
|
58250
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
58251
|
+
/* harmony export */ Ay: () => (/* binding */ vtkCellTypes$1)
|
|
58252
|
+
/* harmony export */ });
|
|
58253
|
+
/* unused harmony exports STATIC, extend, newInstance */
|
|
58254
|
+
/* harmony import */ var _macros2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(90027);
|
|
58255
|
+
/* harmony import */ var _CellTypes_Constants_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(61091);
|
|
58256
|
+
|
|
58257
|
+
|
|
58258
|
+
|
|
58259
|
+
// ----------------------------------------------------------------------------
|
|
58260
|
+
// Global methods
|
|
58261
|
+
// ----------------------------------------------------------------------------
|
|
58262
|
+
|
|
58263
|
+
/**
|
|
58264
|
+
* Given an int (as defined in vtkCellType.h) identifier for a class
|
|
58265
|
+
* return it's classname.
|
|
58266
|
+
*/
|
|
58267
|
+
function getClassNameFromTypeId(typeId) {
|
|
58268
|
+
return typeId < _CellTypes_Constants_js__WEBPACK_IMPORTED_MODULE_1__/* .CellTypesStrings */ .wV.length ? _CellTypes_Constants_js__WEBPACK_IMPORTED_MODULE_1__/* .CellTypesStrings */ .wV[typeId] : 'UnknownClass';
|
|
58269
|
+
}
|
|
58270
|
+
|
|
58271
|
+
/**
|
|
58272
|
+
* Given a data object classname, return it's int identified (as
|
|
58273
|
+
* defined in vtkCellType.h)
|
|
58274
|
+
*/
|
|
58275
|
+
function getTypeIdFromClassName(cellTypeString) {
|
|
58276
|
+
return _CellTypes_Constants_js__WEBPACK_IMPORTED_MODULE_1__/* .CellTypesStrings */ .wV.findIndex(cellTypeString);
|
|
58277
|
+
}
|
|
58278
|
+
|
|
58279
|
+
/**
|
|
58280
|
+
* This convenience method is a fast check to determine if a cell type
|
|
58281
|
+
* represents a linear or nonlinear cell. This is generally much more
|
|
58282
|
+
* efficient than getting the appropriate vtkCell and checking its IsLinear
|
|
58283
|
+
* method.
|
|
58284
|
+
*/
|
|
58285
|
+
function isLinear(type) {
|
|
58286
|
+
return type < _CellTypes_Constants_js__WEBPACK_IMPORTED_MODULE_1__/* .CellType */ .vZ.VTK_QUADRATIC_EDGE || type === _CellTypes_Constants_js__WEBPACK_IMPORTED_MODULE_1__/* .CellType */ .vZ.VTK_CONVEX_POINT_SET || type === _CellTypes_Constants_js__WEBPACK_IMPORTED_MODULE_1__/* .CellType */ .vZ.VTK_POLYHEDRON;
|
|
58287
|
+
}
|
|
58288
|
+
function hasSubCells(cellType) {
|
|
58289
|
+
return cellType === _CellTypes_Constants_js__WEBPACK_IMPORTED_MODULE_1__/* .CellType */ .vZ.VTK_TRIANGLE_STRIP || cellType === _CellTypes_Constants_js__WEBPACK_IMPORTED_MODULE_1__/* .CellType */ .vZ.VTK_POLY_LINE || cellType === _CellTypes_Constants_js__WEBPACK_IMPORTED_MODULE_1__/* .CellType */ .vZ.VTK_POLY_VERTEX;
|
|
58290
|
+
}
|
|
58291
|
+
|
|
58292
|
+
// ----------------------------------------------------------------------------
|
|
58293
|
+
// Static API
|
|
58294
|
+
// ----------------------------------------------------------------------------
|
|
58295
|
+
|
|
58296
|
+
const STATIC = {
|
|
58297
|
+
getClassNameFromTypeId,
|
|
58298
|
+
getTypeIdFromClassName,
|
|
58299
|
+
isLinear,
|
|
58300
|
+
hasSubCells
|
|
58301
|
+
};
|
|
58302
|
+
|
|
58303
|
+
// ----------------------------------------------------------------------------
|
|
58304
|
+
// vtkCellTypes methods
|
|
58305
|
+
// ----------------------------------------------------------------------------
|
|
58306
|
+
|
|
58307
|
+
function vtkCellTypes(publicAPI, model) {
|
|
58308
|
+
// Set our className
|
|
58309
|
+
model.classHierarchy.push('vtkCellTypes');
|
|
58310
|
+
|
|
58311
|
+
/**
|
|
58312
|
+
* Allocate memory for this array. Delete old storage only if necessary.
|
|
58313
|
+
*/
|
|
58314
|
+
publicAPI.allocate = function () {
|
|
58315
|
+
let sz = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 512;
|
|
58316
|
+
let ext = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1000;
|
|
58317
|
+
model.size = sz > 0 ? sz : 1;
|
|
58318
|
+
model.extend = ext > 0 ? ext : 1;
|
|
58319
|
+
model.maxId = -1;
|
|
58320
|
+
model.typeArray = new Uint8Array(sz);
|
|
58321
|
+
model.locationArray = new Uint32Array(sz);
|
|
58322
|
+
};
|
|
58323
|
+
|
|
58324
|
+
/**
|
|
58325
|
+
* Add a cell at specified id.
|
|
58326
|
+
*/
|
|
58327
|
+
publicAPI.insertCell = (cellId, type, loc) => {
|
|
58328
|
+
model.typeArray[cellId] = type;
|
|
58329
|
+
model.locationArray[cellId] = loc;
|
|
58330
|
+
if (cellId > model.maxId) {
|
|
58331
|
+
model.maxId = cellId;
|
|
58332
|
+
}
|
|
58333
|
+
};
|
|
58334
|
+
|
|
58335
|
+
/**
|
|
58336
|
+
* Add a cell to the object in the next available slot.
|
|
58337
|
+
*/
|
|
58338
|
+
publicAPI.insertNextCell = (type, loc) => {
|
|
58339
|
+
publicAPI.insertCell(++model.maxId, type, loc);
|
|
58340
|
+
return model.maxId;
|
|
58341
|
+
};
|
|
58342
|
+
|
|
58343
|
+
/**
|
|
58344
|
+
* Specify a group of cell types. This version is provided to maintain
|
|
58345
|
+
* backwards compatibility and does a copy of the cellLocations
|
|
58346
|
+
*/
|
|
58347
|
+
publicAPI.setCellTypes = (ncells, cellTypes, cellLocations) => {
|
|
58348
|
+
model.size = ncells;
|
|
58349
|
+
model.typeArray = cellTypes;
|
|
58350
|
+
model.locationArray = cellLocations;
|
|
58351
|
+
model.maxId = ncells - 1;
|
|
58352
|
+
};
|
|
58353
|
+
|
|
58354
|
+
/**
|
|
58355
|
+
* Return the location of the cell in the associated vtkCellArray.
|
|
58356
|
+
*/
|
|
58357
|
+
publicAPI.getCellLocation = cellId => model.locationArray[cellId];
|
|
58358
|
+
|
|
58359
|
+
/**
|
|
58360
|
+
* Delete cell by setting to nullptr cell type.
|
|
58361
|
+
*/
|
|
58362
|
+
publicAPI.deleteCell = cellId => {
|
|
58363
|
+
model.typeArray[cellId] = _CellTypes_Constants_js__WEBPACK_IMPORTED_MODULE_1__/* .CellType */ .vZ.VTK_EMPTY_CELL;
|
|
58364
|
+
};
|
|
58365
|
+
|
|
58366
|
+
/**
|
|
58367
|
+
* Return the number of types in the list.
|
|
58368
|
+
*/
|
|
58369
|
+
publicAPI.getNumberOfTypes = () => model.maxId + 1;
|
|
58370
|
+
|
|
58371
|
+
/**
|
|
58372
|
+
* Return true if type specified is contained in list; false otherwise.
|
|
58373
|
+
*/
|
|
58374
|
+
publicAPI.isType = type => {
|
|
58375
|
+
const numTypes = publicAPI.getNumberOfTypes();
|
|
58376
|
+
for (let i = 0; i < numTypes; ++i) {
|
|
58377
|
+
if (type === publicAPI.getCellType(i)) {
|
|
58378
|
+
return true;
|
|
58379
|
+
}
|
|
58380
|
+
}
|
|
58381
|
+
return false;
|
|
58382
|
+
};
|
|
58383
|
+
|
|
58384
|
+
/**
|
|
58385
|
+
* Add the type specified to the end of the list. Range checking is performed.
|
|
58386
|
+
*/
|
|
58387
|
+
publicAPI.insertNextType = type => publicAPI.insertNextCell(type, -1);
|
|
58388
|
+
|
|
58389
|
+
/**
|
|
58390
|
+
* Return the type of cell.
|
|
58391
|
+
*/
|
|
58392
|
+
publicAPI.getCellType = cellId => model.typeArray[cellId];
|
|
58393
|
+
|
|
58394
|
+
/**
|
|
58395
|
+
* Reclaim any extra memory.
|
|
58396
|
+
*/
|
|
58397
|
+
// TODO: publicAPI.squeeze = () => {};
|
|
58398
|
+
|
|
58399
|
+
/**
|
|
58400
|
+
* Initialize object without releasing memory.
|
|
58401
|
+
*/
|
|
58402
|
+
publicAPI.reset = () => {
|
|
58403
|
+
model.maxId = -1;
|
|
58404
|
+
};
|
|
58405
|
+
|
|
58406
|
+
/**
|
|
58407
|
+
* Standard DeepCopy method. Since this object contains no reference
|
|
58408
|
+
* to other objects, there is no ShallowCopy.
|
|
58409
|
+
*/
|
|
58410
|
+
publicAPI.deepCopy = src => {
|
|
58411
|
+
publicAPI.allocate(src.getSize(), src.getExtend());
|
|
58412
|
+
model.typeArray.set(src.getTypeArray());
|
|
58413
|
+
model.locationArray.set(src.getLocationArray());
|
|
58414
|
+
model.maxId = src.getMaxId();
|
|
58415
|
+
};
|
|
58416
|
+
}
|
|
58417
|
+
|
|
58418
|
+
// ----------------------------------------------------------------------------
|
|
58419
|
+
// Object factory
|
|
58420
|
+
// ----------------------------------------------------------------------------
|
|
58421
|
+
|
|
58422
|
+
const DEFAULT_VALUES = {
|
|
58423
|
+
// typeArray: null, // pointer to types array
|
|
58424
|
+
// locationArray: null; // pointer to array of offsets
|
|
58425
|
+
size: 0,
|
|
58426
|
+
// allocated size of data
|
|
58427
|
+
maxId: -1,
|
|
58428
|
+
// maximum index inserted thus far
|
|
58429
|
+
extend: 1000 // grow array by this point
|
|
58430
|
+
};
|
|
58431
|
+
|
|
58432
|
+
// ----------------------------------------------------------------------------
|
|
58433
|
+
|
|
58434
|
+
function extend(publicAPI, model) {
|
|
58435
|
+
let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
58436
|
+
Object.assign(model, DEFAULT_VALUES, initialValues);
|
|
58437
|
+
_macros2_js__WEBPACK_IMPORTED_MODULE_0__.m.obj(publicAPI, model);
|
|
58438
|
+
_macros2_js__WEBPACK_IMPORTED_MODULE_0__.m.get(publicAPI, model, ['size', 'maxId', 'extend']);
|
|
58439
|
+
_macros2_js__WEBPACK_IMPORTED_MODULE_0__.m.getArray(publicAPI, model, ['typeArray', 'locationArray']);
|
|
58440
|
+
vtkCellTypes(publicAPI, model);
|
|
58441
|
+
}
|
|
58442
|
+
|
|
58443
|
+
// ----------------------------------------------------------------------------
|
|
58444
|
+
|
|
58445
|
+
const newInstance = _macros2_js__WEBPACK_IMPORTED_MODULE_0__.m.newInstance(extend, 'vtkCellTypes');
|
|
58446
|
+
|
|
58447
|
+
// ----------------------------------------------------------------------------
|
|
58448
|
+
|
|
58449
|
+
var vtkCellTypes$1 = {
|
|
58450
|
+
newInstance,
|
|
58451
|
+
extend,
|
|
58452
|
+
...STATIC
|
|
58453
|
+
};
|
|
58454
|
+
|
|
58455
|
+
|
|
58456
|
+
|
|
58457
|
+
|
|
58458
|
+
/***/ },
|
|
58459
|
+
|
|
58460
|
+
/***/ 61091
|
|
58461
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
58462
|
+
|
|
58463
|
+
"use strict";
|
|
58464
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
58465
|
+
/* harmony export */ vZ: () => (/* binding */ CellType),
|
|
58466
|
+
/* harmony export */ wV: () => (/* binding */ CellTypesStrings)
|
|
58467
|
+
/* harmony export */ });
|
|
58468
|
+
/* unused harmony export default */
|
|
58469
|
+
const CellType = {
|
|
58470
|
+
// Linear cells
|
|
58471
|
+
VTK_EMPTY_CELL: 0,
|
|
58472
|
+
VTK_VERTEX: 1,
|
|
58473
|
+
VTK_POLY_VERTEX: 2,
|
|
58474
|
+
VTK_LINE: 3,
|
|
58475
|
+
VTK_POLY_LINE: 4,
|
|
58476
|
+
VTK_TRIANGLE: 5,
|
|
58477
|
+
VTK_TRIANGLE_STRIP: 6,
|
|
58478
|
+
VTK_POLYGON: 7,
|
|
58479
|
+
VTK_PIXEL: 8,
|
|
58480
|
+
VTK_QUAD: 9,
|
|
58481
|
+
VTK_TETRA: 10,
|
|
58482
|
+
VTK_VOXEL: 11,
|
|
58483
|
+
VTK_HEXAHEDRON: 12,
|
|
58484
|
+
VTK_WEDGE: 13,
|
|
58485
|
+
VTK_PYRAMID: 14,
|
|
58486
|
+
VTK_PENTAGONAL_PRISM: 15,
|
|
58487
|
+
VTK_HEXAGONAL_PRISM: 16,
|
|
58488
|
+
// Quadratic, isoparametric cells
|
|
58489
|
+
VTK_QUADRATIC_EDGE: 21,
|
|
58490
|
+
VTK_QUADRATIC_TRIANGLE: 22,
|
|
58491
|
+
VTK_QUADRATIC_QUAD: 23,
|
|
58492
|
+
VTK_QUADRATIC_POLYGON: 36,
|
|
58493
|
+
VTK_QUADRATIC_TETRA: 24,
|
|
58494
|
+
VTK_QUADRATIC_HEXAHEDRON: 25,
|
|
58495
|
+
VTK_QUADRATIC_WEDGE: 26,
|
|
58496
|
+
VTK_QUADRATIC_PYRAMID: 27,
|
|
58497
|
+
VTK_BIQUADRATIC_QUAD: 28,
|
|
58498
|
+
VTK_TRIQUADRATIC_HEXAHEDRON: 29,
|
|
58499
|
+
VTK_QUADRATIC_LINEAR_QUAD: 30,
|
|
58500
|
+
VTK_QUADRATIC_LINEAR_WEDGE: 31,
|
|
58501
|
+
VTK_BIQUADRATIC_QUADRATIC_WEDGE: 32,
|
|
58502
|
+
VTK_BIQUADRATIC_QUADRATIC_HEXAHEDRON: 33,
|
|
58503
|
+
VTK_BIQUADRATIC_TRIANGLE: 34,
|
|
58504
|
+
// Cubic, isoparametric cell
|
|
58505
|
+
VTK_CUBIC_LINE: 35,
|
|
58506
|
+
// Special class of cells formed by convex group of points
|
|
58507
|
+
VTK_CONVEX_POINT_SET: 41,
|
|
58508
|
+
// Polyhedron cell (consisting of polygonal faces)
|
|
58509
|
+
VTK_POLYHEDRON: 42,
|
|
58510
|
+
// Higher order cells in parametric form
|
|
58511
|
+
VTK_PARAMETRIC_CURVE: 51,
|
|
58512
|
+
VTK_PARAMETRIC_SURFACE: 52,
|
|
58513
|
+
VTK_PARAMETRIC_TRI_SURFACE: 53,
|
|
58514
|
+
VTK_PARAMETRIC_QUAD_SURFACE: 54,
|
|
58515
|
+
VTK_PARAMETRIC_TETRA_REGION: 55,
|
|
58516
|
+
VTK_PARAMETRIC_HEX_REGION: 56,
|
|
58517
|
+
// Higher order cells
|
|
58518
|
+
VTK_HIGHER_ORDER_EDGE: 60,
|
|
58519
|
+
VTK_HIGHER_ORDER_TRIANGLE: 61,
|
|
58520
|
+
VTK_HIGHER_ORDER_QUAD: 62,
|
|
58521
|
+
VTK_HIGHER_ORDER_POLYGON: 63,
|
|
58522
|
+
VTK_HIGHER_ORDER_TETRAHEDRON: 64,
|
|
58523
|
+
VTK_HIGHER_ORDER_WEDGE: 65,
|
|
58524
|
+
VTK_HIGHER_ORDER_PYRAMID: 66,
|
|
58525
|
+
VTK_HIGHER_ORDER_HEXAHEDRON: 67,
|
|
58526
|
+
// Arbitrary order Lagrange elements (formulated separated from generic higher order cells)
|
|
58527
|
+
VTK_LAGRANGE_CURVE: 68,
|
|
58528
|
+
VTK_LAGRANGE_TRIANGLE: 69,
|
|
58529
|
+
VTK_LAGRANGE_QUADRILATERAL: 70,
|
|
58530
|
+
VTK_LAGRANGE_TETRAHEDRON: 71,
|
|
58531
|
+
VTK_LAGRANGE_HEXAHEDRON: 72,
|
|
58532
|
+
VTK_LAGRANGE_WEDGE: 73,
|
|
58533
|
+
VTK_LAGRANGE_PYRAMID: 74,
|
|
58534
|
+
VTK_NUMBER_OF_CELL_TYPES: 75
|
|
58535
|
+
};
|
|
58536
|
+
|
|
58537
|
+
// This list should contain the cell class names in
|
|
58538
|
+
// the same order as in CellType.
|
|
58539
|
+
const CellTypesStrings = ['vtkEmptyCell', 'vtkVertex', 'vtkPolyVertex', 'vtkLine', 'vtkPolyLine', 'vtkTriangle', 'vtkTriangleStrip', 'vtkPolygon', 'vtkPixel', 'vtkQuad', 'vtkTetra', 'vtkVoxel', 'vtkHexahedron', 'vtkWedge', 'vtkPyramid', 'vtkPentagonalPrism', 'vtkHexagonalPrism', 'UnknownClass', 'UnknownClass', 'UnknownClass', 'UnknownClass', 'vtkQuadraticEdge', 'vtkQuadraticTriangle', 'vtkQuadraticQuad', 'vtkQuadraticTetra', 'vtkQuadraticHexahedron', 'vtkQuadraticWedge', 'vtkQuadraticPyramid', 'vtkBiQuadraticQuad', 'vtkTriQuadraticHexahedron', 'vtkQuadraticLinearQuad', 'vtkQuadraticLinearWedge', 'vtkBiQuadraticQuadraticWedge', 'vtkBiQuadraticQuadraticHexahedron', 'vtkBiQuadraticTriangle', 'vtkCubicLine', 'vtkQuadraticPolygon', 'UnknownClass', 'UnknownClass', 'UnknownClass', 'UnknownClass', 'vtkConvexPointSet', 'UnknownClass', 'UnknownClass', 'UnknownClass', 'UnknownClass', 'UnknownClass', 'UnknownClass', 'UnknownClass', 'UnknownClass', 'UnknownClass', 'vtkParametricCurve', 'vtkParametricSurface', 'vtkParametricTriSurface', 'vtkParametricQuadSurface', 'vtkParametricTetraRegion', 'vtkParametricHexRegion', 'UnknownClass', 'UnknownClass', 'UnknownClass', 'vtkHigherOrderEdge', 'vtkHigherOrderTriangle', 'vtkHigherOrderQuad', 'vtkHigherOrderPolygon', 'vtkHigherOrderTetrahedron', 'vtkHigherOrderWedge', 'vtkHigherOrderPyramid', 'vtkHigherOrderHexahedron'];
|
|
58540
|
+
var Constants = {
|
|
58541
|
+
CellType,
|
|
58542
|
+
CellTypesStrings
|
|
58543
|
+
};
|
|
58544
|
+
|
|
58545
|
+
|
|
58546
|
+
|
|
58547
|
+
|
|
58224
58548
|
/***/ },
|
|
58225
58549
|
|
|
58226
58550
|
/***/ 35856
|
|
@@ -59115,7 +59439,7 @@ var vtkPiecewiseFunction$1 = {
|
|
|
59115
59439
|
|
|
59116
59440
|
/***/ },
|
|
59117
59441
|
|
|
59118
|
-
/***/
|
|
59442
|
+
/***/ 27480
|
|
59119
59443
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
59120
59444
|
|
|
59121
59445
|
"use strict";
|
|
@@ -59395,287 +59719,8 @@ var vtkCellLinks$1 = {
|
|
|
59395
59719
|
|
|
59396
59720
|
|
|
59397
59721
|
|
|
59398
|
-
|
|
59399
|
-
|
|
59400
|
-
// Linear cells
|
|
59401
|
-
VTK_EMPTY_CELL: 0,
|
|
59402
|
-
VTK_VERTEX: 1,
|
|
59403
|
-
VTK_POLY_VERTEX: 2,
|
|
59404
|
-
VTK_LINE: 3,
|
|
59405
|
-
VTK_POLY_LINE: 4,
|
|
59406
|
-
VTK_TRIANGLE: 5,
|
|
59407
|
-
VTK_TRIANGLE_STRIP: 6,
|
|
59408
|
-
VTK_POLYGON: 7,
|
|
59409
|
-
VTK_PIXEL: 8,
|
|
59410
|
-
VTK_QUAD: 9,
|
|
59411
|
-
VTK_TETRA: 10,
|
|
59412
|
-
VTK_VOXEL: 11,
|
|
59413
|
-
VTK_HEXAHEDRON: 12,
|
|
59414
|
-
VTK_WEDGE: 13,
|
|
59415
|
-
VTK_PYRAMID: 14,
|
|
59416
|
-
VTK_PENTAGONAL_PRISM: 15,
|
|
59417
|
-
VTK_HEXAGONAL_PRISM: 16,
|
|
59418
|
-
// Quadratic, isoparametric cells
|
|
59419
|
-
VTK_QUADRATIC_EDGE: 21,
|
|
59420
|
-
VTK_QUADRATIC_TRIANGLE: 22,
|
|
59421
|
-
VTK_QUADRATIC_QUAD: 23,
|
|
59422
|
-
VTK_QUADRATIC_POLYGON: 36,
|
|
59423
|
-
VTK_QUADRATIC_TETRA: 24,
|
|
59424
|
-
VTK_QUADRATIC_HEXAHEDRON: 25,
|
|
59425
|
-
VTK_QUADRATIC_WEDGE: 26,
|
|
59426
|
-
VTK_QUADRATIC_PYRAMID: 27,
|
|
59427
|
-
VTK_BIQUADRATIC_QUAD: 28,
|
|
59428
|
-
VTK_TRIQUADRATIC_HEXAHEDRON: 29,
|
|
59429
|
-
VTK_QUADRATIC_LINEAR_QUAD: 30,
|
|
59430
|
-
VTK_QUADRATIC_LINEAR_WEDGE: 31,
|
|
59431
|
-
VTK_BIQUADRATIC_QUADRATIC_WEDGE: 32,
|
|
59432
|
-
VTK_BIQUADRATIC_QUADRATIC_HEXAHEDRON: 33,
|
|
59433
|
-
VTK_BIQUADRATIC_TRIANGLE: 34,
|
|
59434
|
-
// Cubic, isoparametric cell
|
|
59435
|
-
VTK_CUBIC_LINE: 35,
|
|
59436
|
-
// Special class of cells formed by convex group of points
|
|
59437
|
-
VTK_CONVEX_POINT_SET: 41,
|
|
59438
|
-
// Polyhedron cell (consisting of polygonal faces)
|
|
59439
|
-
VTK_POLYHEDRON: 42,
|
|
59440
|
-
// Higher order cells in parametric form
|
|
59441
|
-
VTK_PARAMETRIC_CURVE: 51,
|
|
59442
|
-
VTK_PARAMETRIC_SURFACE: 52,
|
|
59443
|
-
VTK_PARAMETRIC_TRI_SURFACE: 53,
|
|
59444
|
-
VTK_PARAMETRIC_QUAD_SURFACE: 54,
|
|
59445
|
-
VTK_PARAMETRIC_TETRA_REGION: 55,
|
|
59446
|
-
VTK_PARAMETRIC_HEX_REGION: 56,
|
|
59447
|
-
// Higher order cells
|
|
59448
|
-
VTK_HIGHER_ORDER_EDGE: 60,
|
|
59449
|
-
VTK_HIGHER_ORDER_TRIANGLE: 61,
|
|
59450
|
-
VTK_HIGHER_ORDER_QUAD: 62,
|
|
59451
|
-
VTK_HIGHER_ORDER_POLYGON: 63,
|
|
59452
|
-
VTK_HIGHER_ORDER_TETRAHEDRON: 64,
|
|
59453
|
-
VTK_HIGHER_ORDER_WEDGE: 65,
|
|
59454
|
-
VTK_HIGHER_ORDER_PYRAMID: 66,
|
|
59455
|
-
VTK_HIGHER_ORDER_HEXAHEDRON: 67,
|
|
59456
|
-
// Arbitrary order Lagrange elements (formulated separated from generic higher order cells)
|
|
59457
|
-
VTK_LAGRANGE_CURVE: 68,
|
|
59458
|
-
VTK_LAGRANGE_TRIANGLE: 69,
|
|
59459
|
-
VTK_LAGRANGE_QUADRILATERAL: 70,
|
|
59460
|
-
VTK_LAGRANGE_TETRAHEDRON: 71,
|
|
59461
|
-
VTK_LAGRANGE_HEXAHEDRON: 72,
|
|
59462
|
-
VTK_LAGRANGE_WEDGE: 73,
|
|
59463
|
-
VTK_LAGRANGE_PYRAMID: 74,
|
|
59464
|
-
VTK_NUMBER_OF_CELL_TYPES: 75
|
|
59465
|
-
};
|
|
59466
|
-
|
|
59467
|
-
// This list should contain the cell class names in
|
|
59468
|
-
// the same order as in CellType.
|
|
59469
|
-
const CellTypesStrings = ['vtkEmptyCell', 'vtkVertex', 'vtkPolyVertex', 'vtkLine', 'vtkPolyLine', 'vtkTriangle', 'vtkTriangleStrip', 'vtkPolygon', 'vtkPixel', 'vtkQuad', 'vtkTetra', 'vtkVoxel', 'vtkHexahedron', 'vtkWedge', 'vtkPyramid', 'vtkPentagonalPrism', 'vtkHexagonalPrism', 'UnknownClass', 'UnknownClass', 'UnknownClass', 'UnknownClass', 'vtkQuadraticEdge', 'vtkQuadraticTriangle', 'vtkQuadraticQuad', 'vtkQuadraticTetra', 'vtkQuadraticHexahedron', 'vtkQuadraticWedge', 'vtkQuadraticPyramid', 'vtkBiQuadraticQuad', 'vtkTriQuadraticHexahedron', 'vtkQuadraticLinearQuad', 'vtkQuadraticLinearWedge', 'vtkBiQuadraticQuadraticWedge', 'vtkBiQuadraticQuadraticHexahedron', 'vtkBiQuadraticTriangle', 'vtkCubicLine', 'vtkQuadraticPolygon', 'UnknownClass', 'UnknownClass', 'UnknownClass', 'UnknownClass', 'vtkConvexPointSet', 'UnknownClass', 'UnknownClass', 'UnknownClass', 'UnknownClass', 'UnknownClass', 'UnknownClass', 'UnknownClass', 'UnknownClass', 'UnknownClass', 'vtkParametricCurve', 'vtkParametricSurface', 'vtkParametricTriSurface', 'vtkParametricQuadSurface', 'vtkParametricTetraRegion', 'vtkParametricHexRegion', 'UnknownClass', 'UnknownClass', 'UnknownClass', 'vtkHigherOrderEdge', 'vtkHigherOrderTriangle', 'vtkHigherOrderQuad', 'vtkHigherOrderPolygon', 'vtkHigherOrderTetrahedron', 'vtkHigherOrderWedge', 'vtkHigherOrderPyramid', 'vtkHigherOrderHexahedron'];
|
|
59470
|
-
var Constants = {
|
|
59471
|
-
CellType,
|
|
59472
|
-
CellTypesStrings
|
|
59473
|
-
};
|
|
59474
|
-
|
|
59475
|
-
|
|
59476
|
-
|
|
59477
|
-
;// ../../../node_modules/@kitware/vtk.js/Common/DataModel/CellTypes.js
|
|
59478
|
-
|
|
59479
|
-
|
|
59480
|
-
|
|
59481
|
-
// ----------------------------------------------------------------------------
|
|
59482
|
-
// Global methods
|
|
59483
|
-
// ----------------------------------------------------------------------------
|
|
59484
|
-
|
|
59485
|
-
/**
|
|
59486
|
-
* Given an int (as defined in vtkCellType.h) identifier for a class
|
|
59487
|
-
* return it's classname.
|
|
59488
|
-
*/
|
|
59489
|
-
function getClassNameFromTypeId(typeId) {
|
|
59490
|
-
return typeId < CellTypesStrings.length ? CellTypesStrings[typeId] : 'UnknownClass';
|
|
59491
|
-
}
|
|
59492
|
-
|
|
59493
|
-
/**
|
|
59494
|
-
* Given a data object classname, return it's int identified (as
|
|
59495
|
-
* defined in vtkCellType.h)
|
|
59496
|
-
*/
|
|
59497
|
-
function getTypeIdFromClassName(cellTypeString) {
|
|
59498
|
-
return CellTypesStrings.findIndex(cellTypeString);
|
|
59499
|
-
}
|
|
59500
|
-
|
|
59501
|
-
/**
|
|
59502
|
-
* This convenience method is a fast check to determine if a cell type
|
|
59503
|
-
* represents a linear or nonlinear cell. This is generally much more
|
|
59504
|
-
* efficient than getting the appropriate vtkCell and checking its IsLinear
|
|
59505
|
-
* method.
|
|
59506
|
-
*/
|
|
59507
|
-
function isLinear(type) {
|
|
59508
|
-
return type < CellType.VTK_QUADRATIC_EDGE || type === CellType.VTK_CONVEX_POINT_SET || type === CellType.VTK_POLYHEDRON;
|
|
59509
|
-
}
|
|
59510
|
-
function hasSubCells(cellType) {
|
|
59511
|
-
return cellType === CellType.VTK_TRIANGLE_STRIP || cellType === CellType.VTK_POLY_LINE || cellType === CellType.VTK_POLY_VERTEX;
|
|
59512
|
-
}
|
|
59513
|
-
|
|
59514
|
-
// ----------------------------------------------------------------------------
|
|
59515
|
-
// Static API
|
|
59516
|
-
// ----------------------------------------------------------------------------
|
|
59517
|
-
|
|
59518
|
-
const STATIC = {
|
|
59519
|
-
getClassNameFromTypeId,
|
|
59520
|
-
getTypeIdFromClassName,
|
|
59521
|
-
isLinear,
|
|
59522
|
-
hasSubCells
|
|
59523
|
-
};
|
|
59524
|
-
|
|
59525
|
-
// ----------------------------------------------------------------------------
|
|
59526
|
-
// vtkCellTypes methods
|
|
59527
|
-
// ----------------------------------------------------------------------------
|
|
59528
|
-
|
|
59529
|
-
function vtkCellTypes(publicAPI, model) {
|
|
59530
|
-
// Set our className
|
|
59531
|
-
model.classHierarchy.push('vtkCellTypes');
|
|
59532
|
-
|
|
59533
|
-
/**
|
|
59534
|
-
* Allocate memory for this array. Delete old storage only if necessary.
|
|
59535
|
-
*/
|
|
59536
|
-
publicAPI.allocate = function () {
|
|
59537
|
-
let sz = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 512;
|
|
59538
|
-
let ext = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1000;
|
|
59539
|
-
model.size = sz > 0 ? sz : 1;
|
|
59540
|
-
model.extend = ext > 0 ? ext : 1;
|
|
59541
|
-
model.maxId = -1;
|
|
59542
|
-
model.typeArray = new Uint8Array(sz);
|
|
59543
|
-
model.locationArray = new Uint32Array(sz);
|
|
59544
|
-
};
|
|
59545
|
-
|
|
59546
|
-
/**
|
|
59547
|
-
* Add a cell at specified id.
|
|
59548
|
-
*/
|
|
59549
|
-
publicAPI.insertCell = (cellId, type, loc) => {
|
|
59550
|
-
model.typeArray[cellId] = type;
|
|
59551
|
-
model.locationArray[cellId] = loc;
|
|
59552
|
-
if (cellId > model.maxId) {
|
|
59553
|
-
model.maxId = cellId;
|
|
59554
|
-
}
|
|
59555
|
-
};
|
|
59556
|
-
|
|
59557
|
-
/**
|
|
59558
|
-
* Add a cell to the object in the next available slot.
|
|
59559
|
-
*/
|
|
59560
|
-
publicAPI.insertNextCell = (type, loc) => {
|
|
59561
|
-
publicAPI.insertCell(++model.maxId, type, loc);
|
|
59562
|
-
return model.maxId;
|
|
59563
|
-
};
|
|
59564
|
-
|
|
59565
|
-
/**
|
|
59566
|
-
* Specify a group of cell types. This version is provided to maintain
|
|
59567
|
-
* backwards compatibility and does a copy of the cellLocations
|
|
59568
|
-
*/
|
|
59569
|
-
publicAPI.setCellTypes = (ncells, cellTypes, cellLocations) => {
|
|
59570
|
-
model.size = ncells;
|
|
59571
|
-
model.typeArray = cellTypes;
|
|
59572
|
-
model.locationArray = cellLocations;
|
|
59573
|
-
model.maxId = ncells - 1;
|
|
59574
|
-
};
|
|
59575
|
-
|
|
59576
|
-
/**
|
|
59577
|
-
* Return the location of the cell in the associated vtkCellArray.
|
|
59578
|
-
*/
|
|
59579
|
-
publicAPI.getCellLocation = cellId => model.locationArray[cellId];
|
|
59580
|
-
|
|
59581
|
-
/**
|
|
59582
|
-
* Delete cell by setting to nullptr cell type.
|
|
59583
|
-
*/
|
|
59584
|
-
publicAPI.deleteCell = cellId => {
|
|
59585
|
-
model.typeArray[cellId] = CellType.VTK_EMPTY_CELL;
|
|
59586
|
-
};
|
|
59587
|
-
|
|
59588
|
-
/**
|
|
59589
|
-
* Return the number of types in the list.
|
|
59590
|
-
*/
|
|
59591
|
-
publicAPI.getNumberOfTypes = () => model.maxId + 1;
|
|
59592
|
-
|
|
59593
|
-
/**
|
|
59594
|
-
* Return true if type specified is contained in list; false otherwise.
|
|
59595
|
-
*/
|
|
59596
|
-
publicAPI.isType = type => {
|
|
59597
|
-
const numTypes = publicAPI.getNumberOfTypes();
|
|
59598
|
-
for (let i = 0; i < numTypes; ++i) {
|
|
59599
|
-
if (type === publicAPI.getCellType(i)) {
|
|
59600
|
-
return true;
|
|
59601
|
-
}
|
|
59602
|
-
}
|
|
59603
|
-
return false;
|
|
59604
|
-
};
|
|
59605
|
-
|
|
59606
|
-
/**
|
|
59607
|
-
* Add the type specified to the end of the list. Range checking is performed.
|
|
59608
|
-
*/
|
|
59609
|
-
publicAPI.insertNextType = type => publicAPI.insertNextCell(type, -1);
|
|
59610
|
-
|
|
59611
|
-
/**
|
|
59612
|
-
* Return the type of cell.
|
|
59613
|
-
*/
|
|
59614
|
-
publicAPI.getCellType = cellId => model.typeArray[cellId];
|
|
59615
|
-
|
|
59616
|
-
/**
|
|
59617
|
-
* Reclaim any extra memory.
|
|
59618
|
-
*/
|
|
59619
|
-
// TODO: publicAPI.squeeze = () => {};
|
|
59620
|
-
|
|
59621
|
-
/**
|
|
59622
|
-
* Initialize object without releasing memory.
|
|
59623
|
-
*/
|
|
59624
|
-
publicAPI.reset = () => {
|
|
59625
|
-
model.maxId = -1;
|
|
59626
|
-
};
|
|
59627
|
-
|
|
59628
|
-
/**
|
|
59629
|
-
* Standard DeepCopy method. Since this object contains no reference
|
|
59630
|
-
* to other objects, there is no ShallowCopy.
|
|
59631
|
-
*/
|
|
59632
|
-
publicAPI.deepCopy = src => {
|
|
59633
|
-
publicAPI.allocate(src.getSize(), src.getExtend());
|
|
59634
|
-
model.typeArray.set(src.getTypeArray());
|
|
59635
|
-
model.locationArray.set(src.getLocationArray());
|
|
59636
|
-
model.maxId = src.getMaxId();
|
|
59637
|
-
};
|
|
59638
|
-
}
|
|
59639
|
-
|
|
59640
|
-
// ----------------------------------------------------------------------------
|
|
59641
|
-
// Object factory
|
|
59642
|
-
// ----------------------------------------------------------------------------
|
|
59643
|
-
|
|
59644
|
-
const CellTypes_DEFAULT_VALUES = {
|
|
59645
|
-
// typeArray: null, // pointer to types array
|
|
59646
|
-
// locationArray: null; // pointer to array of offsets
|
|
59647
|
-
size: 0,
|
|
59648
|
-
// allocated size of data
|
|
59649
|
-
maxId: -1,
|
|
59650
|
-
// maximum index inserted thus far
|
|
59651
|
-
extend: 1000 // grow array by this point
|
|
59652
|
-
};
|
|
59653
|
-
|
|
59654
|
-
// ----------------------------------------------------------------------------
|
|
59655
|
-
|
|
59656
|
-
function CellTypes_extend(publicAPI, model) {
|
|
59657
|
-
let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
59658
|
-
Object.assign(model, CellTypes_DEFAULT_VALUES, initialValues);
|
|
59659
|
-
macros2.m.obj(publicAPI, model);
|
|
59660
|
-
macros2.m.get(publicAPI, model, ['size', 'maxId', 'extend']);
|
|
59661
|
-
macros2.m.getArray(publicAPI, model, ['typeArray', 'locationArray']);
|
|
59662
|
-
vtkCellTypes(publicAPI, model);
|
|
59663
|
-
}
|
|
59664
|
-
|
|
59665
|
-
// ----------------------------------------------------------------------------
|
|
59666
|
-
|
|
59667
|
-
const CellTypes_newInstance = macros2.m.newInstance(CellTypes_extend, 'vtkCellTypes');
|
|
59668
|
-
|
|
59669
|
-
// ----------------------------------------------------------------------------
|
|
59670
|
-
|
|
59671
|
-
var vtkCellTypes$1 = {
|
|
59672
|
-
newInstance: CellTypes_newInstance,
|
|
59673
|
-
extend: CellTypes_extend,
|
|
59674
|
-
...STATIC
|
|
59675
|
-
};
|
|
59676
|
-
|
|
59677
|
-
|
|
59678
|
-
|
|
59722
|
+
// EXTERNAL MODULE: ../../../node_modules/@kitware/vtk.js/Common/DataModel/CellTypes.js
|
|
59723
|
+
var CellTypes = __webpack_require__(82649);
|
|
59679
59724
|
// EXTERNAL MODULE: ../../../node_modules/@kitware/vtk.js/Common/DataModel/Line.js
|
|
59680
59725
|
var Line = __webpack_require__(35856);
|
|
59681
59726
|
// EXTERNAL MODULE: ../../../node_modules/@kitware/vtk.js/Common/DataModel/DataSet.js + 3 modules
|
|
@@ -59765,151 +59810,12 @@ var vtkPointSet$1 = {
|
|
|
59765
59810
|
|
|
59766
59811
|
|
|
59767
59812
|
|
|
59768
|
-
// EXTERNAL MODULE: ../../../node_modules/
|
|
59769
|
-
var
|
|
59770
|
-
;// ../../../node_modules/@kitware/vtk.js/Common/DataModel/PolyLine.js
|
|
59771
|
-
|
|
59772
|
-
|
|
59773
|
-
|
|
59774
|
-
|
|
59775
|
-
|
|
59776
|
-
function vtkPolyLine(publicAPI, model) {
|
|
59777
|
-
model.classHierarchy.push('vtkPolyLine');
|
|
59778
|
-
const line = Line/* default.newInstance */.Ay.newInstance();
|
|
59779
|
-
line.getPoints().setNumberOfPoints(2);
|
|
59780
|
-
publicAPI.getCellDimension = () => 1;
|
|
59781
|
-
publicAPI.intersectWithLine = (t1, t2, p1, p2, tol, x, pcoords) => {
|
|
59782
|
-
const outObj = {
|
|
59783
|
-
intersect: 0,
|
|
59784
|
-
t: Number.MAX_VALUE,
|
|
59785
|
-
subId: 0,
|
|
59786
|
-
betweenPoints: null
|
|
59787
|
-
};
|
|
59788
|
-
const numLines = publicAPI.getNumberOfPoints() - 1;
|
|
59789
|
-
let pDistMin = Number.MAX_VALUE;
|
|
59790
|
-
for (let subId = 0; subId < numLines; subId++) {
|
|
59791
|
-
const pCoords = [0, 0, 0];
|
|
59792
|
-
line.getPoints().getData().set(model.points.getData().subarray(3 * subId, 3 * (subId + 2)));
|
|
59793
|
-
const lineIntersected = line.intersectWithLine(p1, p2, tol, x, pcoords);
|
|
59794
|
-
if (lineIntersected.intersect === 1 && lineIntersected.t <= outObj.t + tol && lineIntersected.t >= t1 && lineIntersected.t <= t2) {
|
|
59795
|
-
outObj.intersect = 1;
|
|
59796
|
-
const pDist = line.getParametricDistance(pCoords);
|
|
59797
|
-
if (pDist < pDistMin || pDist === pDistMin && lineIntersected.t < outObj.t) {
|
|
59798
|
-
outObj.subId = subId;
|
|
59799
|
-
outObj.t = lineIntersected.t;
|
|
59800
|
-
pDistMin = pDist;
|
|
59801
|
-
for (let k = 0; k < 3; k++) {
|
|
59802
|
-
x[k];
|
|
59803
|
-
pCoords[k];
|
|
59804
|
-
}
|
|
59805
|
-
}
|
|
59806
|
-
}
|
|
59807
|
-
}
|
|
59808
|
-
return outObj;
|
|
59809
|
-
};
|
|
59810
|
-
publicAPI.evaluateLocation = (subId, pcoords, x, weights) => {
|
|
59811
|
-
line.getPoints().getData().set(model.points.getData().subarray(3 * subId, 3 * (subId + 2)));
|
|
59812
|
-
return line.evaluateLocation(pcoords, x, weights);
|
|
59813
|
-
};
|
|
59814
|
-
publicAPI.evaluateOrientation = (subId, pcoords, q, weights) => {
|
|
59815
|
-
if (model.orientations) {
|
|
59816
|
-
line.setOrientations([model.orientations[subId], model.orientations[subId + 1]]);
|
|
59817
|
-
} else {
|
|
59818
|
-
line.setOrientations(null);
|
|
59819
|
-
}
|
|
59820
|
-
return line.evaluateOrientation(pcoords, q, weights);
|
|
59821
|
-
};
|
|
59822
|
-
publicAPI.getDistancesToFirstPoint = () => {
|
|
59823
|
-
const dTime = model.distancesTime.getMTime();
|
|
59824
|
-
if (dTime < model.points.getMTime() || dTime < publicAPI.getMTime()) {
|
|
59825
|
-
const numPoints = publicAPI.getNumberOfPoints();
|
|
59826
|
-
if (!model.distances) {
|
|
59827
|
-
model.distances = new Array(numPoints);
|
|
59828
|
-
} else {
|
|
59829
|
-
model.distances.length = numPoints;
|
|
59830
|
-
}
|
|
59831
|
-
if (numPoints > 0) {
|
|
59832
|
-
const previousPoint = new Array(3);
|
|
59833
|
-
const currentPoint = new Array(3);
|
|
59834
|
-
let totalDistance = 0;
|
|
59835
|
-
model.distances[0] = totalDistance;
|
|
59836
|
-
model.points.getPoint(0, previousPoint);
|
|
59837
|
-
for (let i = 1; i < numPoints; ++i) {
|
|
59838
|
-
model.points.getPoint(i, currentPoint);
|
|
59839
|
-
totalDistance += model.distanceFunction(previousPoint, currentPoint);
|
|
59840
|
-
model.distances[i] = totalDistance;
|
|
59841
|
-
esm/* vec3.copy */.eR.copy(previousPoint, currentPoint);
|
|
59842
|
-
}
|
|
59843
|
-
}
|
|
59844
|
-
model.distancesTime.modified();
|
|
59845
|
-
}
|
|
59846
|
-
return model.distances;
|
|
59847
|
-
};
|
|
59848
|
-
publicAPI.findPointIdAtDistanceFromFirstPoint = distance => {
|
|
59849
|
-
const distances = publicAPI.getDistancesToFirstPoint();
|
|
59850
|
-
// At least two points to return an ID
|
|
59851
|
-
if (distances.length < 2) {
|
|
59852
|
-
return -1;
|
|
59853
|
-
}
|
|
59854
|
-
// Binary search in the distance array
|
|
59855
|
-
let minId = 0;
|
|
59856
|
-
let maxId = distances.length - 1;
|
|
59857
|
-
if (distance < distances[minId] || distance > distances[maxId] || distances[maxId] === 0) {
|
|
59858
|
-
return -1;
|
|
59859
|
-
}
|
|
59860
|
-
while (maxId - minId > 1) {
|
|
59861
|
-
const midId = Math.floor((minId + maxId) / 2);
|
|
59862
|
-
if (distances[midId] <= distance) {
|
|
59863
|
-
minId = midId;
|
|
59864
|
-
} else {
|
|
59865
|
-
maxId = midId;
|
|
59866
|
-
}
|
|
59867
|
-
}
|
|
59868
|
-
return minId;
|
|
59869
|
-
};
|
|
59870
|
-
}
|
|
59871
|
-
|
|
59872
|
-
// ----------------------------------------------------------------------------
|
|
59873
|
-
// Object factory
|
|
59874
|
-
// ----------------------------------------------------------------------------
|
|
59875
|
-
|
|
59876
|
-
const PolyLine_DEFAULT_VALUES = {
|
|
59877
|
-
orientations: null,
|
|
59878
|
-
// an array of quat or null
|
|
59879
|
-
distanceFunction: esm/* vec3.dist */.eR.dist
|
|
59880
|
-
};
|
|
59881
|
-
|
|
59882
|
-
// ----------------------------------------------------------------------------
|
|
59883
|
-
|
|
59884
|
-
function PolyLine_extend(publicAPI, model) {
|
|
59885
|
-
let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
59886
|
-
Object.assign(model, PolyLine_DEFAULT_VALUES, initialValues);
|
|
59887
|
-
Cell/* default.extend */.Ay.extend(publicAPI, model, initialValues);
|
|
59888
|
-
macros2.m.setGet(publicAPI, model, ['orientations', 'distanceFunction']);
|
|
59889
|
-
model.distancesTime = {};
|
|
59890
|
-
macros2.m.obj(model.distancesTime, {
|
|
59891
|
-
mtime: 0
|
|
59892
|
-
});
|
|
59893
|
-
vtkPolyLine(publicAPI, model);
|
|
59894
|
-
}
|
|
59895
|
-
|
|
59896
|
-
// ----------------------------------------------------------------------------
|
|
59897
|
-
|
|
59898
|
-
const PolyLine_newInstance = macros2.m.newInstance(PolyLine_extend, 'vtkPolyLine');
|
|
59899
|
-
|
|
59900
|
-
// ----------------------------------------------------------------------------
|
|
59901
|
-
|
|
59902
|
-
var vtkPolyLine$1 = {
|
|
59903
|
-
newInstance: PolyLine_newInstance,
|
|
59904
|
-
extend: PolyLine_extend
|
|
59905
|
-
};
|
|
59906
|
-
|
|
59907
|
-
|
|
59908
|
-
|
|
59813
|
+
// EXTERNAL MODULE: ../../../node_modules/@kitware/vtk.js/Common/DataModel/PolyLine.js
|
|
59814
|
+
var PolyLine = __webpack_require__(21186);
|
|
59909
59815
|
// EXTERNAL MODULE: ../../../node_modules/@kitware/vtk.js/Common/Core/Math/index.js
|
|
59910
59816
|
var Core_Math = __webpack_require__(8047);
|
|
59911
|
-
// EXTERNAL MODULE: ../../../node_modules/@kitware/vtk.js/Common/DataModel/Plane.js
|
|
59912
|
-
var Plane = __webpack_require__(
|
|
59817
|
+
// EXTERNAL MODULE: ../../../node_modules/@kitware/vtk.js/Common/DataModel/Plane.js
|
|
59818
|
+
var Plane = __webpack_require__(49794);
|
|
59913
59819
|
;// ../../../node_modules/@kitware/vtk.js/Common/Core/PriorityQueue.js
|
|
59914
59820
|
|
|
59915
59821
|
|
|
@@ -59980,7 +59886,7 @@ var vtkPriorityQueue$1 = {
|
|
|
59980
59886
|
// EXTERNAL MODULE: ../../../node_modules/@kitware/vtk.js/Common/DataModel/BoundingBox.js
|
|
59981
59887
|
var BoundingBox = __webpack_require__(24377);
|
|
59982
59888
|
// EXTERNAL MODULE: ../../../node_modules/@kitware/vtk.js/Common/DataModel/Line/Constants.js
|
|
59983
|
-
var
|
|
59889
|
+
var Constants = __webpack_require__(63530);
|
|
59984
59890
|
;// ../../../node_modules/@kitware/vtk.js/Common/DataModel/Polygon/Constants.js
|
|
59985
59891
|
const EPSILON = 1e-6;
|
|
59986
59892
|
const FLOAT_EPSILON = 1.1920929e-7;
|
|
@@ -60215,7 +60121,7 @@ function computeCentroid(poly, points) {
|
|
|
60215
60121
|
// Static API
|
|
60216
60122
|
// ----------------------------------------------------------------------------
|
|
60217
60123
|
|
|
60218
|
-
const
|
|
60124
|
+
const STATIC = {
|
|
60219
60125
|
PolygonWithPointIntersectionState: PolygonWithPointIntersectionState,
|
|
60220
60126
|
pointInPolygon,
|
|
60221
60127
|
getBounds,
|
|
@@ -60289,7 +60195,7 @@ function vtkPolygon(publicAPI, model) {
|
|
|
60289
60195
|
if (!oneNegative) {
|
|
60290
60196
|
oneNegative = sign <= 0 ? 1 : 0;
|
|
60291
60197
|
}
|
|
60292
|
-
if (Line/* default */.Ay.intersection(previous.point, next.point, vertex.point, previousVertex.point, [0], [0]) ===
|
|
60198
|
+
if (Line/* default */.Ay.intersection(previous.point, next.point, vertex.point, previousVertex.point, [0], [0]) === Constants/* IntersectionState */.Z.YES_INTERSECTION) {
|
|
60293
60199
|
return false;
|
|
60294
60200
|
}
|
|
60295
60201
|
currentSign = sign;
|
|
@@ -60406,211 +60312,17 @@ const Polygon_newInstance = macros2.m.newInstance(Polygon_extend, 'vtkPolygon');
|
|
|
60406
60312
|
var vtkPolygon$1 = {
|
|
60407
60313
|
newInstance: Polygon_newInstance,
|
|
60408
60314
|
extend: Polygon_extend,
|
|
60409
|
-
...
|
|
60315
|
+
...STATIC
|
|
60410
60316
|
};
|
|
60411
60317
|
|
|
60412
60318
|
|
|
60413
60319
|
|
|
60320
|
+
// EXTERNAL MODULE: ../../../node_modules/@kitware/vtk.js/Common/DataModel/Quad.js
|
|
60321
|
+
var Quad = __webpack_require__(82021);
|
|
60414
60322
|
// EXTERNAL MODULE: ../../../node_modules/@kitware/vtk.js/Common/DataModel/Triangle.js
|
|
60415
60323
|
var Triangle = __webpack_require__(96402);
|
|
60416
|
-
|
|
60417
|
-
|
|
60418
|
-
|
|
60419
|
-
|
|
60420
|
-
|
|
60421
|
-
|
|
60422
|
-
|
|
60423
|
-
|
|
60424
|
-
function intersectionStruct() {
|
|
60425
|
-
return {
|
|
60426
|
-
intersected: false,
|
|
60427
|
-
subId: -1,
|
|
60428
|
-
x: [0.0, 0.0, 0.0],
|
|
60429
|
-
pCoords: [0.0, 0.0, 0.0],
|
|
60430
|
-
t: -1
|
|
60431
|
-
};
|
|
60432
|
-
}
|
|
60433
|
-
function vtkQuad(publicAPI, model) {
|
|
60434
|
-
// Set our className
|
|
60435
|
-
model.classHierarchy.push('vtkQuad');
|
|
60436
|
-
publicAPI.getCellDimension = () => 2;
|
|
60437
|
-
publicAPI.getCellType = () => CellType.VTK_QUAD;
|
|
60438
|
-
publicAPI.getNumberOfEdges = () => 4;
|
|
60439
|
-
publicAPI.getNumberOfFaces = () => 0;
|
|
60440
|
-
publicAPI.intersectWithLine = (p1, p2, tol, x, pcoords) => {
|
|
60441
|
-
let outObj = {
|
|
60442
|
-
subId: 0,
|
|
60443
|
-
t: Number.MAX_VALUE,
|
|
60444
|
-
intersect: 0,
|
|
60445
|
-
betweenPoints: false
|
|
60446
|
-
};
|
|
60447
|
-
let diagonalCase;
|
|
60448
|
-
const point0 = model.points.getPoint(0, []);
|
|
60449
|
-
const point1 = model.points.getPoint(1, []);
|
|
60450
|
-
const point2 = model.points.getPoint(2, []);
|
|
60451
|
-
const point3 = model.points.getPoint(3, []);
|
|
60452
|
-
const d1 = (0,Core_Math.f)(point0, point2);
|
|
60453
|
-
const d2 = (0,Core_Math.f)(point1, point3);
|
|
60454
|
-
|
|
60455
|
-
/* Figure out how to uniquely tessellate the quad. Watch out for
|
|
60456
|
-
* equivalent triangulations (i.e., the triangulation is equivalent
|
|
60457
|
-
* no matter where the diagonal). In this case use the point ids as
|
|
60458
|
-
* a tie breaker to ensure unique triangulation across the quad.
|
|
60459
|
-
*/
|
|
60460
|
-
|
|
60461
|
-
// rare case; discriminate based on point id
|
|
60462
|
-
if (d1 === d2) {
|
|
60463
|
-
// find the maximum id
|
|
60464
|
-
let id;
|
|
60465
|
-
let maxId = 0;
|
|
60466
|
-
let maxIdx = 0;
|
|
60467
|
-
for (let i = 0; i < 4; i++) {
|
|
60468
|
-
id = model.pointsIds[i];
|
|
60469
|
-
if (id > maxId) {
|
|
60470
|
-
maxId = id;
|
|
60471
|
-
maxIdx = i;
|
|
60472
|
-
}
|
|
60473
|
-
}
|
|
60474
|
-
if (maxIdx === 0 || maxIdx === 2) {
|
|
60475
|
-
diagonalCase = 0;
|
|
60476
|
-
} else {
|
|
60477
|
-
diagonalCase = 1;
|
|
60478
|
-
}
|
|
60479
|
-
} else if (d1 < d2) {
|
|
60480
|
-
diagonalCase = 0;
|
|
60481
|
-
} else {
|
|
60482
|
-
diagonalCase = 1;
|
|
60483
|
-
}
|
|
60484
|
-
let points = null;
|
|
60485
|
-
if (!model.triangle) {
|
|
60486
|
-
model.triangle = Triangle/* default.newInstance */.Ay.newInstance();
|
|
60487
|
-
points = Points/* default.newInstance */.Ay.newInstance();
|
|
60488
|
-
points.setNumberOfPoints(3);
|
|
60489
|
-
model.triangle.initialize(points);
|
|
60490
|
-
} else {
|
|
60491
|
-
points = model.triangle.getPoints();
|
|
60492
|
-
}
|
|
60493
|
-
let firstIntersect;
|
|
60494
|
-
const firstIntersectTmpObj = intersectionStruct();
|
|
60495
|
-
let secondIntersect;
|
|
60496
|
-
const secondIntersectTmpObj = intersectionStruct();
|
|
60497
|
-
let useFirstIntersection;
|
|
60498
|
-
let useSecondIntersection;
|
|
60499
|
-
switch (diagonalCase) {
|
|
60500
|
-
case 0:
|
|
60501
|
-
points.setPoint(0, ...point0);
|
|
60502
|
-
points.setPoint(1, ...point1);
|
|
60503
|
-
points.setPoint(2, ...point2);
|
|
60504
|
-
firstIntersect = model.triangle.intersectWithLine(p1, p2, tol, firstIntersectTmpObj.x, firstIntersectTmpObj.pCoords);
|
|
60505
|
-
points.setPoint(0, ...point2);
|
|
60506
|
-
points.setPoint(1, ...point3);
|
|
60507
|
-
points.setPoint(2, ...point0);
|
|
60508
|
-
secondIntersect = model.triangle.intersectWithLine(p1, p2, tol, secondIntersectTmpObj.x, secondIntersectTmpObj.pCoords);
|
|
60509
|
-
useFirstIntersection = firstIntersect.intersect && secondIntersect.intersect ? firstIntersect.t <= secondIntersect.t : firstIntersect.intersect;
|
|
60510
|
-
useSecondIntersection = firstIntersect.intersect && secondIntersect.intersect ? secondIntersect.t < firstIntersect.t : secondIntersect.intersect;
|
|
60511
|
-
if (useFirstIntersection) {
|
|
60512
|
-
outObj = firstIntersect;
|
|
60513
|
-
x[0] = firstIntersectTmpObj.x[0];
|
|
60514
|
-
x[1] = firstIntersectTmpObj.x[1];
|
|
60515
|
-
x[2] = firstIntersectTmpObj.x[2];
|
|
60516
|
-
pcoords[0] = firstIntersectTmpObj.pCoords[0] + firstIntersectTmpObj.pCoords[1];
|
|
60517
|
-
pcoords[1] = firstIntersectTmpObj.pCoords[1];
|
|
60518
|
-
pcoords[2] = firstIntersectTmpObj.pCoords[2];
|
|
60519
|
-
} else if (useSecondIntersection) {
|
|
60520
|
-
outObj = secondIntersect;
|
|
60521
|
-
x[0] = secondIntersectTmpObj.x[0];
|
|
60522
|
-
x[1] = secondIntersectTmpObj.x[1];
|
|
60523
|
-
x[2] = secondIntersectTmpObj.x[2];
|
|
60524
|
-
pcoords[0] = 1.0 - (secondIntersectTmpObj.pCoords[0] + secondIntersectTmpObj.pCoords[1]);
|
|
60525
|
-
pcoords[1] = 1 - secondIntersectTmpObj.pCoords[1];
|
|
60526
|
-
pcoords[2] = secondIntersectTmpObj.pCoords[2];
|
|
60527
|
-
}
|
|
60528
|
-
break;
|
|
60529
|
-
case 1:
|
|
60530
|
-
points.setPoint(0, ...point0);
|
|
60531
|
-
points.setPoint(1, ...point1);
|
|
60532
|
-
points.setPoint(2, ...point3);
|
|
60533
|
-
firstIntersect = model.triangle.intersectWithLine(p1, p2, tol, firstIntersectTmpObj.x, firstIntersectTmpObj.pCoords);
|
|
60534
|
-
points.setPoint(0, ...point2);
|
|
60535
|
-
points.setPoint(1, ...point3);
|
|
60536
|
-
points.setPoint(2, ...point1);
|
|
60537
|
-
secondIntersect = model.triangle.intersectWithLine(p1, p2, tol, secondIntersectTmpObj.x, secondIntersectTmpObj.pCoords);
|
|
60538
|
-
useFirstIntersection = firstIntersect.intersect && secondIntersect.intersect ? firstIntersect.t <= secondIntersect.t : firstIntersect.intersect;
|
|
60539
|
-
useSecondIntersection = firstIntersect.intersect && secondIntersect.intersect ? secondIntersect.t < firstIntersect.t : secondIntersect.intersect;
|
|
60540
|
-
if (useFirstIntersection) {
|
|
60541
|
-
outObj = firstIntersect;
|
|
60542
|
-
x[0] = firstIntersectTmpObj.x[0];
|
|
60543
|
-
x[1] = firstIntersectTmpObj.x[1];
|
|
60544
|
-
x[2] = firstIntersectTmpObj.x[2];
|
|
60545
|
-
pcoords[0] = firstIntersectTmpObj.pCoords[0];
|
|
60546
|
-
pcoords[1] = firstIntersectTmpObj.pCoords[1];
|
|
60547
|
-
pcoords[2] = firstIntersectTmpObj.pCoords[2];
|
|
60548
|
-
} else if (useSecondIntersection) {
|
|
60549
|
-
outObj = secondIntersect;
|
|
60550
|
-
x[0] = secondIntersectTmpObj.x[0];
|
|
60551
|
-
x[1] = secondIntersectTmpObj.x[1];
|
|
60552
|
-
x[2] = secondIntersectTmpObj.x[2];
|
|
60553
|
-
pcoords[0] = 1 - secondIntersectTmpObj.pCoords[0];
|
|
60554
|
-
pcoords[1] = 1 - secondIntersectTmpObj.pCoords[1];
|
|
60555
|
-
pcoords[2] = secondIntersectTmpObj.pCoords[2];
|
|
60556
|
-
}
|
|
60557
|
-
break;
|
|
60558
|
-
}
|
|
60559
|
-
return outObj;
|
|
60560
|
-
};
|
|
60561
|
-
publicAPI.interpolationFunctions = (pcoords, weights) => {
|
|
60562
|
-
const rm = 1 - pcoords[0];
|
|
60563
|
-
const sm = 1 - pcoords[1];
|
|
60564
|
-
weights[0] = rm * sm;
|
|
60565
|
-
weights[1] = pcoords[0] * sm;
|
|
60566
|
-
weights[2] = pcoords[0] * pcoords[1];
|
|
60567
|
-
weights[3] = rm * pcoords[1];
|
|
60568
|
-
};
|
|
60569
|
-
publicAPI.evaluateLocation = (pcoords, x, weights) => {
|
|
60570
|
-
const point = [];
|
|
60571
|
-
|
|
60572
|
-
// Calculate the weights
|
|
60573
|
-
publicAPI.interpolationFunctions(pcoords, weights);
|
|
60574
|
-
x[0] = 0.0;
|
|
60575
|
-
x[1] = 0.0;
|
|
60576
|
-
x[2] = 0.0;
|
|
60577
|
-
for (let i = 0; i < 4; i++) {
|
|
60578
|
-
model.points.getPoint(i, point);
|
|
60579
|
-
for (let j = 0; j < 3; j++) {
|
|
60580
|
-
x[j] += point[j] * weights[i];
|
|
60581
|
-
}
|
|
60582
|
-
}
|
|
60583
|
-
};
|
|
60584
|
-
}
|
|
60585
|
-
|
|
60586
|
-
// ----------------------------------------------------------------------------
|
|
60587
|
-
// Object factory
|
|
60588
|
-
// ----------------------------------------------------------------------------
|
|
60589
|
-
|
|
60590
|
-
const Quad_DEFAULT_VALUES = {};
|
|
60591
|
-
|
|
60592
|
-
// ----------------------------------------------------------------------------
|
|
60593
|
-
|
|
60594
|
-
function Quad_extend(publicAPI, model) {
|
|
60595
|
-
let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
60596
|
-
Object.assign(model, Quad_DEFAULT_VALUES, initialValues);
|
|
60597
|
-
Cell/* default.extend */.Ay.extend(publicAPI, model, initialValues);
|
|
60598
|
-
vtkQuad(publicAPI, model);
|
|
60599
|
-
}
|
|
60600
|
-
|
|
60601
|
-
// ----------------------------------------------------------------------------
|
|
60602
|
-
|
|
60603
|
-
const Quad_newInstance = macros2.m.newInstance(Quad_extend, 'vtkQuad');
|
|
60604
|
-
|
|
60605
|
-
// ----------------------------------------------------------------------------
|
|
60606
|
-
|
|
60607
|
-
var vtkQuad$1 = {
|
|
60608
|
-
newInstance: Quad_newInstance,
|
|
60609
|
-
extend: Quad_extend
|
|
60610
|
-
};
|
|
60611
|
-
|
|
60612
|
-
|
|
60613
|
-
|
|
60324
|
+
// EXTERNAL MODULE: ../../../node_modules/@kitware/vtk.js/Common/DataModel/CellTypes/Constants.js
|
|
60325
|
+
var CellTypes_Constants = __webpack_require__(61091);
|
|
60614
60326
|
;// ../../../node_modules/@kitware/vtk.js/Common/DataModel/TriangleStrip.js
|
|
60615
60327
|
|
|
60616
60328
|
|
|
@@ -60680,7 +60392,7 @@ function vtkTriangleStrip(publicAPI, model) {
|
|
|
60680
60392
|
* Get the cell type.
|
|
60681
60393
|
* @returns {number} Cell type
|
|
60682
60394
|
*/
|
|
60683
|
-
publicAPI.getCellType = () => CellType.VTK_TRIANGLE_STRIP;
|
|
60395
|
+
publicAPI.getCellType = () => CellTypes_Constants/* CellType */.vZ.VTK_TRIANGLE_STRIP;
|
|
60684
60396
|
|
|
60685
60397
|
/**
|
|
60686
60398
|
* Get the cell dimension.
|
|
@@ -61037,13 +60749,13 @@ const {
|
|
|
61037
60749
|
vtkWarningMacro
|
|
61038
60750
|
} = macros2.m;
|
|
61039
60751
|
const CELL_FACTORY = {
|
|
61040
|
-
[CellType.VTK_LINE]: Line/* default */.Ay,
|
|
61041
|
-
[CellType.VTK_QUAD]:
|
|
61042
|
-
[CellType.VTK_POLY_LINE]: Line/* default */.Ay,
|
|
61043
|
-
[CellType.VTK_TRIANGLE]: Triangle/* default */.Ay,
|
|
61044
|
-
[CellType.VTK_TRIANGLE_STRIP]: vtkTriangleStrip$1,
|
|
61045
|
-
[CellType.VTK_POLY_LINE]:
|
|
61046
|
-
[CellType.VTK_POLYGON]: vtkPolygon$1
|
|
60752
|
+
[CellTypes_Constants/* CellType */.vZ.VTK_LINE]: Line/* default */.Ay,
|
|
60753
|
+
[CellTypes_Constants/* CellType */.vZ.VTK_QUAD]: Quad/* default */.Ay,
|
|
60754
|
+
[CellTypes_Constants/* CellType */.vZ.VTK_POLY_LINE]: Line/* default */.Ay,
|
|
60755
|
+
[CellTypes_Constants/* CellType */.vZ.VTK_TRIANGLE]: Triangle/* default */.Ay,
|
|
60756
|
+
[CellTypes_Constants/* CellType */.vZ.VTK_TRIANGLE_STRIP]: vtkTriangleStrip$1,
|
|
60757
|
+
[CellTypes_Constants/* CellType */.vZ.VTK_POLY_LINE]: PolyLine/* default */.Ay,
|
|
60758
|
+
[CellTypes_Constants/* CellType */.vZ.VTK_POLYGON]: vtkPolygon$1
|
|
61047
60759
|
};
|
|
61048
60760
|
|
|
61049
60761
|
// ----------------------------------------------------------------------------
|
|
@@ -61109,7 +60821,7 @@ function vtkPolyData(publicAPI, model) {
|
|
|
61109
60821
|
let nextCellPts = 0;
|
|
61110
60822
|
model.verts.getCellSizes().forEach((numCellPts, index) => {
|
|
61111
60823
|
pLocs[index] = nextCellPts;
|
|
61112
|
-
pTypes[index] = numCellPts > 1 ? CellType.VTK_POLY_VERTEX : CellType.VTK_VERTEX;
|
|
60824
|
+
pTypes[index] = numCellPts > 1 ? CellTypes_Constants/* CellType */.vZ.VTK_POLY_VERTEX : CellTypes_Constants/* CellType */.vZ.VTK_VERTEX;
|
|
61113
60825
|
nextCellPts += numCellPts + 1;
|
|
61114
60826
|
});
|
|
61115
60827
|
pLocs = pLocs.subarray(nVerts);
|
|
@@ -61121,7 +60833,7 @@ function vtkPolyData(publicAPI, model) {
|
|
|
61121
60833
|
let nextCellPts = 0;
|
|
61122
60834
|
model.lines.getCellSizes().forEach((numCellPts, index) => {
|
|
61123
60835
|
pLocs[index] = nextCellPts;
|
|
61124
|
-
pTypes[index] = numCellPts > 2 ? CellType.VTK_POLY_LINE : CellType.VTK_LINE;
|
|
60836
|
+
pTypes[index] = numCellPts > 2 ? CellTypes_Constants/* CellType */.vZ.VTK_POLY_LINE : CellTypes_Constants/* CellType */.vZ.VTK_LINE;
|
|
61125
60837
|
if (numCellPts === 1) {
|
|
61126
60838
|
vtkWarningMacro('Building VTK_LINE ', index, ' with only one point, but VTK_LINE needs at least two points. Check the input.');
|
|
61127
60839
|
}
|
|
@@ -61138,13 +60850,13 @@ function vtkPolyData(publicAPI, model) {
|
|
|
61138
60850
|
pLocs[index] = nextCellPts;
|
|
61139
60851
|
switch (numCellPts) {
|
|
61140
60852
|
case 3:
|
|
61141
|
-
pTypes[index] = CellType.VTK_TRIANGLE;
|
|
60853
|
+
pTypes[index] = CellTypes_Constants/* CellType */.vZ.VTK_TRIANGLE;
|
|
61142
60854
|
break;
|
|
61143
60855
|
case 4:
|
|
61144
|
-
pTypes[index] = CellType.VTK_QUAD;
|
|
60856
|
+
pTypes[index] = CellTypes_Constants/* CellType */.vZ.VTK_QUAD;
|
|
61145
60857
|
break;
|
|
61146
60858
|
default:
|
|
61147
|
-
pTypes[index] = CellType.VTK_POLYGON;
|
|
60859
|
+
pTypes[index] = CellTypes_Constants/* CellType */.vZ.VTK_POLYGON;
|
|
61148
60860
|
break;
|
|
61149
60861
|
}
|
|
61150
60862
|
if (numCellPts < 3) {
|
|
@@ -61159,7 +60871,7 @@ function vtkPolyData(publicAPI, model) {
|
|
|
61159
60871
|
// strips
|
|
61160
60872
|
if (nStrips) {
|
|
61161
60873
|
let nextCellPts = 0;
|
|
61162
|
-
pTypes.fill(CellType.VTK_TRIANGLE_STRIP, 0, nStrips);
|
|
60874
|
+
pTypes.fill(CellTypes_Constants/* CellType */.vZ.VTK_TRIANGLE_STRIP, 0, nStrips);
|
|
61163
60875
|
model.strips.getCellSizes().forEach((numCellPts, index) => {
|
|
61164
60876
|
pLocs[index] = nextCellPts;
|
|
61165
60877
|
nextCellPts += numCellPts + 1;
|
|
@@ -61167,7 +60879,7 @@ function vtkPolyData(publicAPI, model) {
|
|
|
61167
60879
|
}
|
|
61168
60880
|
|
|
61169
60881
|
// set up the cell types data structure
|
|
61170
|
-
model.cells =
|
|
60882
|
+
model.cells = CellTypes/* default.newInstance */.Ay.newInstance();
|
|
61171
60883
|
model.cells.setCellTypes(nCells, types, locs);
|
|
61172
60884
|
};
|
|
61173
60885
|
|
|
@@ -61193,20 +60905,20 @@ function vtkPolyData(publicAPI, model) {
|
|
|
61193
60905
|
const cellType = publicAPI.getCellType(cellId);
|
|
61194
60906
|
let cells = null;
|
|
61195
60907
|
switch (cellType) {
|
|
61196
|
-
case CellType.VTK_VERTEX:
|
|
61197
|
-
case CellType.VTK_POLY_VERTEX:
|
|
60908
|
+
case CellTypes_Constants/* CellType */.vZ.VTK_VERTEX:
|
|
60909
|
+
case CellTypes_Constants/* CellType */.vZ.VTK_POLY_VERTEX:
|
|
61198
60910
|
cells = model.verts;
|
|
61199
60911
|
break;
|
|
61200
|
-
case CellType.VTK_LINE:
|
|
61201
|
-
case CellType.VTK_POLY_LINE:
|
|
60912
|
+
case CellTypes_Constants/* CellType */.vZ.VTK_LINE:
|
|
60913
|
+
case CellTypes_Constants/* CellType */.vZ.VTK_POLY_LINE:
|
|
61202
60914
|
cells = model.lines;
|
|
61203
60915
|
break;
|
|
61204
|
-
case CellType.VTK_TRIANGLE:
|
|
61205
|
-
case CellType.VTK_QUAD:
|
|
61206
|
-
case CellType.VTK_POLYGON:
|
|
60916
|
+
case CellTypes_Constants/* CellType */.vZ.VTK_TRIANGLE:
|
|
60917
|
+
case CellTypes_Constants/* CellType */.vZ.VTK_QUAD:
|
|
60918
|
+
case CellTypes_Constants/* CellType */.vZ.VTK_POLYGON:
|
|
61207
60919
|
cells = model.polys;
|
|
61208
60920
|
break;
|
|
61209
|
-
case CellType.VTK_TRIANGLE_STRIP:
|
|
60921
|
+
case CellTypes_Constants/* CellType */.vZ.VTK_TRIANGLE_STRIP:
|
|
61210
60922
|
cells = model.strips;
|
|
61211
60923
|
break;
|
|
61212
60924
|
default:
|
|
@@ -61285,6 +60997,373 @@ var vtkPolyData$1 = {
|
|
|
61285
60997
|
|
|
61286
60998
|
|
|
61287
60999
|
|
|
61000
|
+
/***/ },
|
|
61001
|
+
|
|
61002
|
+
/***/ 21186
|
|
61003
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
61004
|
+
|
|
61005
|
+
"use strict";
|
|
61006
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
61007
|
+
/* harmony export */ Ay: () => (/* binding */ vtkPolyLine$1)
|
|
61008
|
+
/* harmony export */ });
|
|
61009
|
+
/* unused harmony exports extend, newInstance */
|
|
61010
|
+
/* harmony import */ var _macros2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(90027);
|
|
61011
|
+
/* harmony import */ var _Cell_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(14210);
|
|
61012
|
+
/* harmony import */ var _Line_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(35856);
|
|
61013
|
+
/* harmony import */ var gl_matrix__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(3823);
|
|
61014
|
+
|
|
61015
|
+
|
|
61016
|
+
|
|
61017
|
+
|
|
61018
|
+
|
|
61019
|
+
function vtkPolyLine(publicAPI, model) {
|
|
61020
|
+
model.classHierarchy.push('vtkPolyLine');
|
|
61021
|
+
const line = _Line_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"].newInstance */ .Ay.newInstance();
|
|
61022
|
+
line.getPoints().setNumberOfPoints(2);
|
|
61023
|
+
publicAPI.getCellDimension = () => 1;
|
|
61024
|
+
publicAPI.intersectWithLine = (t1, t2, p1, p2, tol, x, pcoords) => {
|
|
61025
|
+
const outObj = {
|
|
61026
|
+
intersect: 0,
|
|
61027
|
+
t: Number.MAX_VALUE,
|
|
61028
|
+
subId: 0,
|
|
61029
|
+
betweenPoints: null
|
|
61030
|
+
};
|
|
61031
|
+
const numLines = publicAPI.getNumberOfPoints() - 1;
|
|
61032
|
+
let pDistMin = Number.MAX_VALUE;
|
|
61033
|
+
for (let subId = 0; subId < numLines; subId++) {
|
|
61034
|
+
const pCoords = [0, 0, 0];
|
|
61035
|
+
line.getPoints().getData().set(model.points.getData().subarray(3 * subId, 3 * (subId + 2)));
|
|
61036
|
+
const lineIntersected = line.intersectWithLine(p1, p2, tol, x, pcoords);
|
|
61037
|
+
if (lineIntersected.intersect === 1 && lineIntersected.t <= outObj.t + tol && lineIntersected.t >= t1 && lineIntersected.t <= t2) {
|
|
61038
|
+
outObj.intersect = 1;
|
|
61039
|
+
const pDist = line.getParametricDistance(pCoords);
|
|
61040
|
+
if (pDist < pDistMin || pDist === pDistMin && lineIntersected.t < outObj.t) {
|
|
61041
|
+
outObj.subId = subId;
|
|
61042
|
+
outObj.t = lineIntersected.t;
|
|
61043
|
+
pDistMin = pDist;
|
|
61044
|
+
for (let k = 0; k < 3; k++) {
|
|
61045
|
+
x[k];
|
|
61046
|
+
pCoords[k];
|
|
61047
|
+
}
|
|
61048
|
+
}
|
|
61049
|
+
}
|
|
61050
|
+
}
|
|
61051
|
+
return outObj;
|
|
61052
|
+
};
|
|
61053
|
+
publicAPI.evaluateLocation = (subId, pcoords, x, weights) => {
|
|
61054
|
+
line.getPoints().getData().set(model.points.getData().subarray(3 * subId, 3 * (subId + 2)));
|
|
61055
|
+
return line.evaluateLocation(pcoords, x, weights);
|
|
61056
|
+
};
|
|
61057
|
+
publicAPI.evaluateOrientation = (subId, pcoords, q, weights) => {
|
|
61058
|
+
if (model.orientations) {
|
|
61059
|
+
line.setOrientations([model.orientations[subId], model.orientations[subId + 1]]);
|
|
61060
|
+
} else {
|
|
61061
|
+
line.setOrientations(null);
|
|
61062
|
+
}
|
|
61063
|
+
return line.evaluateOrientation(pcoords, q, weights);
|
|
61064
|
+
};
|
|
61065
|
+
publicAPI.getDistancesToFirstPoint = () => {
|
|
61066
|
+
const dTime = model.distancesTime.getMTime();
|
|
61067
|
+
if (dTime < model.points.getMTime() || dTime < publicAPI.getMTime()) {
|
|
61068
|
+
const numPoints = publicAPI.getNumberOfPoints();
|
|
61069
|
+
if (!model.distances) {
|
|
61070
|
+
model.distances = new Array(numPoints);
|
|
61071
|
+
} else {
|
|
61072
|
+
model.distances.length = numPoints;
|
|
61073
|
+
}
|
|
61074
|
+
if (numPoints > 0) {
|
|
61075
|
+
const previousPoint = new Array(3);
|
|
61076
|
+
const currentPoint = new Array(3);
|
|
61077
|
+
let totalDistance = 0;
|
|
61078
|
+
model.distances[0] = totalDistance;
|
|
61079
|
+
model.points.getPoint(0, previousPoint);
|
|
61080
|
+
for (let i = 1; i < numPoints; ++i) {
|
|
61081
|
+
model.points.getPoint(i, currentPoint);
|
|
61082
|
+
totalDistance += model.distanceFunction(previousPoint, currentPoint);
|
|
61083
|
+
model.distances[i] = totalDistance;
|
|
61084
|
+
gl_matrix__WEBPACK_IMPORTED_MODULE_3__/* .vec3.copy */ .eR.copy(previousPoint, currentPoint);
|
|
61085
|
+
}
|
|
61086
|
+
}
|
|
61087
|
+
model.distancesTime.modified();
|
|
61088
|
+
}
|
|
61089
|
+
return model.distances;
|
|
61090
|
+
};
|
|
61091
|
+
publicAPI.findPointIdAtDistanceFromFirstPoint = distance => {
|
|
61092
|
+
const distances = publicAPI.getDistancesToFirstPoint();
|
|
61093
|
+
// At least two points to return an ID
|
|
61094
|
+
if (distances.length < 2) {
|
|
61095
|
+
return -1;
|
|
61096
|
+
}
|
|
61097
|
+
// Binary search in the distance array
|
|
61098
|
+
let minId = 0;
|
|
61099
|
+
let maxId = distances.length - 1;
|
|
61100
|
+
if (distance < distances[minId] || distance > distances[maxId] || distances[maxId] === 0) {
|
|
61101
|
+
return -1;
|
|
61102
|
+
}
|
|
61103
|
+
while (maxId - minId > 1) {
|
|
61104
|
+
const midId = Math.floor((minId + maxId) / 2);
|
|
61105
|
+
if (distances[midId] <= distance) {
|
|
61106
|
+
minId = midId;
|
|
61107
|
+
} else {
|
|
61108
|
+
maxId = midId;
|
|
61109
|
+
}
|
|
61110
|
+
}
|
|
61111
|
+
return minId;
|
|
61112
|
+
};
|
|
61113
|
+
}
|
|
61114
|
+
|
|
61115
|
+
// ----------------------------------------------------------------------------
|
|
61116
|
+
// Object factory
|
|
61117
|
+
// ----------------------------------------------------------------------------
|
|
61118
|
+
|
|
61119
|
+
const DEFAULT_VALUES = {
|
|
61120
|
+
orientations: null,
|
|
61121
|
+
// an array of quat or null
|
|
61122
|
+
distanceFunction: gl_matrix__WEBPACK_IMPORTED_MODULE_3__/* .vec3.dist */ .eR.dist
|
|
61123
|
+
};
|
|
61124
|
+
|
|
61125
|
+
// ----------------------------------------------------------------------------
|
|
61126
|
+
|
|
61127
|
+
function extend(publicAPI, model) {
|
|
61128
|
+
let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
61129
|
+
Object.assign(model, DEFAULT_VALUES, initialValues);
|
|
61130
|
+
_Cell_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"].extend */ .Ay.extend(publicAPI, model, initialValues);
|
|
61131
|
+
_macros2_js__WEBPACK_IMPORTED_MODULE_0__.m.setGet(publicAPI, model, ['orientations', 'distanceFunction']);
|
|
61132
|
+
model.distancesTime = {};
|
|
61133
|
+
_macros2_js__WEBPACK_IMPORTED_MODULE_0__.m.obj(model.distancesTime, {
|
|
61134
|
+
mtime: 0
|
|
61135
|
+
});
|
|
61136
|
+
vtkPolyLine(publicAPI, model);
|
|
61137
|
+
}
|
|
61138
|
+
|
|
61139
|
+
// ----------------------------------------------------------------------------
|
|
61140
|
+
|
|
61141
|
+
const newInstance = _macros2_js__WEBPACK_IMPORTED_MODULE_0__.m.newInstance(extend, 'vtkPolyLine');
|
|
61142
|
+
|
|
61143
|
+
// ----------------------------------------------------------------------------
|
|
61144
|
+
|
|
61145
|
+
var vtkPolyLine$1 = {
|
|
61146
|
+
newInstance,
|
|
61147
|
+
extend
|
|
61148
|
+
};
|
|
61149
|
+
|
|
61150
|
+
|
|
61151
|
+
|
|
61152
|
+
|
|
61153
|
+
/***/ },
|
|
61154
|
+
|
|
61155
|
+
/***/ 82021
|
|
61156
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
61157
|
+
|
|
61158
|
+
"use strict";
|
|
61159
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
61160
|
+
/* harmony export */ Ay: () => (/* binding */ vtkQuad$1)
|
|
61161
|
+
/* harmony export */ });
|
|
61162
|
+
/* unused harmony exports extend, newInstance */
|
|
61163
|
+
/* harmony import */ var _macros2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(90027);
|
|
61164
|
+
/* harmony import */ var _Cell_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(14210);
|
|
61165
|
+
/* harmony import */ var _Core_Math_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8047);
|
|
61166
|
+
/* harmony import */ var _CellTypes_Constants_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(61091);
|
|
61167
|
+
/* harmony import */ var _Triangle_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(96402);
|
|
61168
|
+
/* harmony import */ var _Core_Points_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(74973);
|
|
61169
|
+
|
|
61170
|
+
|
|
61171
|
+
|
|
61172
|
+
|
|
61173
|
+
|
|
61174
|
+
|
|
61175
|
+
|
|
61176
|
+
function intersectionStruct() {
|
|
61177
|
+
return {
|
|
61178
|
+
intersected: false,
|
|
61179
|
+
subId: -1,
|
|
61180
|
+
x: [0.0, 0.0, 0.0],
|
|
61181
|
+
pCoords: [0.0, 0.0, 0.0],
|
|
61182
|
+
t: -1
|
|
61183
|
+
};
|
|
61184
|
+
}
|
|
61185
|
+
function vtkQuad(publicAPI, model) {
|
|
61186
|
+
// Set our className
|
|
61187
|
+
model.classHierarchy.push('vtkQuad');
|
|
61188
|
+
publicAPI.getCellDimension = () => 2;
|
|
61189
|
+
publicAPI.getCellType = () => _CellTypes_Constants_js__WEBPACK_IMPORTED_MODULE_3__/* .CellType */ .vZ.VTK_QUAD;
|
|
61190
|
+
publicAPI.getNumberOfEdges = () => 4;
|
|
61191
|
+
publicAPI.getNumberOfFaces = () => 0;
|
|
61192
|
+
publicAPI.intersectWithLine = (p1, p2, tol, x, pcoords) => {
|
|
61193
|
+
let outObj = {
|
|
61194
|
+
subId: 0,
|
|
61195
|
+
t: Number.MAX_VALUE,
|
|
61196
|
+
intersect: 0,
|
|
61197
|
+
betweenPoints: false
|
|
61198
|
+
};
|
|
61199
|
+
let diagonalCase;
|
|
61200
|
+
const point0 = model.points.getPoint(0, []);
|
|
61201
|
+
const point1 = model.points.getPoint(1, []);
|
|
61202
|
+
const point2 = model.points.getPoint(2, []);
|
|
61203
|
+
const point3 = model.points.getPoint(3, []);
|
|
61204
|
+
const d1 = (0,_Core_Math_index_js__WEBPACK_IMPORTED_MODULE_2__.f)(point0, point2);
|
|
61205
|
+
const d2 = (0,_Core_Math_index_js__WEBPACK_IMPORTED_MODULE_2__.f)(point1, point3);
|
|
61206
|
+
|
|
61207
|
+
/* Figure out how to uniquely tessellate the quad. Watch out for
|
|
61208
|
+
* equivalent triangulations (i.e., the triangulation is equivalent
|
|
61209
|
+
* no matter where the diagonal). In this case use the point ids as
|
|
61210
|
+
* a tie breaker to ensure unique triangulation across the quad.
|
|
61211
|
+
*/
|
|
61212
|
+
|
|
61213
|
+
// rare case; discriminate based on point id
|
|
61214
|
+
if (d1 === d2) {
|
|
61215
|
+
// find the maximum id
|
|
61216
|
+
let id;
|
|
61217
|
+
let maxId = 0;
|
|
61218
|
+
let maxIdx = 0;
|
|
61219
|
+
for (let i = 0; i < 4; i++) {
|
|
61220
|
+
id = model.pointsIds[i];
|
|
61221
|
+
if (id > maxId) {
|
|
61222
|
+
maxId = id;
|
|
61223
|
+
maxIdx = i;
|
|
61224
|
+
}
|
|
61225
|
+
}
|
|
61226
|
+
if (maxIdx === 0 || maxIdx === 2) {
|
|
61227
|
+
diagonalCase = 0;
|
|
61228
|
+
} else {
|
|
61229
|
+
diagonalCase = 1;
|
|
61230
|
+
}
|
|
61231
|
+
} else if (d1 < d2) {
|
|
61232
|
+
diagonalCase = 0;
|
|
61233
|
+
} else {
|
|
61234
|
+
diagonalCase = 1;
|
|
61235
|
+
}
|
|
61236
|
+
let points = null;
|
|
61237
|
+
if (!model.triangle) {
|
|
61238
|
+
model.triangle = _Triangle_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"].newInstance */ .Ay.newInstance();
|
|
61239
|
+
points = _Core_Points_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"].newInstance */ .Ay.newInstance();
|
|
61240
|
+
points.setNumberOfPoints(3);
|
|
61241
|
+
model.triangle.initialize(points);
|
|
61242
|
+
} else {
|
|
61243
|
+
points = model.triangle.getPoints();
|
|
61244
|
+
}
|
|
61245
|
+
let firstIntersect;
|
|
61246
|
+
const firstIntersectTmpObj = intersectionStruct();
|
|
61247
|
+
let secondIntersect;
|
|
61248
|
+
const secondIntersectTmpObj = intersectionStruct();
|
|
61249
|
+
let useFirstIntersection;
|
|
61250
|
+
let useSecondIntersection;
|
|
61251
|
+
switch (diagonalCase) {
|
|
61252
|
+
case 0:
|
|
61253
|
+
points.setPoint(0, ...point0);
|
|
61254
|
+
points.setPoint(1, ...point1);
|
|
61255
|
+
points.setPoint(2, ...point2);
|
|
61256
|
+
firstIntersect = model.triangle.intersectWithLine(p1, p2, tol, firstIntersectTmpObj.x, firstIntersectTmpObj.pCoords);
|
|
61257
|
+
points.setPoint(0, ...point2);
|
|
61258
|
+
points.setPoint(1, ...point3);
|
|
61259
|
+
points.setPoint(2, ...point0);
|
|
61260
|
+
secondIntersect = model.triangle.intersectWithLine(p1, p2, tol, secondIntersectTmpObj.x, secondIntersectTmpObj.pCoords);
|
|
61261
|
+
useFirstIntersection = firstIntersect.intersect && secondIntersect.intersect ? firstIntersect.t <= secondIntersect.t : firstIntersect.intersect;
|
|
61262
|
+
useSecondIntersection = firstIntersect.intersect && secondIntersect.intersect ? secondIntersect.t < firstIntersect.t : secondIntersect.intersect;
|
|
61263
|
+
if (useFirstIntersection) {
|
|
61264
|
+
outObj = firstIntersect;
|
|
61265
|
+
x[0] = firstIntersectTmpObj.x[0];
|
|
61266
|
+
x[1] = firstIntersectTmpObj.x[1];
|
|
61267
|
+
x[2] = firstIntersectTmpObj.x[2];
|
|
61268
|
+
pcoords[0] = firstIntersectTmpObj.pCoords[0] + firstIntersectTmpObj.pCoords[1];
|
|
61269
|
+
pcoords[1] = firstIntersectTmpObj.pCoords[1];
|
|
61270
|
+
pcoords[2] = firstIntersectTmpObj.pCoords[2];
|
|
61271
|
+
} else if (useSecondIntersection) {
|
|
61272
|
+
outObj = secondIntersect;
|
|
61273
|
+
x[0] = secondIntersectTmpObj.x[0];
|
|
61274
|
+
x[1] = secondIntersectTmpObj.x[1];
|
|
61275
|
+
x[2] = secondIntersectTmpObj.x[2];
|
|
61276
|
+
pcoords[0] = 1.0 - (secondIntersectTmpObj.pCoords[0] + secondIntersectTmpObj.pCoords[1]);
|
|
61277
|
+
pcoords[1] = 1 - secondIntersectTmpObj.pCoords[1];
|
|
61278
|
+
pcoords[2] = secondIntersectTmpObj.pCoords[2];
|
|
61279
|
+
}
|
|
61280
|
+
break;
|
|
61281
|
+
case 1:
|
|
61282
|
+
points.setPoint(0, ...point0);
|
|
61283
|
+
points.setPoint(1, ...point1);
|
|
61284
|
+
points.setPoint(2, ...point3);
|
|
61285
|
+
firstIntersect = model.triangle.intersectWithLine(p1, p2, tol, firstIntersectTmpObj.x, firstIntersectTmpObj.pCoords);
|
|
61286
|
+
points.setPoint(0, ...point2);
|
|
61287
|
+
points.setPoint(1, ...point3);
|
|
61288
|
+
points.setPoint(2, ...point1);
|
|
61289
|
+
secondIntersect = model.triangle.intersectWithLine(p1, p2, tol, secondIntersectTmpObj.x, secondIntersectTmpObj.pCoords);
|
|
61290
|
+
useFirstIntersection = firstIntersect.intersect && secondIntersect.intersect ? firstIntersect.t <= secondIntersect.t : firstIntersect.intersect;
|
|
61291
|
+
useSecondIntersection = firstIntersect.intersect && secondIntersect.intersect ? secondIntersect.t < firstIntersect.t : secondIntersect.intersect;
|
|
61292
|
+
if (useFirstIntersection) {
|
|
61293
|
+
outObj = firstIntersect;
|
|
61294
|
+
x[0] = firstIntersectTmpObj.x[0];
|
|
61295
|
+
x[1] = firstIntersectTmpObj.x[1];
|
|
61296
|
+
x[2] = firstIntersectTmpObj.x[2];
|
|
61297
|
+
pcoords[0] = firstIntersectTmpObj.pCoords[0];
|
|
61298
|
+
pcoords[1] = firstIntersectTmpObj.pCoords[1];
|
|
61299
|
+
pcoords[2] = firstIntersectTmpObj.pCoords[2];
|
|
61300
|
+
} else if (useSecondIntersection) {
|
|
61301
|
+
outObj = secondIntersect;
|
|
61302
|
+
x[0] = secondIntersectTmpObj.x[0];
|
|
61303
|
+
x[1] = secondIntersectTmpObj.x[1];
|
|
61304
|
+
x[2] = secondIntersectTmpObj.x[2];
|
|
61305
|
+
pcoords[0] = 1 - secondIntersectTmpObj.pCoords[0];
|
|
61306
|
+
pcoords[1] = 1 - secondIntersectTmpObj.pCoords[1];
|
|
61307
|
+
pcoords[2] = secondIntersectTmpObj.pCoords[2];
|
|
61308
|
+
}
|
|
61309
|
+
break;
|
|
61310
|
+
}
|
|
61311
|
+
return outObj;
|
|
61312
|
+
};
|
|
61313
|
+
publicAPI.interpolationFunctions = (pcoords, weights) => {
|
|
61314
|
+
const rm = 1 - pcoords[0];
|
|
61315
|
+
const sm = 1 - pcoords[1];
|
|
61316
|
+
weights[0] = rm * sm;
|
|
61317
|
+
weights[1] = pcoords[0] * sm;
|
|
61318
|
+
weights[2] = pcoords[0] * pcoords[1];
|
|
61319
|
+
weights[3] = rm * pcoords[1];
|
|
61320
|
+
};
|
|
61321
|
+
publicAPI.evaluateLocation = (pcoords, x, weights) => {
|
|
61322
|
+
const point = [];
|
|
61323
|
+
|
|
61324
|
+
// Calculate the weights
|
|
61325
|
+
publicAPI.interpolationFunctions(pcoords, weights);
|
|
61326
|
+
x[0] = 0.0;
|
|
61327
|
+
x[1] = 0.0;
|
|
61328
|
+
x[2] = 0.0;
|
|
61329
|
+
for (let i = 0; i < 4; i++) {
|
|
61330
|
+
model.points.getPoint(i, point);
|
|
61331
|
+
for (let j = 0; j < 3; j++) {
|
|
61332
|
+
x[j] += point[j] * weights[i];
|
|
61333
|
+
}
|
|
61334
|
+
}
|
|
61335
|
+
};
|
|
61336
|
+
}
|
|
61337
|
+
|
|
61338
|
+
// ----------------------------------------------------------------------------
|
|
61339
|
+
// Object factory
|
|
61340
|
+
// ----------------------------------------------------------------------------
|
|
61341
|
+
|
|
61342
|
+
const DEFAULT_VALUES = {};
|
|
61343
|
+
|
|
61344
|
+
// ----------------------------------------------------------------------------
|
|
61345
|
+
|
|
61346
|
+
function extend(publicAPI, model) {
|
|
61347
|
+
let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
61348
|
+
Object.assign(model, DEFAULT_VALUES, initialValues);
|
|
61349
|
+
_Cell_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"].extend */ .Ay.extend(publicAPI, model, initialValues);
|
|
61350
|
+
vtkQuad(publicAPI, model);
|
|
61351
|
+
}
|
|
61352
|
+
|
|
61353
|
+
// ----------------------------------------------------------------------------
|
|
61354
|
+
|
|
61355
|
+
const newInstance = _macros2_js__WEBPACK_IMPORTED_MODULE_0__.m.newInstance(extend, 'vtkQuad');
|
|
61356
|
+
|
|
61357
|
+
// ----------------------------------------------------------------------------
|
|
61358
|
+
|
|
61359
|
+
var vtkQuad$1 = {
|
|
61360
|
+
newInstance,
|
|
61361
|
+
extend
|
|
61362
|
+
};
|
|
61363
|
+
|
|
61364
|
+
|
|
61365
|
+
|
|
61366
|
+
|
|
61288
61367
|
/***/ },
|
|
61289
61368
|
|
|
61290
61369
|
/***/ 96402
|
|
@@ -61299,7 +61378,7 @@ var vtkPolyData$1 = {
|
|
|
61299
61378
|
/* harmony import */ var _Cell_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(14210);
|
|
61300
61379
|
/* harmony import */ var _Core_Math_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8047);
|
|
61301
61380
|
/* harmony import */ var _Line_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(35856);
|
|
61302
|
-
/* harmony import */ var _Plane_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
|
|
61381
|
+
/* harmony import */ var _Plane_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(49794);
|
|
61303
61382
|
|
|
61304
61383
|
|
|
61305
61384
|
|
|
@@ -62022,7 +62101,7 @@ var vtkTriangle$1 = {
|
|
|
62022
62101
|
/* unused harmony exports extend, newInstance */
|
|
62023
62102
|
/* harmony import */ var _macros2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(90027);
|
|
62024
62103
|
/* harmony import */ var _Common_Core_DataArray_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(445);
|
|
62025
|
-
/* harmony import */ var _Common_DataModel_PolyData_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
|
|
62104
|
+
/* harmony import */ var _Common_DataModel_PolyData_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(27480);
|
|
62026
62105
|
|
|
62027
62106
|
|
|
62028
62107
|
|
|
@@ -62375,7 +62454,7 @@ var vtkCutter$1 = {
|
|
|
62375
62454
|
/* harmony import */ var _macros2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(90027);
|
|
62376
62455
|
/* harmony import */ var _Common_Core_CellArray_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(32461);
|
|
62377
62456
|
/* harmony import */ var _Common_Core_DataArray_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(445);
|
|
62378
|
-
/* harmony import */ var _Common_DataModel_PolyData_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
|
|
62457
|
+
/* harmony import */ var _Common_DataModel_PolyData_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(27480);
|
|
62379
62458
|
/* harmony import */ var _Common_Core_MatrixBuilder_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(90364);
|
|
62380
62459
|
|
|
62381
62460
|
|
|
@@ -63013,8 +63092,8 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
63013
63092
|
|
|
63014
63093
|
// EXTERNAL MODULE: ../../../node_modules/@kitware/vtk.js/macros2.js
|
|
63015
63094
|
var macros2 = __webpack_require__(90027);
|
|
63016
|
-
// EXTERNAL MODULE: ../../../node_modules/@kitware/vtk.js/Common/DataModel/PolyData.js +
|
|
63017
|
-
var PolyData = __webpack_require__(
|
|
63095
|
+
// EXTERNAL MODULE: ../../../node_modules/@kitware/vtk.js/Common/DataModel/PolyData.js + 7 modules
|
|
63096
|
+
var PolyData = __webpack_require__(27480);
|
|
63018
63097
|
// EXTERNAL MODULE: ../../../node_modules/xmlbuilder2/lib/xmlbuilder2.min.js
|
|
63019
63098
|
var xmlbuilder2_min = __webpack_require__(14235);
|
|
63020
63099
|
;// ../../../node_modules/fflate/esm/browser.js
|