use of undefined type 'vtkSmoothPoints' when inheriting from vtkSmoothPolyDataFilter
OS: Windows 11
VTK Version: 9.2.0
IDE: Visual Studio 2022
Description
When inheriting from the vtkSmoothPolyDataFilter
I'm getting an use of undefined type 'vtkSmoothPoints'
compile time error:
The above shown code does not contain any additional functionality in the new class (i just stripped the code to its bare minimum, just for your information)
I've looked into the VTK source and realized, that in v9.2.0 the vtkSmoothPolyDataFilter.h
class got updated to convert the vtkSmoothPoints*
into a std::unique_ptr<vtkSmoothPoints>
:
The class vtkSmoothPoints
is forward declared at #102:
Defining the destructor ~vtkSmoothPolyDataFilter
as default
on #229 the destructor of the std::unique_ptr
has to be defined, which is not the case with the forward declaration:
When moving the destructor definition into the vtkSmoothPolyDataFilter.cxx
file, the compile time error is fixed as the destructor of vtkSmoothPoints
is defined there:
Am I right, that this is an issue with the VTK source code, or am I doing something wrong when inheriting from the VTK class? Any information or response is highly appreciated.
Sincerely, Philipp