[vtk-developers] vtkCutter modification to use vtkCellLocator

Gerrick Bivins Gerrick.Bivins at halliburton.com
Mon Sep 15 10:02:22 EDT 2014


Hi Rostislav,
Did anything happen with this?
I would definitely be interested in this capability/feature/improvement.

Gerrick

From: vtk-developers [mailto:vtk-developers-bounces at vtk.org] On Behalf Of Berk Geveci
Sent: Tuesday, August 12, 2014 11:44 AM
To: Rostislav Khlebnikov
Cc: VTK Developers
Subject: Re: [vtk-developers] vtkCutter modification to use vtkCellLocator

Hi Rostislav,

This is great. Can you push the code to Gerrit (http://review.source.kitware.com/)?

Best,
-berk


On Sat, Aug 9, 2014 at 2:52 PM, Rostislav Khlebnikov <rostislav.khlebnikov at kcl.ac.uk<mailto:rostislav.khlebnikov at kcl.ac.uk>> wrote:
Hi guys,

just thought that the VTK developers might be interested in the test I made recently.

Bascially what I did is subclass the vtkCellLocator to implement the visitor pattern. It allows to filter the octree nodes (e.g. reject the octree nodes that are of no interest early) and for leafs, to visit the cells of the polydata.
Then, I subclassed the vtkCutter to use this cell locator instead of straight iteration over cells. Likely for very complex implicit cutting functions this wouldnt be of any benefit. However, for those which can test bboxes as being of interest or not, rejecting whole subtrees, such as vtkPlane, it is very useful. I tested it on a surface with 500k triangles and the cutter performance went from 88ms per cut to 14ms.

The code I made is quite ugly due to limited extensibility of vtkCutter, so I had to copy-paste the RequestData method and make my changes instead of, say, overriding IterateCells method which would just provide the cells to cut through.

But anyway, I was wondering if you guys are intersted in this kind of functionality? Would you like me to send you the code?

All best,
   Rostislav.

_______________________________________________
Powered by www.kitware.com<http://www.kitware.com>

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/vtk-developers


----------------------------------------------------------------------
This e-mail, including any attached files, may contain confidential and privileged information for the sole use of the intended recipient.  Any review, use, distribution, or disclosure by others is strictly prohibited.  If you are not the intended recipient (or authorized to receive information for the intended recipient), please contact the sender by reply e-mail and delete all copies of this message.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20140915/550fa685/attachment-0001.html>


More information about the vtk-developers mailing list