<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1226" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hello all,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I&nbsp;cannot display a slice I created using 
vtkCutter.&nbsp;The render window comes up, but&nbsp;there is nothing in 
it.&nbsp;Besides that,</FONT><FONT face=Arial size=2>&nbsp;my code compiles and 
executes just fine. Has any other person had similar or related problems, and 
could give me hints? </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I have also tried using vtkClipPolyData, 
and&nbsp;got the same problem. And</FONT><FONT face=Arial size=2>&nbsp;when 
I&nbsp;used vtkKitwareCutter, I got the whole mesh displayed. My subcommands for 
both were equivalent to that seen with vtkCutter below.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I cannot see what's wrong, so 
hopefully&nbsp;somebody else can. Otherwise, I would be drawn to think there is 
a flaw in the toolkit, and </FONT><FONT face=Arial size=2>I have no wish to 
be&nbsp;the first&nbsp;vtk conspiracy theorist, as&nbsp;my stupidity 
likely&nbsp;has&nbsp;greater explanatory power.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Regards,</FONT></DIV>
<DIV><FONT face=Arial size=2>Jonathan</FONT></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>// Creates function with which to cut 
  slice</FONT></DIV>
  <DIV><FONT face=Arial size=2>vtkPlane *plane = 
  vtkPlane::New();<BR>&nbsp;&nbsp;&nbsp; plane-&gt;SetOrigin (0.0, 0.0, 
  0.0);<BR>&nbsp;&nbsp;&nbsp; plane-&gt;SetNormal (0.0, 1.0, 
  0.0);<BR>&nbsp;&nbsp;&nbsp; <BR>// Loads mesh (which is an instance of 
  vtkPolyData)&nbsp;and plane. Use latter to cut former.<BR>vtkCutter *cutter = 
  vtkCutter::New();<BR>&nbsp;&nbsp;&nbsp; cutter-&gt;SetInput( 
  finalmesh-&gt;GetOutput() );<BR>&nbsp;&nbsp;&nbsp; 
  cutter-&gt;SetCutFunction(plane);<BR>&nbsp;&nbsp;&nbsp; 
  cutter-&gt;Update();</FONT></DIV>
  <DIV><FONT face=Arial size=2><BR></FONT><FONT face=Arial size=2>// Maps slice 
  to graphics primitives</FONT><FONT face=Arial size=2><BR>vtkPolyDataMapper 
  *cutterMapper = vtkPolyDataMapper::New();</FONT></DIV>
  <DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; cutterMapper-&gt;SetInput ( 
  cutter-&gt;GetOutput() );<BR>&nbsp;&nbsp;&nbsp; 
  cutterMapper-&gt;ScalarVisibilityOff();<BR>&nbsp; <BR>// Creates actor to 
  render slice<BR>vtkActor *cut = vtkActor::New();<BR>&nbsp;&nbsp;&nbsp; 
  cut-&gt;SetMapper 
  (cutterMapper);<BR>&nbsp;&nbsp;&nbsp;&nbsp;</FONT></DIV><FONT face=Arial 
  size=2>
  <DIV><BR></FONT><FONT face=Arial size=2>// Creates renderer, render window, 
  render window interactor<BR>vtkRenderer *ren1 = 
  vtkRenderer::New();<BR>vtkRenderWindow *renWin = 
  vtkRenderWindow::New();</FONT></DIV>
  <DIV><FONT face=Arial size=2>vtkRenderWindowInteractor *iren = 
  vtkRenderWindowInteractor::New();</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>// Renders slice</FONT></DIV>
  <DIV><FONT face=Arial 
  size=2>ren1-&gt;AddActor(cut);<BR>ren1-&gt;SetBackground(.2,.3,.5);<BR>renWin-&gt;AddRenderer(ren1);</FONT></DIV><FONT 
  face=Arial size=2>
  <DIV><BR>iren-&gt;SetRenderWindow(renWin);<BR>renWin-&gt;SetSize(300,300);<BR>renWin-&gt;Render();<BR>iren-&gt;Start();</FONT></DIV></BLOCKQUOTE></BODY></HTML>