diff --git a/src/AvailableClasses.js b/src/AvailableClasses.js index 4a14de8..fa65263 100644 --- a/src/AvailableClasses.js +++ b/src/AvailableClasses.js @@ -20,6 +20,7 @@ import '@kitware/vtk.js/Filters/Sources/PointSource.js'; import '@kitware/vtk.js/Filters/Sources/SphereSource.js'; // Filters +import '@kitware/vtk.js/Filters/Core/Cutter.js'; import '@kitware/vtk.js/Filters/General/WarpScalar.js'; import '@kitware/vtk.js/Filters/General/TubeFilter.js'; diff --git a/usage/Geometry/CutterExample.js b/usage/Geometry/CutterExample.js new file mode 100644 index 0000000..7d76631 --- /dev/null +++ b/usage/Geometry/CutterExample.js @@ -0,0 +1,35 @@ +import React from 'react'; +import ReactDOM from 'react-dom'; + +import { newInstance as newVtkPlaneInstance } from '@kitware/vtk.js/Common/DataModel/Plane.js'; + +import { Algorithm, View, GeometryRepresentation, Reader } from 'react-vtk-js'; + +function Example(props) { + const plane = newVtkPlaneInstance({ + origin: [0, 0, 0], + normal: [0, 0, 1], + }); + + return ( +
+ + + + + + + +
+ ); +} + +// Render React object +ReactDOM.render(, document.querySelector('.root')); diff --git a/usage/www/index.html b/usage/www/index.html index 954b161..3bab528 100644 --- a/usage/www/index.html +++ b/usage/www/index.html @@ -10,6 +10,7 @@ +