You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm wondering if it is related to numpy array. I'm currently off but I would try to add a tolist() or something along that to work around the current issue on that line assuming the issue is related to that part.
I'm wondering if it is related to numpy array. I'm currently off but I would try to add a tolist() or something along that to work around the current issue on that line assuming the issue is related to that part.
I tried what you suggested and it still gives the same error.
Sorry, I just looked at the data and your field is a vector (3 components). You will have to convert it to a scalar if you want to render it in volume rendering.
But my guess is that you want geometry rendering with glyphing or something along those lines. But maybe I'm wrong and I have no idea on what you are trying to see.
I believe this is exactly what we want, although we would like to focus the streamlines on just the airflow (blue-ish part of the image). To achieve this you used geometry rendering?
I think I am a bit confused on how to render it using dash-vtk, are you using PyVista or VTK to load the data points? (Also, it's okay, thank you for your reply)
To me VTK or PyVista is the same thing. That only affect the syntax but under the hood it is VTK.
From your grid you need to do a stream tracer or something similar (look at the motorcycle example) and then with dash-vtk you just need to use a geometry representation with a mesh.
Activity
jourdain commentedon Jul 9, 2021
I'm wondering if it is related to numpy array. I'm currently off but I would try to add a
tolist()or something along that to work around the current issue on that line assuming the issue is related to that part.lizzjs commentedon Jul 9, 2021
I tried what you suggested and it still gives the same error.
jourdain commentedon Jul 9, 2021
Maybe I should have asked what is the error?
jourdain commentedon Jul 9, 2021
Sorry, I just looked at the data and your field is a vector (3 components). You will have to convert it to a scalar if you want to render it in volume rendering.
jourdain commentedon Jul 9, 2021
But my guess is that you want geometry rendering with glyphing or something along those lines. But maybe I'm wrong and I have no idea on what you are trying to see.
jourdain commentedon Jul 9, 2021
Maybe some stream tracer like with the bike demo?
lizzjs commentedon Jul 12, 2021
I believe this is exactly what we want, although we would like to focus the streamlines on just the airflow (blue-ish part of the image). To achieve this you used geometry rendering?
jourdain commentedon Jul 26, 2021
Yes, geometry rendering with some filtering to generate the stream lines. (sorry for the late reply, just got back from vacation)
lizzjs commentedon Jul 27, 2021
I think I am a bit confused on how to render it using dash-vtk, are you using PyVista or VTK to load the data points? (Also, it's okay, thank you for your reply)
jourdain commentedon Jul 27, 2021
To me VTK or PyVista is the same thing. That only affect the syntax but under the hood it is VTK.
From your grid you need to do a stream tracer or something similar (look at the motorcycle example) and then with dash-vtk you just need to use a geometry representation with a mesh.
HTH