Kitware / vtk-js

Visualization Toolkit for the Web
https://kitware.github.io/vtk-js/
BSD 3-Clause "New" or "Revised" License
1.22k stars 370 forks source link

BandedPolyDataContourFilter #992

Open PBrockmann opened 5 years ago

PBrockmann commented 5 years ago

Is the BandedPolyDataContourFilter could be implemented in vtk.js ?

I would like to rebuild a python vtk application that displays climate model (VTK Mapper) with vtk.js. The data structure choosen is a polydata. isolines and isocontours are possible features by using vtkContourFilter and vtkBandedPolyDataContourFilter. As visible from

With vtk.js, contours are possible from https://kitware.github.io/vtk-js/api/Filters_General_ImageMarchingSquares.html But what about filled contours ?

jourdain commented 5 years ago

Yes such filter could be created, but does not exist as of today. Feel free to contribute that filter to vtk.js if you like. Porting algorithms from VTK/C++ to VTK/JS is fairly straight forward. (As long as it does not imply 3D cells since those are missing and their re-implementation would take time and maybe not worth it)

wschroed commented 5 years ago

Caveat: I have only written a small amount of code for VTK.js including the marching cubes / marching squares algorithms. Given this limited experience here are some recent observations for what they are worth.

On Mon, Jan 21, 2019 at 11:18 AM Sebastien Jourdain < notifications@github.com> wrote:

Yes such filter could be created, but does not exist as of today. Feel free to contribute that filter to vtk.js if you like. Porting algorithms from VTK/C++ to VTK/JS is fairly straight forward.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Kitware/vtk-js/issues/992#issuecomment-456127563, or mute the thread https://github.com/notifications/unsubscribe-auth/AAMMcl6T8t5Fsb6zOO1VWGq_N_2oAzmrks5vFehAgaJpZM4aKkO2 .

-- William J. Schroeder, PhD Kitware, Inc. - Building the World's Technical Computing Software 28 Corporate Drive Clifton Park, NY 12065 will.schroeder@kitware.com http://www.kitware.com (518) 881-4902

thewtex commented 5 years ago

An itk.js VTK C++ implementation is possible following https://github.com/InsightSoftwareConsortium/itk-js/issues/187.