[vtkusers] Cutting out a piece of a rectilinear grid

Jeff Lee jeff at cdnorthamerica.com
Thu Aug 5 07:33:38 EDT 2004



tom fogal wrote:

>Hi all, I'm plotting streamlines using vtkStreamTracer from data in a
>vtkRectilinearGrid, and having an issue concerning a convention used in
>the dataset.
>
>Within a certain radius from (0,0,0), the data aren't very good and I
>would like to avoid tracing a stream line through it.
>So I was wondering if there was any way to cut out a portion of a
>rectilinear grid, or impose some sort of other artificial boundary on
>the data?
>  
>
mabey vtkThreshold?  You could make a scalar field of radius and then 
threshold the dataset to extract cells greater than your min radius, and 
pass the output to vtkStreamTracer.  Or mabey vtkClipDataSet with a 
sphere implcit function... then you could avoid calculating a field of 
radius.
-J

>Any ideas?
>
>Thanks,
>
>-tom
>_______________________________________________
>This is the private VTK discussion list. 
>Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
>Follow this link to subscribe/unsubscribe:
>http://www.vtk.org/mailman/listinfo/vtkusers
>
>
>  
>



More information about the vtkusers mailing list