[vtkusers] problems while subclassing vtkCellLocator (Vtk5.0)

Mathieu Malaterre mathieu.malaterre at kitware.com
Tue Feb 28 12:49:01 EST 2006


Jens G. wrote:
> Hi 
> 
> While trying to subclass vtkCellLocator to add the function 
> 	void FindCellsWithinRadius (double radius, double x[3], vtkIdList *result);
> I found these problems:
> 
> 1)
> The class vtkNeighborCells should be defined in the header-file 
> vtkCellLocator.h and not in vtkCellLocator.cxx where it is right now.
> Right now it is not possible to subclass vtkCellLocator and access functions 
> of vtkNeighborCell-objects.
> (I do not know of the possibility for forward declaration of member-functions 
> I could use in my cxx-file of the subclass)
> 
> 2)
> vtkCellLocator::Distance2ToBounds(double x[3], double bounds[6])
> 	should be
> vtkCellLocator::Distance2ToBounds(const double x[3], const double bounds[6])
> 	like it is in vtkPointLocator.

Jens,

	Make perfect sense to me. Could you please open an issue in the VTK bug 
tracker:

	http://vtk.org/Bug

Thanks for your time
Mathieu



More information about the vtkusers mailing list