Kitware / vtk-js

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

CleanPolyData filter #1108

Closed PBrockmann closed 3 years ago

PBrockmann commented 5 years ago

I would be very interested to use a CleanPolyData filter to clean up my polydata and remove some duplicate points.

In vtk (python), I had used:


clean = vtk.vtkCleanPolyData()
clean.SetInputConnection(polydata2.GetOutputPort())
clean.Update()
``
Is it possible with vtk.js ?
jourdain commented 5 years ago

Such filter would need to be added but it is doable.

PBrockmann commented 5 years ago

Cool. In fact, I would need it to create contours from my polydata.

vtkCleanPolyData() --> vtkCellDataToPointData() --> vtkBandedPolyDataContourFilter()
wschroed commented 5 years ago

Note it's often easier to create banding using texturing methods. Please keep this in mind.

On Thu, Jun 13, 2019 at 8:58 AM Patrick Brockmann notifications@github.com wrote:

Cool. In fact, I would need it to create contours from my polydata.

vtkCleanPolyData() --> vtkCellDataToPointData() --> vtkBandedPolyDataContourFilter()

— 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/1108?email_source=notifications&email_token=AABQY4QC3OOHJNEBLLDJKNDP2JAAPA5CNFSM4HXKYXRKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXTTLEQ#issuecomment-501691794, or mute the thread https://github.com/notifications/unsubscribe-auth/AABQY4U45YGFITM6SW3IWUTP2JAAPANCNFSM4HXKYXRA .

-- William J. Schroeder, PhD Kitware - Building the World's Scientific Computing Software will.schroeder@kitware.com http://www.kitware.com

jourdain commented 5 years ago

This is more involving. You may investigate the WebAssembly path by bundling this pipeline directly from VTK/C++ into the web environment. @thewtex

PBrockmann commented 5 years ago

ITK is very impressive. I dream to offer to the Climate Modeling community synchroneous maps as done in https://github.com/PBrockmann/threejsMap with three.js but now based on vtk.js to get cells or filled contours. Passing memory variables from python to vtk.js is still not clear for me (ie from a jupyter notebook with a python kernel).

jourdain commented 5 years ago

@thewtex actually has quite some experience in that area. We are also looking at ways to enable our ParaViewWeb infrastructure into Jupyter but I'm not sure when and if it will happen.

PBrockmann commented 5 years ago

Need bounty ? I can fund this... I would be terrific because we have tool to make calculations (pyferret, xarray) but interactive mapping visualization are a missing part (I mean 3D).

jourdain commented 5 years ago

That will definitely help and allow that to happen. Let's try to meet and figure out what we can do to help.

We should probably have the following conversation offline. Can you send us an email about what you are looking for to the following set of persons.

Where email = firstName.lastName@kitware.com

aylward commented 3 years ago

This issue is being closed. If further discussion (beyond the private emails) is needed, please re-open.