[vtkusers] vtkCell and New function
Schaap, J.A. (LKEB)
J.A.Schaap at lumc.nl
Mon May 6 09:37:30 EDT 2002
vtkCell is an abstract class, so it doesn't have a New() method.
use vtkGenericCell cell instead.
see http://public.kitware.com/VTK/doc/release/4.0/html/classvtkGenericCell.html
Jorrit
6-5-2002 15:31:03, Frederic Huguet <fxh39668 at gsk.com> wrote:
>hello,
>
>I've tried to create an isolate vtkCell object with the following code :
>
>vtkCell* Cell = vtkCell :: New();
>
>but I get the following error message :
>
>d:\sources\3dvoxel\cut.cpp(832) : error C2440: 'initializing' : cannot
>convert from 'class vtkObject *' to 'class vtkCell *'
> Types pointed to are unrelated; conversion requires
>reinterpret_cast, C-style cast or function-style cast
>
>I thought New was the only mean to create any kind of vtk Object.
>How could I solve this problem without using a static cast ?
>
>Thanks.
>
>
>_______________________________________________
>This is the private VTK discussion list.
>Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
>Follow this link to subscribe/unsubscribe:
>http://public.kitware.com/mailman/listinfo/vtkusers
>
More information about the vtkusers
mailing list