@kitware/vtk.js 24.4.1 → 24.5.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.
Files changed (140) hide show
  1. package/Common/Core/Base64.d.ts +4 -2
  2. package/Common/Core/CellArray.d.ts +2 -2
  3. package/Common/Core/DataArray.d.ts +2 -2
  4. package/Common/Core/Endian.d.ts +1 -1
  5. package/Common/Core/ImageHelper.d.ts +1 -1
  6. package/Common/Core/LookupTable.d.ts +1 -1
  7. package/Common/Core/Math/index.js +1 -1
  8. package/Common/Core/Math.d.ts +1 -1
  9. package/Common/Core/Math.js +1 -1
  10. package/Common/Core/MatrixBuilder.d.ts +1 -1
  11. package/Common/Core/Points.d.ts +2 -2
  12. package/Common/Core/PriorityQueue.d.ts +1 -1
  13. package/Common/Core/ProgressHandler.d.ts +1 -1
  14. package/Common/Core/ScalarsToColors.d.ts +3 -3
  15. package/Common/Core/StringArray.d.ts +1 -1
  16. package/Common/Core/VariantArray.d.ts +1 -1
  17. package/Common/DataModel/Box.d.ts +2 -2
  18. package/Common/DataModel/CardinalSpline1D.d.ts +1 -1
  19. package/Common/DataModel/Cell.d.ts +3 -3
  20. package/Common/DataModel/Cone.d.ts +2 -2
  21. package/Common/DataModel/Cylinder.d.ts +2 -2
  22. package/Common/DataModel/DataSet.d.ts +1 -1
  23. package/Common/DataModel/DataSetAttributes/FieldData.d.ts +1 -1
  24. package/Common/DataModel/DataSetAttributes.d.ts +3 -3
  25. package/Common/DataModel/ImageData.d.ts +1 -1
  26. package/Common/DataModel/Line.d.ts +1 -1
  27. package/Common/DataModel/PiecewiseFunction.d.ts +2 -2
  28. package/Common/DataModel/Plane.d.ts +2 -2
  29. package/Common/DataModel/PointSet.d.ts +2 -2
  30. package/Common/DataModel/PolyData.d.ts +2 -2
  31. package/Common/DataModel/Polygon.d.ts +2 -2
  32. package/Common/DataModel/SelectionNode.d.ts +2 -2
  33. package/Common/DataModel/Sphere.d.ts +2 -2
  34. package/Common/DataModel/Spline1D.d.ts +1 -1
  35. package/Common/DataModel/Spline3D.d.ts +1 -1
  36. package/Common/DataModel/Triangle.d.ts +1 -1
  37. package/Common/Transform/LandmarkTransform.d.ts +2 -2
  38. package/Filters/Core/PolyDataNormals.js +124 -0
  39. package/Filters/Core.js +3 -1
  40. package/Filters/General/AppendPolyData.d.ts +1 -1
  41. package/Filters/General/ImageCropFilter.d.ts +1 -1
  42. package/Filters/General/ImageOutlineFilter.d.ts +1 -1
  43. package/Filters/General/ImageSliceFilter.d.ts +1 -1
  44. package/Filters/General/ImageStreamline.d.ts +3 -3
  45. package/Filters/General/LineFilter.d.ts +1 -1
  46. package/Filters/General/OBBTree.js +1 -1
  47. package/Filters/General/OutlineFilter.d.ts +1 -1
  48. package/Filters/General/TriangleFilter.d.ts +1 -1
  49. package/Filters/General/TubeFilter.d.ts +2 -2
  50. package/Filters/General/WindowedSincPolyDataFilter.js +1 -1
  51. package/Filters/Sources/Arrow2DSource.d.ts +2 -2
  52. package/Filters/Sources/ArrowSource.d.ts +2 -2
  53. package/Filters/Sources/CircleSource.d.ts +2 -2
  54. package/Filters/Sources/ConeSource.d.ts +2 -2
  55. package/Filters/Sources/CubeSource.d.ts +2 -2
  56. package/Filters/Sources/Cursor3D.d.ts +3 -3
  57. package/Filters/Sources/CylinderSource.d.ts +2 -2
  58. package/Filters/Sources/LineSource.d.ts +2 -2
  59. package/Filters/Sources/PlaneSource.d.ts +2 -2
  60. package/Filters/Sources/PointSource.d.ts +2 -2
  61. package/Filters/Sources/SphereSource.d.ts +2 -2
  62. package/Filters/Texture/TextureMapToPlane.d.ts +1 -1
  63. package/Filters/Texture/TextureMapToSphere.d.ts +1 -1
  64. package/IO/Core/DataAccessHelper.d.ts +4 -4
  65. package/IO/Core/HttpDataSetReader.d.ts +1 -1
  66. package/IO/Core/HttpSceneLoader.d.ts +5 -5
  67. package/IO/Core/ImageStream/DefaultProtocol.d.ts +1 -1
  68. package/IO/Core/ImageStream/ViewStream.d.ts +4 -4
  69. package/IO/Core/ImageStream.d.ts +3 -3
  70. package/IO/Core/WSLinkClient.d.ts +1 -1
  71. package/IO/Geometry/DracoReader.d.ts +5 -5
  72. package/IO/Geometry/PLYReader.d.ts +5 -5
  73. package/IO/Geometry/PLYWriter.d.ts +2 -2
  74. package/IO/Geometry/STLReader.d.ts +5 -5
  75. package/IO/Geometry/STLWriter.d.ts +2 -2
  76. package/IO/Misc/ElevationReader.d.ts +5 -5
  77. package/IO/Misc/ITKImageReader.d.ts +1 -1
  78. package/IO/Misc/ITKPolyDataReader.d.ts +1 -1
  79. package/IO/Misc/JSONNucleoReader.d.ts +5 -5
  80. package/IO/Misc/JSONReader.d.ts +1 -1
  81. package/IO/Misc/MTLReader.d.ts +6 -6
  82. package/IO/Misc/OBJReader.d.ts +38 -7
  83. package/IO/Misc/OBJReader.js +132 -34
  84. package/IO/Misc/PDBReader.d.ts +5 -5
  85. package/IO/XML/XMLReader.d.ts +5 -5
  86. package/Interaction/Widgets/OrientationMarkerWidget.d.ts +6 -6
  87. package/Rendering/Core/AbstractMapper.d.ts +2 -2
  88. package/Rendering/Core/AbstractMapper3D.d.ts +1 -1
  89. package/Rendering/Core/AbstractPicker.d.ts +2 -2
  90. package/Rendering/Core/Actor.d.ts +1 -1
  91. package/Rendering/Core/Actor2D.d.ts +1 -1
  92. package/Rendering/Core/Camera.d.ts +2 -2
  93. package/Rendering/Core/CellPicker.d.ts +2 -2
  94. package/Rendering/Core/ColorTransferFunction.d.ts +1 -1
  95. package/Rendering/Core/Coordinate.d.ts +1 -1
  96. package/Rendering/Core/Glyph3DMapper.d.ts +1 -1
  97. package/Rendering/Core/ImageMapper.d.ts +1 -1
  98. package/Rendering/Core/ImageProperty.d.ts +1 -1
  99. package/Rendering/Core/ImageSlice.d.ts +1 -1
  100. package/Rendering/Core/Light.d.ts +2 -2
  101. package/Rendering/Core/Mapper.d.ts +1 -1
  102. package/Rendering/Core/Mapper2D.d.ts +1 -1
  103. package/Rendering/Core/Picker.d.ts +1 -1
  104. package/Rendering/Core/PointPicker.d.ts +1 -1
  105. package/Rendering/Core/Prop.d.ts +1 -1
  106. package/Rendering/Core/Prop3D.d.ts +1 -1
  107. package/Rendering/Core/Property.d.ts +2 -2
  108. package/Rendering/Core/Property2D.d.ts +2 -2
  109. package/Rendering/Core/RenderWindow.d.ts +2 -2
  110. package/Rendering/Core/RenderWindowInteractor.d.ts +1 -1
  111. package/Rendering/Core/Renderer.d.ts +1 -1
  112. package/Rendering/Core/ScalarBarActor.d.ts +2 -2
  113. package/Rendering/Core/Texture.d.ts +1 -1
  114. package/Rendering/Core/Viewport.d.ts +2 -2
  115. package/Rendering/Core/Volume.d.ts +1 -1
  116. package/Rendering/Core/VolumeMapper.d.ts +1 -1
  117. package/Rendering/Core/VolumeProperty.d.ts +1 -1
  118. package/Rendering/Misc/CanvasView.d.ts +2 -2
  119. package/Rendering/Misc/FullScreenRenderWindow.d.ts +8 -8
  120. package/Rendering/Misc/GenericRenderWindow.d.ts +6 -6
  121. package/Rendering/Misc/RemoteView.d.ts +2 -2
  122. package/Rendering/Misc/RenderWindowWithControlBar.d.ts +1 -1
  123. package/Rendering/Misc/SynchronizableRenderWindow.d.ts +2 -2
  124. package/Rendering/Misc/TextureLODsDownloader.d.ts +3 -3
  125. package/Rendering/OpenGL/RenderWindow.d.ts +6 -6
  126. package/Rendering/SceneGraph/RenderPass.d.ts +1 -1
  127. package/Rendering/SceneGraph/ViewNode.d.ts +1 -1
  128. package/Rendering/SceneGraph/ViewNodeFactory.d.ts +1 -1
  129. package/Widgets/Manipulators/LineManipulator.d.ts +1 -1
  130. package/Widgets/Manipulators/PlaneManipulator.d.ts +1 -1
  131. package/Widgets/Manipulators/TrackballManipulator.d.ts +1 -1
  132. package/Widgets/Representations/WidgetRepresentation.d.ts +1 -1
  133. package/Widgets/Widgets3D/ShapeWidget/behavior.js +1 -1
  134. package/Widgets/Widgets3D/SphereWidget.d.ts +2 -2
  135. package/_virtual/rollup-plugin-web-worker-loader__helper__funcToSource.js +8 -8
  136. package/interfaces.d.ts +2 -2
  137. package/macros.d.ts +1 -1
  138. package/package.json +1 -1
  139. package/types.d.ts +1 -1
  140. package/tsconfig.json +0 -8
