[vtkusers] vtkModifiedBSPTree slicing
Biddiscombe, John A.
biddisco at cscs.ch
Wed Mar 21 12:12:28 EDT 2012
>Is it possible to slice a vtkModifiedBSPTree with a vtkCutter ?
Not without code changes. Why would you do this? You can slice a vtkDataSet with a cutter and that will give you much the same result.
Do you have data already in the BSP tree? and you want to cut it faster?
If the answer is yes to both, then look at the BSP tree intersect with line code. I think in my local repo I may have an intersect with Box function too. To add an intersect with line, you need only walk the tree using the stack in the same way as the existing code, test each bounding box against the slice plane and reject any on the wrong side. open those that overlap and then keep going until you get to cells. Then you can call vtkCell intersect/slice or whatever.
It would be quite simple to implement if you examine the existing code.
JB
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120321/1da3d204/attachment.htm>
More information about the vtkusers
mailing list