Implementation of clipping tool #84
Replies: 7 comments 3 replies
-
Update: I have found this already helpful. |
Beta Was this translation helpful? Give feedback.
-
Did you solved your problem on your own or do you still have a question? |
Beta Was this translation helpful? Give feedback.
-
Hi, Thank you. I could solve the problem partly, so if it's OK, I would use this thread to ask the other part as well. So far, I have been able to implement the clipping tool but just the intersection with the XZ-plane located at the origin as shown in the image here: My next aim is to include a drop-down menu where the local user can choose from the provided list of planes and visualise the results and then if possible, implement a slider which can be used to translate the initial plane along the normal axis. To obtain the image above, besides other little changes, following this example, I have added the following snippet of the code. Do you have any idea what could be the right way to implement the abovementioned, perhaps to start with, the option of adding different choices of planes, i.e., YZ, XY-planes located at the origin?
Thank you, |
Beta Was this translation helpful? Give feedback.
-
Apparently, what I tried above only clips the geometry and doesn't display the variables on that geometry. So, if there is any way of doing that, it would be helpful to know. |
Beta Was this translation helpful? Give feedback.
-
I am also interested on this feature, but I was unable to find a suitable example on VTK (like, for example, Colour a clip by Temperature) Could you guys suggest an example where a variable is displayed on a clip/slice? Many thanks in advance |
Beta Was this translation helpful? Give feedback.
-
Hi Jourdain, Thanks for your reply. Actually CutStructuredGrid looks nice, but the point is that we are working with vtu. Should this cutter work also on unstructured data? The idea would be to create a user defined clip (or if easier, a slice), and then colour the resulting object by variable (velocity, pressure...or any other result available in the vtu file) |
Beta Was this translation helpful? Give feedback.
-
The vtkCutter can work on any vtkDataSet which include vtkUnstructuredGrid. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I am trying to add a clipping tool as in Paraview for an example in Trame. For that, I am trying to follow this example. As it is for the clipping of polygonal data, I am wondering how I can use it in the geometry of this example. Perhaps, if the geometry can be converted to polygonal data, I could continue as in the clipping example, but I am not sure if/how that can be done.
Any comments are much appreciated.
Best,
Beta Was this translation helpful? Give feedback.
All reactions