@@ -16,7 +16,9 @@ export function toArrayBuffer(b64Str: string): ArrayBuffer;
16
16
  */
17
17
  export function fromArrayBuffer(ab: ArrayBuffer): string;
18
18
 
19
- export default {
19
+ interface Base64 {
20
20
  toArrayBuffer,
21
21
  fromArrayBuffer,
22
- };
22
+ }
23
+
24
+ export default Base64;
@@ -1,5 +1,5 @@
1
- import { TypedArray } from '../../types';
2
- import vtkDataArray from '../Core/DataArray';
1
+ import { TypedArray } from './../../types';
2
+ import vtkDataArray from './DataArray';
3
3
 
4
4
 
5
5
  /**
@@ -1,5 +1,5 @@
1
- import { vtkObject, vtkRange } from '../../interfaces';
2
- import { TypedArray } from '../../types';
1
+ import { vtkObject, vtkRange } from './../../interfaces';
2
+ import { TypedArray } from './../../types';
3
3
 
4
4
 
5
5
  /**
@@ -1,4 +1,4 @@
1
- import { Nullable } from '../../types';
1
+ import { Nullable } from './../../types';
2
2
 
3
3
  /**
4
4
  * Get the endianness
@@ -1,4 +1,4 @@
1
- import vtkImageData from '../../Common/DataModel/ImageData';
1
+ import vtkImageData from './../DataModel/ImageData';
2
2
 
3
3
  interface ITransform {
4
4
  flipX: boolean;
@@ -1,4 +1,4 @@
1
- import { Range, RGBAColor } from '../../types';
1
+ import { Range, RGBAColor } from './../../types';
2
2
  import vtkScalarsToColors from './ScalarsToColors';
3
3
 
4
4
  /**
@@ -2329,4 +2329,4 @@ var vtkMath$1 = /*#__PURE__*/Object.freeze({
2329
2329
  'default': vtkMath
2330
2330
  });
