[vtkusers] Problem with vtkCutter

Jonathan Lin jonathan.s.lin at vanderbilt.edu
Wed Jul 7 10:26:01 EDT 2004


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20040707/eb878c3f/attachment.htm>


More information about the vtkusers mailing list