Extract Slice Plane Dimensions in PvPython
Hi everyone,
Does anyone know how to (or if it possible to) obtain the coordinates of the vertices of a slice plane in PvPython? I've been able to access the grid point coordinates contained within the slice with: servermanager.Fetch(SliceName).GetPoint(PointIndex ) but I also need to find out where the vertices of the slice plane are so that I can construct a tangent vector to the plane. Any help would be greatly appreciated! Thanks! |
Hi,
Here are a few snippets that may interest you: Bounding box: Code:
bbox = slice.GetDataInformation().GetBounds() Code:
from paraview import numpy_support as ns Code:
from paraview import numpy_support as ns Mikko |
Thanks for that Mikko, they were very helpful snippets :) Is there any documentation anywhere that can tell me what attributes and methods the Paraview vtk objects have? Basically, is there any documentation with more snippets that might be useful??
|
Have you checked The ParaView Guide-v4.3? I found it really helpful so far in my quest to learn paraview.
|
All times are GMT -4. The time now is 08:01. |