[vtkusers] problems while subclassing vtkCellLocator (Vtk5.0)
Jens G.
jens-devel at gmx.de
Tue Feb 28 12:17:38 EST 2006
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.
Greetings
Jens
More information about the vtkusers
mailing list