2331
2331
 
2332
- export { binomial as $, degreesFromRadians as A, areEquals as B, clampValue as C, arrayRange as D, getMajorAxisIndex as E, isInf as F, rgb2hsv as G, rgb2lab as H, lab2rgb as I, floor as J, round as K, normalize2D as L, nearestPowerOfTwo as M, createUninitializedBounds as N, multiply3x3_vect3 as O, areBoundsInitialized as P, isPowerOfTwo as Q, angleBetweenVectors as R, signedAngleBetweenVectors as S, Pi as T, ceil as U, min as V, max as W, arrayMin as X, arrayMax as Y, ceilLog2 as Z, factorial as _, areMatricesEqual as a, beginCombination as a0, nextCombination as a1, randomSeed as a2, getSeed as a3, gaussian as a4, multiplyScalar2D as a5, multiplyAccumulate2D as a6, outer as a7, projectVector as a8, dot2D as a9, hex2float as aA, lab2xyz as aB, xyz2lab as aC, xyz2rgb as aD, rgb2xyz as aE, clampAndNormalizeValue as aF, getScalarTypeFittingRange as aG, getAdjustedScalarRange as aH, extentIsWithinOtherExtent as aI, boundsIsWithinOtherBounds as aJ, pointIsWithinBounds as aK, solve3PointCircle as aL, inf as aM, negInf as aN, isFinite as aO, isNaN as aP, floatToHex2 as aQ, floatRGB2HexCode as aR, float2CssRGBA as aS, projectVector2D as aa, gaussianAmplitude as ab, gaussianWeight as ac, outer2D as ad, norm2D as ae, LUFactor3x3 as af, LUSolve3x3 as ag, linearSolve3x3 as ah, multiply3x3_mat3 as ai, multiplyMatrix as aj, transpose3x3 as ak, invert3x3 as al, identity3x3 as am, quaternionToMatrix3x3 as an, roundNumber as ao, matrix3x3ToQuaternion as ap, multiplyQuaternion as aq, orthogonalize3x3 as ar, diagonalize3x3 as as, singularValueDecomposition3x3 as at, luFactorLinearSystem as au, luSolveLinearSystem as av, invertMatrix as aw, estimateMatrixCondition as ax, solveHomogeneousLeastSquares as ay, solveLeastSquares as az, roundVector as b, computeBoundsFromPoints as c, dot as d, clampVector as e, distance2BetweenPoints as f, subtract as g, hsv2rgb as h, isNan as i, cross as j, add as k, normalize as l, multiplyAccumulate as m, norm as n, determinant2x2 as o, jacobiN as p, perpendiculars as q, radiansFromDegrees as r, solveLinearSystem as s, jacobi as t, uninitializeBounds as u, vtkMath$1 as v, vtkMath as w, multiplyScalar as x, random as y, determinant3x3 as z };
2332
+ export { binomial as $, degreesFromRadians as A, areEquals as B, clampValue as C, arrayRange as D, getMajorAxisIndex as E, isInf as F, rgb2hsv as G, rgb2lab as H, lab2rgb as I, floor as J, round as K, normalize2D as L, nearestPowerOfTwo as M, createUninitializedBounds as N, multiply3x3_vect3 as O, areBoundsInitialized as P, isPowerOfTwo as Q, angleBetweenVectors as R, signedAngleBetweenVectors as S, Pi as T, ceil as U, min as V, max as W, arrayMin as X, arrayMax as Y, ceilLog2 as Z, factorial as _, areMatricesEqual as a, beginCombination as a0, nextCombination as a1, randomSeed as a2, getSeed as a3, gaussian as a4, multiplyScalar2D as a5, multiplyAccumulate2D as a6, outer as a7, projectVector as a8, dot2D as a9, hex2float as aA, lab2xyz as aB, xyz2lab as aC, xyz2rgb as aD, rgb2xyz as aE, clampAndNormalizeValue as aF, getScalarTypeFittingRange as aG, getAdjustedScalarRange as aH, extentIsWithinOtherExtent as aI, boundsIsWithinOtherBounds as aJ, pointIsWithinBounds as aK, solve3PointCircle as aL, inf as aM, negInf as aN, isFinite as aO, isNaN as aP, floatToHex2 as aQ, floatRGB2HexCode as aR, float2CssRGBA as aS, projectVector2D as aa, gaussianAmplitude as ab, gaussianWeight as ac, outer2D as ad, norm2D as ae, LUFactor3x3 as af, LUSolve3x3 as ag, linearSolve3x3 as ah, multiply3x3_mat3 as ai, multiplyMatrix as aj, transpose3x3 as ak, invert3x3 as al, identity3x3 as am, quaternionToMatrix3x3 as an, roundNumber as ao, matrix3x3ToQuaternion as ap, multiplyQuaternion as aq, orthogonalize3x3 as ar, diagonalize3x3 as as, singularValueDecomposition3x3 as at, luFactorLinearSystem as au, luSolveLinearSystem as av, invertMatrix as aw, estimateMatrixCondition as ax, solveHomogeneousLeastSquares as ay, solveLeastSquares as az, roundVector as b, computeBoundsFromPoints as c, dot as d, clampVector as e, distance2BetweenPoints as f, subtract as g, hsv2rgb as h, isNan as i, cross as j, add as k, normalize as l, multiplyAccumulate as m, norm as n, determinant2x2 as o, jacobiN as p, perpendiculars as q, radiansFromDegrees as r, solveLinearSystem as s, vtkMath as t, uninitializeBounds as u, vtkMath$1 as v, jacobi as w, multiplyScalar as x, random as y, determinant3x3 as z };
@@ -1,4 +1,4 @@
1
- import { Bounds, Extent, HSVColor, RGBAColor, RGBColor, Matrix, Matrix3x3, Range, Vector2, Vector3, Vector4 } from '../../types';
1
+ import { Bounds, Extent, HSVColor, RGBAColor, RGBColor, Matrix, Matrix3x3, Range, Vector2, Vector3, Vector4 } from './../../types';
2
2
 
