-
-
Notifications
You must be signed in to change notification settings - Fork 382
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
VTK Mesh (unstructured grid) reader #976
Comments
Yes! 👾 🎇 💖 Starting on this. Inserted 4.b) - ITK SpatialObject to VTK PolyData :-D |
It might be better if spatial objects are "mapped" to VTK implicit
functions, they are nearly the same thing. Then in VTK, there are tools for
generating surfaces (ie polydata), selecting and extracting data etc with
implicit functions. But depending on workflow there are probably a couple
of different paths to take....
…On Thu, Feb 7, 2019 at 2:13 PM Matt McCormick ***@***.***> wrote:
Yes! 👾 🎇 💖
Starting on this.
Inserted 4.b) - ITK SpatialObject to VTK PolyData :-D
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#976 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAMMcsmA4AseshqonP5SZZznYJMa3Vp8ks5vLHq_gaJpZM4ZMLKj>
.
--
William J. Schroeder, PhD
Kitware, Inc. - Building the World's Technical Computing Software
28 Corporate Drive
Clifton Park, NY 12065
[email protected]
http://www.kitware.com
(518) 881-4902
|
@wschroed good point. We can take an incremental approach. First to PolyData so we can just visualize them. Then to VTK Implicit Functions. We likely find that we want / need the implicit functions for cropping, cutting, etc., but individual conversions will take more time. And, vtk.js Implicit Functions support can also mature in the process. |
#1 addressed here: InsightSoftwareConsortium/ITK-Wasm#190 |
@supriome technically you can support unstructured grid in vtk.js through itk.wasm. It's not easy (not well documented) but doable :-) |
Checked off step 2 per: https://kitware.github.io/vtk-js/examples/ItkWasmGeometry.html |
@thewtex I finish an unstructured grid reader, then convert to polydata, use vtk.js vtkXMLPolyDataReader to render that file. |
@supriome good work. We did something similar a few refactoring generations ago in itk.js, but itk-wasm improves significantly the simplicity of the interface and performance. |
Great, I'm looking forward to your final implementation, I realize that my implementation is definitely poor in terms of performance, but in order to achieve the functional requirements, this is the only way for now, if you have a better implementation, I will use your final solution |
Hi, any progress on this? I would like to migrate my vtk.js project to use itk-wasm.js instead of itk.js. My project relies on itk/readPolyDataArrayBuffer to convert .vtu (unstructured grid) to vtp. Is this possible with itk-wasm.js? If yes, is there any documentation / example how to do this? |
Hi @skudev , I created a tracking issue here: InsightSoftwareConsortium/ITK-Wasm#1261 |
Thoughts on possible next steps:
I think it might be a good test for vtk-emscripten - IO and conversion class.
The text was updated successfully, but these errors were encountered: