[vtkusers] Problem with vtkCutter

ALIZIER Julien AUSY julien.alizier-ausy at irsn.fr
Wed Jul 7 10:31:37 EDT 2004


Hi Jonathan,

Is it a compile-time or a run-time message ?
What compiler/environment are you using ?

-- Julien



-----Message d'origine-----
De : Jonathan Lin [mailto:jonathan.s.lin at vanderbilt.edu]
Envoyé : mercredi 7 juillet 2004 16:26
À : ALIZIER Julien AUSY; vtkusers at vtk.org
Objet : Re: [vtkusers] Problem with vtkCutter


Hello Julien,

Thank you much for your suggestion. I have tried it, but the same error
occurs. I still get "no matching function for call to vtkCutter:SetInput". I
am very grateful for your attempt to help, though.

Jonathan
----- Original Message ----- 
From: ALIZIER Julien AUSY 
To: 'Jonathan Lin' ; vtkusers at vtk.org 
Sent: Wednesday, July 07, 2004 2:36 AM
Subject: RE: [vtkusers] Problem with vtkCutter


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