-
-
Notifications
You must be signed in to change notification settings - Fork 361
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to slice the polydata (cfd volume grid data) with vtk.js and see the grid on the slice? #3014
Comments
VTK.js does not support volumetric meshes (volume grid data). You can only manipulate surface meshes. Cutting them will leave a hole (see vtkCutter). The hole can be filled at a second step (see vtkClipClosedSurface) |
How to fill the hole with the "vtkClipClosedSurface"? I want to show the meshes on the slice, but the example (see vtkClipClosedSurface) does not show the grid on the clippingPlanes. How can I do? Is there any example? |
It does not show the grid because there is no internal structure information stored in your mesh. |
There are 3 options:
In the first 2 cases, you may face memory limitations if your data is too large. |
If I want to Add Unstructured Grid (i.e. volumetric mesh) support in VTK.js, How can I do? |
You can look at the existing vtkPolyData and vtkImageData. You then need to look at vtkUnstructuredGrid in VTK C++ and do the same in VTK.js. There will be unstructured grid mappers to port to JS as well. |
I'm not very familiar with C++. This is a bit difficult for me to look at vtkUnstructuredGrid in VTK C++ and do the same in VTK.js. Is there any recommended way to achieve this function using vue + vtk.js. How about "Use VTK.wasm"? |
Here is some documentation about VTK wasm. Shall you have funding, feel free to reach me out. |
Feature Request
How to slice the polydata (cfd volume grid data) with vtk.js and see the grid on the slice?
I have seen the vtkCutter example, but I do not know how to show the grid on the slice. I have the cfd volume grid data, and I want to see the grid on the slice. How can I do?
Motivation and Detailed Description
I want to slice the the cfd volume grid data, and to see the grid on the slice. How can I do?
The text was updated successfully, but these errors were encountered: