@kitware/vtk.js 26.9.0 → 26.9.2
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.
|
@@ -171,7 +171,6 @@ function convertItkToVtkImage(itkImage) {
|
|
|
171
171
|
*
|
|
172
172
|
*/
|
|
173
173
|
|
|
174
|
-
|
|
175
174
|
function convertVtkToItkImage(vtkImage) {
|
|
176
175
|
var copyData = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
177
176
|
var dimension = 3;
|
|
@@ -226,7 +225,6 @@ function convertVtkToItkImage(vtkImage) {
|
|
|
226
225
|
* Requires an itk-wasm PolyData as input.
|
|
227
226
|
*/
|
|
228
227
|
|
|
229
|
-
|
|
230
228
|
function convertItkToVtkPolyData(itkPolyData) {
|
|
231
229
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
232
230
|
var pointDataArrays = [];
|
|
@@ -492,7 +490,6 @@ function convertItkToVtkPolyData(itkPolyData) {
|
|
|
492
490
|
*
|
|
493
491
|
*/
|
|
494
492
|
|
|
495
|
-
|
|
496
493
|
function convertVtkToItkPolyData(polyData) {
|
|
497
494
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
498
495
|
var itkPolyData = {
|
|
@@ -560,7 +557,6 @@ function convertVtkToItkPolyData(polyData) {
|
|
|
560
557
|
|
|
561
558
|
return itkPolyData;
|
|
562
559
|
}
|
|
563
|
-
|
|
564
560
|
var ITKHelper = {
|
|
565
561
|
convertItkToVtkImage: convertItkToVtkImage,
|
|
566
562
|
convertVtkToItkImage: convertVtkToItkImage,
|
|
@@ -568,4 +564,4 @@ var ITKHelper = {
|
|
|
568
564
|
convertVtkToItkPolyData: convertVtkToItkPolyData
|
|
569
565
|
};
|
|
570
566
|
|
|
571
|
-
export { ITKHelper as default };
|
|
567
|
+
export { convertItkToVtkImage, convertItkToVtkPolyData, convertVtkToItkImage, convertVtkToItkPolyData, ITKHelper as default };
|
|
@@ -268,8 +268,9 @@ function vtkImageMarchingCubes(publicAPI, model) {
|
|
|
268
268
|
publicAPI.produceTriangles(model.contourValue, i, j, k, extent, slice, dims, origin, spacing, s, pBuffer, tBuffer, nBuffer);
|
|
269
269
|
}
|
|
270
270
|
}
|
|
271
|
-
}
|
|
271
|
+
}
|
|
272
272
|
|
|
273
|
+
edgeLocator.initialize(); // Update output
|
|
273
274
|
|
|
274
275
|
var polydata = vtkPolyData.newInstance();
|
|
275
276
|
polydata.getPoints().setData(new Float32Array(pBuffer), 3);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kitware/vtk.js",
|
|
3
|
-
"version": "26.9.
|
|
3
|
+
"version": "26.9.2",
|
|
4
4
|
"description": "Visualization Toolkit for the Web",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"3d",
|
|
@@ -129,6 +129,8 @@
|
|
|
129
129
|
"xml2js": "0.4.23"
|
|
130
130
|
},
|
|
131
131
|
"peerDependencies": {
|
|
132
|
+
"@babel/preset-env": "^7.17.10",
|
|
133
|
+
"autoprefixer": "^10.4.7",
|
|
132
134
|
"wslink": "^1.1.0"
|
|
133
135
|
},
|
|
134
136
|
"scripts": {
|