[vtk-developers] Cell Tree Locator Update

Tharindu De Silva tsameera1 at gmail.com
Tue Aug 2 12:18:15 EDT 2011


Hi,

         I did some formatting changes to the code according to vtk
guidelines and added the patch given by John.  The code can be found in
http://review.source.kitware.com/#change,2362.

Some formatting still needs to be done.

Helper classes, vtkCellTree and vtkCellTreeNode, are made public in the
current version to make them accessible by sub-classing to test for
additional functions implemented in vtkModifiedBSPTree. This can be made
protected after all the functions are available in vtkCellTreeLocator.

The standard template library functions are used in this class that might
need to be changed as well.

Please let me know if you come across any other bugs or if there are
 improvements that can be made to this code.

Thank you,

Tharindu

On Fri, Jul 29, 2011 at 4:02 PM, Biddiscombe, John A. <biddisco at cscs.ch>wrote:

>  I’ve fixed the crash caused by a numeric overflow. some compilers might
> not mind and not cause the segfault – I believe the intent was to allow the
> std:::numeric_limits max() to cause a large volume result which would
> exclude the bucket from consideration.****
>
> ** **
>
> I’d added a check to stop it. Might be worth adding a few other tests as
> this class is new and we have little experience with  it. I’ll add one
> myself I think.****
>
> ** **
>
> patch attached****
>
> ** **
>
> JB****
>
> ** **
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtk-developers
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20110802/b2a79a23/attachment.html>


More information about the vtk-developers mailing list