[vtkusers] cutter for vtkGlyph3D

alex Dowson alexdowson at hotmail.com
Tue Apr 24 23:38:19 EDT 2012


Hi

You can try like this

plane = vtk.vtkPlane()
plane.SetOrigin(0,0,0)
plane.SetNormal(0.17, 0, 0.9579)
planeCut = vtk.vtkCutter()
planeCut.SetInput(pdb.GetOutput())
planeCut.SetCutFunction(plane) 




From: zhixiu li 
Sent: Wednesday, April 25, 2012 8:48 AM
To: vtkusers 
Subject: Re: [vtkusers] cutter for vtkGlyph3D

Sorry, I didn't say it clearly.
I read the pdb by
pdb = vtk.vtkPDBReader()
pdb.SetFileName(sys.argv[1])

And I want to cut the pdb by the plain and its cutter

plane = vtk.vtkPlane()
plane.SetOrigin(??????????????????????what should I put in here)
plane.SetNormal(0.17, 0, 0.9579)
planeCut = vtk.vtkCutter()
planeCut.SetInput(????????????????????what should I put in here)
planeCut.SetCutFunction(plane)


Thank you!



On Tue, Apr 24, 2012 at 11:04 PM, zhixiu li <zhixiuli at gmail.com> wrote:

  Dear ALL,
  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. 




--------------------------------------------------------------------------------
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120425/046407bc/attachment.htm>


More information about the vtkusers mailing list