[vtkusers] intersection of two boxes

Dean Inglis dean.inglis at sympatico.ca
Thu Jul 31 22:13:16 EDT 2008


Hi all.

 

I have been trying for several days now to visualize

the intersection of two boxes: one is axis aligned (x,y,z), the

other is oriented obliquely to the other such that

some vertices of the second box can be outside

of the volume of the first box.  I have tried vtkCutter,

vtkClipDataSet, vtkClipPolyData, vtkBoxClipDataSet,

vtkClipVolume all with vtkImplicitFunctions such as vtkPlanes and

vtkBox but no luck.  I have represented the boxes as

vtkImageData or vtkRectilinearGrid or even vtkPolyData 

generated by vtkCubeSource.

 

 The best I could do was create two vtkBox objects and pass them 

to  a vtkImplicitBoolean and then sample its output

with vtkSampleFunction and then use vtkContourFilter

to pull out the isosurface of the intersection between

the two boxes.  This last pipeline does not produce

the "crisp" edges that I am looking for (see attached jpg). 

Im looking for the kind of quality you can achieve using 

vtkCutter with a vtkPlane to cut through a vtkImageData: 

as is done internally with vtkImplicitPlaneWidget (I guess I'm

looking for a vtkImplicitVolumeWidget).

 

Has anyone tackled this scenario before or does anyone

have any recommendations?  

 

Dean

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20080731/d7be49fe/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Image1.jpg
Type: image/jpeg
Size: 7756 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20080731/d7be49fe/attachment.jpg>


More information about the vtkusers mailing list