3
3
  /**
4
4
  *
@@ -1,4 +1,4 @@
1
1
  import '@babel/runtime/helpers/slicedToArray';
2
2
  import 'seedrandom';
3
3
  import '../../macros.js';
4
- export { af as LUFactor3x3, ag as LUSolve3x3, T as Pi, k as add, R as angleBetweenVectors, P as areBoundsInitialized, B as areEquals, a as areMatricesEqual, Y as arrayMax, X as arrayMin, D as arrayRange, a0 as beginCombination, $ as binomial, aJ as boundsIsWithinOtherBounds, U as ceil, Z as ceilLog2, aF as clampAndNormalizeValue, C as clampValue, e as clampVector, c as computeBoundsFromPoints, N as createUninitializedBounds, j as cross, w as default, A as degreesFromRadians, o as determinant2x2, z as determinant3x3, as as diagonalize3x3, f as distance2BetweenPoints, d as dot, a9 as dot2D, ax as estimateMatrixCondition, aI as extentIsWithinOtherExtent, _ as factorial, aS as float2CssRGBA, aR as floatRGB2HexCode, aQ as floatToHex2, J as floor, a4 as gaussian, ab as gaussianAmplitude, ac as gaussianWeight, aH as getAdjustedScalarRange, E as getMajorAxisIndex, aG as getScalarTypeFittingRange, a3 as getSeed, aA as hex2float, h as hsv2rgb, am as identity3x3, aM as inf, al as invert3x3, aw as invertMatrix, aO as isFinite, F as isInf, aP as isNaN, i as isNan, Q as isPowerOfTwo, t as jacobi, p as jacobiN, I as lab2rgb, aB as lab2xyz, ah as linearSolve3x3, au as luFactorLinearSystem, av as luSolveLinearSystem, ap as matrix3x3ToQuaternion, W as max, V as min, ai as multiply3x3_mat3, O as multiply3x3_vect3, m as multiplyAccumulate, a6 as multiplyAccumulate2D, aj as multiplyMatrix, aq as multiplyQuaternion, x as multiplyScalar, a5 as multiplyScalar2D, M as nearestPowerOfTwo, aN as negInf, a1 as nextCombination, n as norm, ae as norm2D, l as normalize, L as normalize2D, ar as orthogonalize3x3, a7 as outer, ad as outer2D, q as perpendiculars, aK as pointIsWithinBounds, a8 as projectVector, aa as projectVector2D, an as quaternionToMatrix3x3, r as radiansFromDegrees, y as random, a2 as randomSeed, G as rgb2hsv, H as rgb2lab, aE as rgb2xyz, K as round, ao as roundNumber, b as roundVector, S as signedAngleBetweenVectors, at as singularValueDecomposition3x3, aL as solve3PointCircle, ay as solveHomogeneousLeastSquares, az as solveLeastSquares, s as solveLinearSystem, g as subtract, ak as transpose3x3, u as uninitializeBounds, aC as xyz2lab, aD as xyz2rgb } from './Math/index.js';
4
+ export { af as LUFactor3x3, ag as LUSolve3x3, T as Pi, k as add, R as angleBetweenVectors, P as areBoundsInitialized, B as areEquals, a as areMatricesEqual, Y as arrayMax, X as arrayMin, D as arrayRange, a0 as beginCombination, $ as binomial, aJ as boundsIsWithinOtherBounds, U as ceil, Z as ceilLog2, aF as clampAndNormalizeValue, C as clampValue, e as clampVector, c as computeBoundsFromPoints, N as createUninitializedBounds, j as cross, t as default, A as degreesFromRadians, o as determinant2x2, z as determinant3x3, as as diagonalize3x3, f as distance2BetweenPoints, d as dot, a9 as dot2D, ax as estimateMatrixCondition, aI as extentIsWithinOtherExtent, _ as factorial, aS as float2CssRGBA, aR as floatRGB2HexCode, aQ as floatToHex2, J as floor, a4 as gaussian, ab as gaussianAmplitude, ac as gaussianWeight, aH as getAdjustedScalarRange, E as getMajorAxisIndex, aG as getScalarTypeFittingRange, a3 as getSeed, aA as hex2float, h as hsv2rgb, am as identity3x3, aM as inf, al as invert3x3, aw as invertMatrix, aO as isFinite, F as isInf, aP as isNaN, i as isNan, Q as isPowerOfTwo, w as jacobi, p as jacobiN, I as lab2rgb, aB as lab2xyz, ah as linearSolve3x3, au as luFactorLinearSystem, av as luSolveLinearSystem, ap as matrix3x3ToQuaternion, W as max, V as min, ai as multiply3x3_mat3, O as multiply3x3_vect3, m as multiplyAccumulate, a6 as multiplyAccumulate2D, aj as multiplyMatrix, aq as multiplyQuaternion, x as multiplyScalar, a5 as multiplyScalar2D, M as nearestPowerOfTwo, aN as negInf, a1 as nextCombination, n as norm, ae as norm2D, l as normalize, L as normalize2D, ar as orthogonalize3x3, a7 as outer, ad as outer2D, q as perpendiculars, aK as pointIsWithinBounds, a8 as projectVector, aa as projectVector2D, an as quaternionToMatrix3x3, r as radiansFromDegrees, y as random, a2 as randomSeed, G as rgb2hsv, H as rgb2lab, aE as rgb2xyz, K as round, ao as roundNumber, b as roundVector, S as signedAngleBetweenVectors, at as singularValueDecomposition3x3, aL as solve3PointCircle, ay as solveHomogeneousLeastSquares, az as solveLeastSquares, s as solveLinearSystem, g as subtract, ak as transpose3x3, u as uninitializeBounds, aC as xyz2lab, aD as xyz2rgb } from './Math/index.js';
@@ -1,5 +1,5 @@
1
1
  import { mat4 } from 'gl-matrix';
2
- import { TypedArray, Vector3 } from '../../types';
2
+ import { TypedArray, Vector3 } from './../../types';
3
3
 
4
4
  declare interface Transform {
5
5
 
@@ -1,5 +1,5 @@
1
- import vtkDataArray from '../../Common/Core/DataArray';
2
- import { Bounds } from '../../types';
1
+ import vtkDataArray from './DataArray';
2
+ import { Bounds } from './../../types';
3
3
 
4
4
  /**
5
5
  *
@@ -1,4 +1,4 @@
1
- import { vtkObject } from '../../interfaces' ;
1
+ import { vtkObject } from './../../interfaces' ;
2
2
 
3
3
  /**
4
4
  *
@@ -1,4 +1,4 @@
1
- import { vtkObject } from '../../interfaces' ;
1
+ import { vtkObject } from './../../interfaces' ;
2
2
 
3
3
  /**
4
4
  *
@@ -1,6 +1,6 @@
1
- import { vtkObject } from '../../interfaces' ;
2
- import { ColorMode } from '../../Rendering/Core/Mapper';
3
- import { Range } from '../../types' ;
1
+ import { vtkObject } from './../../interfaces' ;
2
+ import { ColorMode } from './../../Rendering/Core/Mapper';
3
+ import { Range } from './../../types' ;
4
4
 
5
5
  export enum VectorMode {
6
6
  MAGNITUDE,
@@ -1,4 +1,4 @@
1
- import { vtkObject } from '../../interfaces' ;
1
+ import { vtkObject } from './../../interfaces' ;
2
2
 
3
3
  /**
4
4
  *
@@ -1,4 +1,4 @@
1
- import { vtkObject } from '../../interfaces' ;
1
+ import { vtkObject } from './../../interfaces' ;
2
2
 
3
3
  /**
4
4
  *
@@ -1,5 +1,5 @@
1
- import { vtkObject } from '../../interfaces' ;
2
- import { Bounds, Point } from '../../types';
1
+ import { vtkObject } from './../../interfaces' ;
2
+ import { Bounds, Point } from './../../types';
3
3
 
4
4
 
5
5
  export interface IBoxInitialValues {
@@ -1,4 +1,4 @@
1
- import { Vector3 } from '../../types';
1
+ import { Vector3 } from './../../types';
2
2
  import vtkSpline1D, { ISpline1DInitialValues } from './Spline1D';
3
3
 
4
4
 
@@ -1,6 +1,6 @@
1
- import { vtkObject } from '../../interfaces' ;
2
- import { Bounds, Vector3 } from '../../types';
3
- import vtkPoints from '../Core/Points';
1
+ import { vtkObject } from './../../interfaces' ;
2
+ import { Bounds, Vector3 } from './../../types';
3
+ import vtkPoints from './../Core/Points';
4
4
 
5
5
  export interface ICellInitialValues {
6
6
  bounds?: Bounds;
@@ -1,5 +1,5 @@
1
- import { vtkObject } from '../../interfaces' ;
2
- import { Vector3 } from '../../types';
1
+ import { vtkObject } from './../../interfaces' ;
2
+ import { Vector3 } from './../../types';
3
3
 
4
4
  /**
5
5
  *
@@ -1,5 +1,5 @@
1
- import { vtkObject } from '../../interfaces' ;
2
- import { Vector3 } from '../../types';
1
+ import { vtkObject } from './../../interfaces' ;
2
+ import { Vector3 } from './../../types';
3
3
 
4
4
  /**
5
5
  *
@@ -1,4 +1,4 @@
1
- import { vtkObject } from '../../interfaces' ;
1
+ import { vtkObject } from './../../interfaces' ;
2
2
  import vtkDataSetAttributes from './DataSetAttributes';
3
3
 
4
4
  export enum FieldDataTypes {
@@ -1,4 +1,4 @@
1
- import { vtkObject } from '../../interfaces' ;
1
+ import { vtkObject } from '../../../interfaces' ;
2
2
 
3
3
  /**
4
4
  *
@@ -1,6 +1,6 @@
1
- import { vtkObject } from '../../interfaces' ;
2
- import { IFieldDataInitialValues, vtkFieldData } from '././FieldData';
3
- import vtkDataArray from '../Core/DataArray';
1
+ import { vtkObject } from './../../interfaces' ;
2
+ import { IFieldDataInitialValues, vtkFieldData } from './DataSetAttributes/FieldData';
3
+ import vtkDataArray from './../Core/DataArray';
4
4
 
5
5
  export enum AttributeTypes {
6
6
  SCALARS,
@@ -1,5 +1,5 @@
1
1
  import { mat3, mat4, ReadonlyVec3, vec3 } from 'gl-matrix';
2
- import { Bounds, Extent, Vector3 } from '../../types';
2
+ import { Bounds, Extent, Vector3 } from './../../types';
3
3
  import vtkDataSet, { IDataSetInitialValues } from './DataSet';
4
4
 
5
5
  /**
@@ -1,4 +1,4 @@
1
- import { Vector3 } from '../../types';
1
+ import { Vector3 } from './../../types';
2
2
  import vtkCell from './Cell';
3
3
 
4
4
  export enum IntersectionState {
@@ -1,5 +1,5 @@
1
- import { vtkObject } from '../../interfaces' ;
2
- import { Range } from '../../types';
1
+ import { vtkObject } from './../../interfaces' ;
2
+ import { Range } from './../../types';
3
3
 
4
4
  export interface IPiecewiseFunctionInitialValues {
5
5
  range?: Range,
@@ -1,5 +1,5 @@
1
- import { vtkObject } from '../../interfaces' ;
2
- import { Vector3 } from '../../types';
1
+ import { vtkObject } from './../../interfaces' ;
2
+ import { Vector3 } from './../../types';
3
3
 
4
4
  /**
5
5
  *
@@ -1,5 +1,5 @@
1
- import { Bounds } from '../../types';
2
- import vtkPoints from '../Core/Points';
1
+ import { Bounds } from './../../types';
2
+ import vtkPoints from './../Core/Points';
3
3
  import vtkDataSet, { IDataSetInitialValues } from './DataSet';
4
4
 
5
5
  /**
@@ -1,5 +1,5 @@
1
- import { CellType, Vector3 } from '../../types';
2
- import vtkCellArray from '../Core/CellArray';
1
+ import { CellType, Vector3 } from './../../types';
2
+ import vtkCellArray from './../Core/CellArray';
3
3
  import vtkPointSet, { IPointSetInitialValues } from './PointSet';
4
4
 
5
5
  /**
@@ -1,5 +1,5 @@
1
- import { vtkObject } from '../../interfaces' ;
2
- import { Vector3 } from '../../types';
1
+ import { vtkObject } from './../../interfaces' ;
2
+ import { Vector3 } from './../../types';
3
3
 
4
4
 
5
5
  export interface IPolygonInitialValues {
@@ -1,5 +1,5 @@
1
- import { vtkObject } from '../../interfaces' ;
2
- import { Bounds } from '../../types';
1
+ import { vtkObject } from './../../interfaces' ;
2
+ import { Bounds } from './../../types';
3
3
 
4
4
  export enum SelectionContent {
5
5
  GLOBALIDS,
@@ -1,5 +1,5 @@
1
- import { vtkObject } from '../../interfaces' ;
2
- import { Bounds, Vector3 } from '../../types';
1
+ import { vtkObject } from './../../interfaces' ;
2
+ import { Bounds, Vector3 } from './../../types';
3
3
 
4
4
 
5
5
  export interface ISphereInitialValues {
@@ -1,4 +1,4 @@
1
- import { vtkObject } from '../../interfaces' ;
1
+ import { vtkObject } from './../../interfaces' ;
2
2
 
3
3
 
4
4
  export interface ISpline1DInitialValues {}
@@ -1,4 +1,4 @@
1
- import { vtkObject } from '../../interfaces' ;
1
+ import { vtkObject } from './../../interfaces' ;
2
2
 
3
3
  export enum splineKind {
4
4
  CARDINAL_SPLINE,
@@ -1,4 +1,4 @@
1
- import { Vector3 } from '../../types';
1
+ import { Vector3 } from './../../types';
2
2
  import vtkCell, { ICellInitialValues } from './Cell';
3
3
 
4
4
  export interface ITriangleInitialValues extends ICellInitialValues {}
@@ -1,6 +1,6 @@
1
1
  import { mat4 } from 'gl-matrix';
2
- import { vtkObject } from '../../interfaces';
3
- import vtkPoints from '../Core/Points';
2
+ import { vtkObject } from './../../interfaces';
3
+ import vtkPoints from './../Core/Points';
4
4
 
5
5
  export enum Mode {
6
6
  RIGID_BODY,
@@ -0,0 +1,124 @@
1
+ import _defineProperty from '@babel/runtime/helpers/defineProperty';
2
+ import macro from '../../macros.js';
3
+ import vtkDataArray from '../../Common/Core/DataArray.js';
4
+ import { t as vtkMath } from '../../Common/Core/Math/index.js';
5
+ import vtkPolyData from '../../Common/DataModel/PolyData.js';
6
+ import vtkTriangle from '../../Common/DataModel/Triangle.js';
7
+
8
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
9
+
10
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
11
+ // vtkPolyDataNormals methods
12
+ // ----------------------------------------------------------------------------
13
+
14
+ function vtkPolyDataNormals(publicAPI, model) {
15
+ // Set our className
16
+ model.classHierarchy.push('vtkPolyDataNormals');
17
+
18
+ publicAPI.vtkPolyDataNormalsExecute = function (pointsData, polysData) {
19
+ if (!pointsData) {
20
+ return null;
21
+ }
22
+
23
+ var normalsData = new Float32Array(pointsData.length);
24
+ var numberOfPoints = 0;
25
+ var polysDataLength = polysData.length;
26
+ var cellPointIds = [0, 0, 0];
27
+
28
+ for (var c = 0; c < polysDataLength; c += numberOfPoints + 1) {
29
+ numberOfPoints = polysData[c];
30
+
31
+ if (numberOfPoints < 3) {
32
+ continue; // eslint-disable-line
33
+ }
34
+
35
+ for (var i = 1; i <= 3; ++i) {
36
+ cellPointIds[i - 1] = 3 * polysData[c + i];
37
+ }
38
+
39
+ var cellNormal = [];
40
+ vtkTriangle.computeNormal(pointsData.slice(cellPointIds[0], cellPointIds[0] + 3), pointsData.slice(cellPointIds[1], cellPointIds[1] + 3), pointsData.slice(cellPointIds[2], cellPointIds[2] + 3), cellNormal);
41
+
42
+ for (var _i = 1; _i <= numberOfPoints; ++_i) {
43
+ var pointId = 3 * polysData[c + _i];
44
+ normalsData[pointId] += cellNormal[0];
45
+ normalsData[++pointId] += cellNormal[1];
46
+ normalsData[++pointId] += cellNormal[2];
47
+ }
48
+ }
49
+ /* Normalize normals */
50
+
51
+
52
+ for (var _i2 = 0; _i2 < pointsData.length;) {
53
+ var pointNormal = normalsData.slice(_i2, _i2 + 3);
54
+ vtkMath.normalize(pointNormal);
55
+ normalsData[_i2++] = pointNormal[0];
56
+ normalsData[_i2++] = pointNormal[1];
57
+ normalsData[_i2++] = pointNormal[2];
58
+ }
59
+
60
+ return normalsData;
61
+ };
62
+
63
+ publicAPI.requestData = function (inData, outData) {
64
+ var numberOfInputs = publicAPI.getNumberOfInputPorts();
65
+
66
+ if (!numberOfInputs) {
67
+ return;
68
+ }
69
+
70
+ var input = inData[0];
71
+
72
+ if (!input) {
73
+ return;
74
+ }
75
+
76
+ var outputNormalsData = publicAPI.vtkPolyDataNormalsExecute(input.getPoints().getData(), input.getPolys().getData());
77
+ var output = vtkPolyData.newInstance();
78
+ var outputNormals = vtkDataArray.newInstance({
79
+ numberOfComponents: 3,
80
+ values: outputNormalsData
81
+ });
82
+ output.setPointData(input.getPointData());
83
+ output.setCellData(input.getCellData());
84
+ output.setFieldData(input.getFieldData());
85
+ output.setPoints(input.getPoints());
86
+ output.setVerts(input.getVerts());
87
+ output.setLines(input.getLines());
88
+ output.setPolys(input.getPolys());
89
+ output.setStrips(input.getStrips());
90
+ output.getPointData().setNormals(outputNormals);
91
+ outData[0] = output;
92
+ };
93
+ } // ----------------------------------------------------------------------------
94
+ // Object factory
95
+ // ----------------------------------------------------------------------------
96
+
97
+
98
+ function defaultValues(initialValues) {
99
+ return _objectSpread({}, initialValues);
100
+ } // ----------------------------------------------------------------------------
101
+
102
+
103
+ function extend(publicAPI, model) {
104
+ var initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
105
+ Object.assign(model, defaultValues(initialValues));
106
+ /* Make this a VTK object */
107
+
108
+ macro.obj(publicAPI, model);
109
+ /* Also make it an algorithm with one input and one output */
110
+
111
+ macro.algo(publicAPI, model, 1, 1);
112
+ /* Object specific methods */
113
+
114
+ vtkPolyDataNormals(publicAPI, model);
115
+ } // ----------------------------------------------------------------------------
116
+
117
+ var newInstance = macro.newInstance(extend, 'vtkPolyDataNormals'); // ----------------------------------------------------------------------------
118
+
119
+ var vtkPolyDataNormals$1 = {
120
+ newInstance: newInstance,
121
+ extend: extend
122
+ };
123
+
124
+ export { vtkPolyDataNormals$1 as default, extend, newInstance };
package/Filters/Core.js CHANGED
@@ -1,7 +1,9 @@
1
1
  import vtkCutter from './Core/Cutter.js';
