[vtkusers] Problem with vtkCutter

ALIZIER Julien AUSY julien.alizier-ausy at irsn.fr
Wed Jul 7 03:36:06 EDT 2004


Hi Jonathan,

You need to tell the vtkCutter how to cut. 
You do this by giving an implicit function.

Example :

(...)

vtkPlane * plane = vtkPlane::New();
plane->SetOrigin(0.0, 0.0, 0.0);
plane->SetNormal(0.0, 0.0, 1.0);

vtkCutter *cutter = vtkCutter::New();
cutter->SetCutFunction(plane); // this was the missing function ;-)
cutter->SetInput(mesh->GetOutput());

cutter->Update();

(...)


-- Julien



-----Message d'origine-----
De : Jonathan Lin [mailto:jonathan.s.lin at vanderbilt.edu]
Envoyé : mardi 6 juillet 2004 22:20
À : vtkusers at vtk.org
Objet : [vtkusers] Problem with vtkCutter


Hi all,

I've created a vtkCutter object, and am trying to load with "SetInput" the
data I will slice. I get an error saying this function does not exist. Here
is the relevant code:

vtkCutter *cutter = vtkCutter::New();
cutter --> SetInput ( mesh->GetOutput() );

The error I receive is "no matching function for call to
vtkCutter::SetInput." I have checked the relevant header files, and the
function is there. I suspect the problem is in the library files. How could
I check this and how could I fix it? Nudge me in the right direction and
I'll take it from there.

Regards,
Jonathan



More information about the vtkusers mailing list