<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>You can try like this</DIV>
<DIV>&nbsp;</DIV>plane = 
vtk.vtkPlane()<BR>plane.SetOrigin(0,0,0)<BR>plane.SetNormal(0.17, 0, 
0.9579)<BR>planeCut = 
vtk.vtkCutter()<BR>planeCut.SetInput(pdb.GetOutput())<BR>planeCut.SetCutFunction(plane) 

<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><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 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 8:48 AM</DIV>
<DIV><B>To:</B> <A title=vtkusers@vtk.org 
href="mailto:vtkusers@vtk.org">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'; COLOR: #000000; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">
<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>
<P>
<HR>
_______________________________________________<BR>Powered by 
www.kitware.com<BR><BR>Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html<BR><BR>Please keep messages 
on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ<BR><BR>Follow 
this link to 
subscribe/unsubscribe:<BR>http://www.vtk.org/mailman/listinfo/vtkusers<BR></DIV></DIV></DIV></BODY></HTML>