<HTML><HEAD></HEAD>
<BODY dir=ltr>
<DIV dir=ltr>
<DIV style="FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: 12pt">
<DIV>Hi</DIV>
<DIV>&nbsp;</DIV>
<DIV>Check you PDBReader FileName path . If is not locating file then output 
will be empty and you will get this error due to empty output. Also I still 
donot know</DIV>
<DIV>what is PDB format so is it triangulated polydata ?</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>Alex</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV 
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">
<DIV style="FONT: 10pt tahoma">
<DIV>&nbsp;</DIV>
<DIV style="BACKGROUND: #f5f5f5">
<DIV style="font-color: black"><B>From:</B> <A title=zhixiuli@gmail.com 
href="mailto:zhixiuli@gmail.com">zhixiu li</A> </DIV>
<DIV><B>Sent:</B> Wednesday, April 25, 2012 9:14 AM</DIV>
<DIV><B>To:</B> <A title=alexdowson@hotmail.com 
href="mailto:alexdowson@hotmail.com">alex Dowson</A> </DIV>
<DIV><B>Subject:</B> Re: [vtkusers] cutter for vtkGlyph3D</DIV></DIV></DIV>
<DIV>&nbsp;</DIV></DIV>
<DIV 
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">
<DIV class=gmail_extra>Thank you.<BR>But after I tried your method,I got this 
kind of error:<BR>ERROR: In ..\..\vtk-5.8.0\Filtering\vtkExecutive.cxx, line 
377<BR>vtkStreamingDemandDrivenPipeline (02B1D470): Attempt to get input 
information vector from input port index 0 for algorithm vtkPDBReader(02B1D150), 
which has 0 input ports.<BR><BR>ERROR: In 
..\..\vtk-5.8.0\Filtering\vtkExecutive.cxx, line 
377<BR>vtkStreamingDemandDrivenPipeline (02B1D470): Attempt to get input 
information vector from input port index 0 for algorithm vtkPDBReader(02B1D150), 
which has 0 input ports.<BR><BR>ERROR: In 
..\..\vtk-5.8.0\Filtering\vtkExecutive.cxx, line 
377<BR>vtkStreamingDemandDrivenPipeline (02B1D470): Attempt to get input 
information vector from input port index 0 for algorithm vtkPDBReader(02B1D150), 
which has 0 input ports.<BR><BR>ERROR: In 
..\..\vtk-5.8.0\Filtering\vtkDemandDrivenPipeline.cxx, line 
727<BR>vtkStreamingDemandDrivenPipeline (02B360A8): Input port 0 of algorithm 
vtkStructuredGridOutlineFilter(02B24EB0) has 0 connections but is not 
optional.<BR><BR>ERROR: In 
..\..\vtk-5.8.0\Filtering\vtkDemandDrivenPipeline.cxx, line 
727<BR>vtkStreamingDemandDrivenPipeline (02B33170): Input port 0 of algorithm 
vtkStructuredGridGeometryFilter(02B32C00) has 0 connections but is not 
optional.<BR><BR>ERROR: In 
..\..\vtk-5.8.0\Filtering\vtkDemandDrivenPipeline.cxx, line 
727<BR>vtkStreamingDemandDrivenPipeline (02B2FEB8): Input port 0 of algorithm 
vtkCutter(02B2BE00) has 0 connections but is not optional.<BR><BR>ERROR: In 
..\..\vtk-5.8.0\Filtering\vtkDemandDrivenPipeline.cxx, line 
727<BR>vtkStreamingDemandDrivenPipeline (02B360A8): Input port 0 of algorithm 
vtkStructuredGridOutlineFilter(02B24EB0) has 0 connections but is not 
optional.<BR><BR>ERROR: In 
..\..\vtk-5.8.0\Filtering\vtkDemandDrivenPipeline.cxx, line 
727<BR>vtkStreamingDemandDrivenPipeline (02B33170): Input port 0 of algorithm 
vtkStructuredGridGeometryFilter(02B32C00) has 0 connections but is not 
optional.<BR><BR>ERROR: In 
..\..\vtk-5.8.0\Filtering\vtkDemandDrivenPipeline.cxx, line 
727<BR>vtkStreamingDemandDrivenPipeline (02B2FEB8): Input port 0 of algorithm 
vtkCutter(02B2BE00) has 0 connections but is not optional.<BR><BR><BR>
<DIV class=gmail_quote>On Tue, Apr 24, 2012 at 11:38 PM, alex Dowson <SPAN 
dir=ltr>&lt;<A href="mailto:alexdowson@hotmail.com" 
target=_blank>alexdowson@hotmail.com</A>&gt;</SPAN> wrote:<BR>
<BLOCKQUOTE 
style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" 
class=gmail_quote>
  <DIV dir=ltr>
  <DIV dir=ltr>
  <DIV style="FONT-FAMILY: 'Calibri'; FONT-SIZE: 12pt">
  <DIV>Hi</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>You can try like this</DIV>
  <DIV>&nbsp;</DIV>plane = vtk.vtkPlane()<BR>plane.SetOrigin(0,0,0) 
  <DIV class=im><BR>plane.SetNormal(0.17, 0, 0.9579)<BR>planeCut = 
  vtk.vtkCutter()<BR></DIV>planeCut.SetInput(pdb.GetOutput())<BR>planeCut.SetCutFunction(plane) 

  <DIV 
  style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">
  <DIV style="FONT: 10pt tahoma">
  <DIV><FONT size=3 face=Calibri></FONT>&nbsp;</DIV>
  <DIV><FONT size=3 face=Calibri></FONT>&nbsp;</DIV>
  <DIV><FONT size=3 face=Calibri></FONT>&nbsp;</DIV>
  <DIV>&nbsp;</DIV>
  <DIV style="BACKGROUND: #f5f5f5">
  <DIV><B>From:</B> <A title=zhixiuli@gmail.com href="mailto:zhixiuli@gmail.com" 
  target=_blank>zhixiu li</A> </DIV>
  <DIV><B>Sent:</B> Wednesday, April 25, 2012 8:48 AM</DIV>
  <DIV><B>To:</B> <A title=vtkusers@vtk.org href="mailto:vtkusers@vtk.org" 
  target=_blank>vtkusers</A> </DIV>
  <DIV><B>Subject:</B> Re: [vtkusers] cutter for vtkGlyph3D</DIV></DIV></DIV>
  <DIV>&nbsp;</DIV></DIV>
  <DIV 
  style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">
  <DIV>
  <DIV class=h5>
  <DIV class=gmail_extra>Sorry, I didn't say it clearly.<BR>I read the pdb 
  by<BR>pdb = vtk.vtkPDBReader()<BR>pdb.SetFileName(sys.argv[1])<BR><BR>And I 
  want to cut the pdb by the plain and its cutter<BR><BR>plane = 
  vtk.vtkPlane()<BR>plane.SetOrigin(??????????????????????what should I put in 
  here)<BR>plane.SetNormal(0.17, 0, 0.9579)<BR>planeCut = 
  vtk.vtkCutter()<BR>planeCut.SetInput(????????????????????what should I put in 
  here)<BR>planeCut.SetCutFunction(plane)<BR><BR><BR>Thank you!<BR><BR><BR>
  <DIV class=gmail_quote>On Tue, Apr 24, 2012 at 11:04 PM, zhixiu li <SPAN 
  dir=ltr>&lt;<A href="mailto:zhixiuli@gmail.com" 
  target=_blank>zhixiuli@gmail.com</A>&gt;</SPAN> wrote:<BR>
  <BLOCKQUOTE 
  style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" 
  class=gmail_quote>Dear ALL,<BR>I have a pdb file and I want to use the 
    pdbreader to read the pdb file. And use use vtkGlyph3D for each atom (each 
    points ) of the pdb. I want to use a plain to cut this pdb and show the 
    cutting plain of the pdb. How do I combine vtkCutter and vtkGlyph3D to 
    achieve the aim? Thank you. <BR></BLOCKQUOTE></DIV>
  <DIV>&nbsp;</DIV></DIV></DIV></DIV>
  <HR>
  _______________________________________________<BR>Powered by <A 
  href="http://www.kitware.com" target=_blank>www.kitware.com</A><BR><BR>Visit 
  other Kitware open-source projects at <A 
  href="http://www.kitware.com/opensource/opensource.html" 
  target=_blank>http://www.kitware.com/opensource/opensource.html</A><BR><BR>Please 
  keep messages on-topic and check the VTK FAQ at: <A 
  href="http://www.vtk.org/Wiki/VTK_FAQ" 
  target=_blank>http://www.vtk.org/Wiki/VTK_FAQ</A><BR><BR>Follow this link to 
  subscribe/unsubscribe:<BR><A 
  href="http://www.vtk.org/mailman/listinfo/vtkusers" 
  target=_blank>http://www.vtk.org/mailman/listinfo/vtkusers</A><BR></DIV></DIV></DIV></DIV></BLOCKQUOTE></DIV>
<DIV>&nbsp;</DIV></DIV></DIV></DIV></DIV></BODY></HTML>