2
+ import vtkPolyDataNormals from './Core/PolyDataNormals.js';
2
3
 
3
4
  var Core = {
4
- vtkCutter: vtkCutter
5
+ vtkCutter: vtkCutter,
6
+ vtkPolyDataNormals: vtkPolyDataNormals
5
7
  };
6
8
 
7
9
  export { Core as default };
@@ -1,4 +1,4 @@
1
- import { vtkAlgorithm, vtkObject } from '../../interfaces';
1
+ import { vtkAlgorithm, vtkObject } from './../../interfaces';
2
2
 
3
3
  export enum DesiredOutputPrecision {
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { vtkAlgorithm, vtkObject } from '../../interfaces';
1
+ import { vtkAlgorithm, vtkObject } from './../../interfaces';
2
2
 
3
3
  /**
4
4
  *
@@ -1,4 +1,4 @@
1
- import { vtkAlgorithm, vtkObject } from '../../interfaces';
1
+ import { vtkAlgorithm, vtkObject } from './../../interfaces';
2
2
 
3
3
  /**
4
4
  *
@@ -1,4 +1,4 @@
1
- import { vtkAlgorithm, vtkObject } from '../../interfaces';
1
+ import { vtkAlgorithm, vtkObject } from './../../interfaces';
2
2
 
3
3
  /**
4
4
  *
@@ -1,6 +1,6 @@
1
- import vtkImageData from '../../Common/DataModel/ImageData';
2
- import { vtkAlgorithm, vtkObject } from '../../interfaces';
3
- import { Bounds, Extent, Vector2, Vector3 } from '../../types';
1
+ import vtkImageData from './../../Common/DataModel/ImageData';
2
+ import { vtkAlgorithm, vtkObject } from './../../interfaces';
3
+ import { Bounds, Extent, Vector2, Vector3 } from './../../types';
4
4
 
5
5
  /**
6
6
  *
@@ -1,4 +1,4 @@
1
- import { vtkAlgorithm, vtkObject } from '../../interfaces';
1
+ import { vtkAlgorithm, vtkObject } from './../../interfaces';
2
2
 
3
3
  /**
4
4
  *
@@ -2,7 +2,7 @@ import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
2
2
  import macro from '../../macros.js';
3
3
  import vtkCellArray from '../../Common/Core/CellArray.js';
4
4
  import vtkLine from '../../Common/DataModel/Line.js';
5
- import { d as dot, j as cross, n as norm, t as jacobi, l as normalize, k as add } from '../../Common/Core/Math/index.js';
5
+ import { d as dot, j as cross, n as norm, w as jacobi, l as normalize, k as add } from '../../Common/Core/Math/index.js';
6
6
  import vtkMatrixBuilder from '../../Common/Core/MatrixBuilder.js';
7
7
  import vtkOBBNode from './OBBTree/OBBNode.js';
8
8
  import vtkPoints from '../../Common/Core/Points.js';
@@ -1,4 +1,4 @@
1
- import { vtkAlgorithm, vtkObject } from '../../interfaces';
1
+ import { vtkAlgorithm, vtkObject } from './../../interfaces';
2
2
 
3
3
  export const BOUNDS_MAP: number[];
4
4
 
@@ -1,4 +1,4 @@
1
- import { vtkAlgorithm, vtkObject } from '../../interfaces';
1
+ import { vtkAlgorithm, vtkObject } from './../../interfaces';
2
2
 
3
3
  /**
4
4
  *
@@ -1,5 +1,5 @@
1
- import { vtkAlgorithm, vtkObject } from '../../interfaces';
2
- import { DesiredOutputPrecision } from '../../Common/DataModel/DataSetAttributes';
1
+ import { vtkAlgorithm, vtkObject } from './../../interfaces';
2
+ import { DesiredOutputPrecision } from './../../Common/DataModel/DataSetAttributes';
3
3
 
4
4
  export enum VaryRadius {
5
5
  VARY_RADIUS_OFF,
@@ -2,7 +2,7 @@ import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
2
2
  import macro from '../../macros.js';
3
3
  import vtkBoundingBox from '../../Common/DataModel/BoundingBox.js';
4
4
  import vtkDataArray from '../../Common/Core/DataArray.js';
5
- import { w as vtkMath } from '../../Common/Core/Math/index.js';
5
+ import { t as vtkMath } from '../../Common/Core/Math/index.js';
6
6
  import { AttributeTypes } from '../../Common/DataModel/DataSetAttributes/Constants.js';
7
7
  import vtkPoints from '../../Common/Core/Points.js';
8
8
  import vtkPolyData from '../../Common/DataModel/PolyData.js';
@@ -1,5 +1,5 @@
1
- import { vtkAlgorithm, vtkObject } from '../../interfaces';
2
- import { Vector3 } from '../../types';
1
+ import { vtkAlgorithm, vtkObject } from './../../interfaces';
2
+ import { Vector3 } from './../../types';
3
3
 
4
4
  export enum ShapeType {
5
5
  TRIANGLE,
@@ -1,5 +1,5 @@
1
- import { vtkAlgorithm, vtkObject } from '../../interfaces';
2
- import { Vector3 } from '../../types';
1
+ import { vtkAlgorithm, vtkObject } from './../../interfaces';
2
+ import { Vector3 } from './../../types';
3
3
 
4
4
  export enum ShapeType {
5
5
  TRIANGLE,
@@ -1,5 +1,5 @@
1
- import { vtkAlgorithm, vtkObject } from '../../interfaces';
2
- import { Vector3 } from '../../types';
1
+ import { vtkAlgorithm, vtkObject } from './../../interfaces';
2
+ import { Vector3 } from './../../types';
3
3
 
4
4
  /**
5
5
  *
@@ -1,5 +1,5 @@
1
- import { vtkAlgorithm, vtkObject } from '../../interfaces';
2
- import { Vector3 } from '../../types';
1
+ import { vtkAlgorithm, vtkObject } from './../../interfaces';
2
+ import { Vector3 } from './../../types';
3
3
 
4
4
  /**
5
5
  *
@@ -1,5 +1,5 @@
1
- import { vtkAlgorithm, vtkObject } from '../../interfaces';
2
- import { Bounds, Vector3 } from '../../types';
1
+ import { vtkAlgorithm, vtkObject } from './../../interfaces';
2
+ import { Bounds, Vector3 } from './../../types';
3
3
 
4
4
  /**
5
5
  *
@@ -1,6 +1,6 @@
1
- import { vtkAlgorithm, vtkObject } from '../../interfaces';
2
- import vtkPolyData from '../../Common/DataModel/PolyData';
3
- import { Bounds, Vector3 } from '../../types';
1
+ import { vtkAlgorithm, vtkObject } from './../../interfaces';
2
+ import vtkPolyData from './../../Common/DataModel/PolyData';
3
+ import { Bounds, Vector3 } from './../../types';
4
4
 
5
5
 
6
6
  /**