[vtkusers] cutter for vtkGlyph3D

alex Dowson alexdowson at hotmail.com
Tue Apr 24 23:48:21 EDT 2012


Hi

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
what is PDB format so is it triangulated polydata ?


Alex



From: zhixiu li 
Sent: Wednesday, April 25, 2012 9:14 AM
To: alex Dowson 
Subject: Re: [vtkusers] cutter for vtkGlyph3D

Thank you.
But after I tried your method,I got this kind of error:
ERROR: In ..\..\vtk-5.8.0\Filtering\vtkExecutive.cxx, line 377
vtkStreamingDemandDrivenPipeline (02B1D470): Attempt to get input information vector from input port index 0 for algorithm vtkPDBReader(02B1D150), which has 0 input ports.

ERROR: In ..\..\vtk-5.8.0\Filtering\vtkExecutive.cxx, line 377
vtkStreamingDemandDrivenPipeline (02B1D470): Attempt to get input information vector from input port index 0 for algorithm vtkPDBReader(02B1D150), which has 0 input ports.

ERROR: In ..\..\vtk-5.8.0\Filtering\vtkExecutive.cxx, line 377
vtkStreamingDemandDrivenPipeline (02B1D470): Attempt to get input information vector from input port index 0 for algorithm vtkPDBReader(02B1D150), which has 0 input ports.

ERROR: In ..\..\vtk-5.8.0\Filtering\vtkDemandDrivenPipeline.cxx, line 727
vtkStreamingDemandDrivenPipeline (02B360A8): Input port 0 of algorithm vtkStructuredGridOutlineFilter(02B24EB0) has 0 connections but is not optional.

ERROR: In ..\..\vtk-5.8.0\Filtering\vtkDemandDrivenPipeline.cxx, line 727
vtkStreamingDemandDrivenPipeline (02B33170): Input port 0 of algorithm vtkStructuredGridGeometryFilter(02B32C00) has 0 connections but is not optional.

ERROR: In ..\..\vtk-5.8.0\Filtering\vtkDemandDrivenPipeline.cxx, line 727
vtkStreamingDemandDrivenPipeline (02B2FEB8): Input port 0 of algorithm vtkCutter(02B2BE00) has 0 connections but is not optional.

ERROR: In ..\..\vtk-5.8.0\Filtering\vtkDemandDrivenPipeline.cxx, line 727
vtkStreamingDemandDrivenPipeline (02B360A8): Input port 0 of algorithm vtkStructuredGridOutlineFilter(02B24EB0) has 0 connections but is not optional.

ERROR: In ..\..\vtk-5.8.0\Filtering\vtkDemandDrivenPipeline.cxx, line 727
vtkStreamingDemandDrivenPipeline (02B33170): Input port 0 of algorithm vtkStructuredGridGeometryFilter(02B32C00) has 0 connections but is not optional.

ERROR: In ..\..\vtk-5.8.0\Filtering\vtkDemandDrivenPipeline.cxx, line 727
vtkStreamingDemandDrivenPipeline (02B2FEB8): Input port 0 of algorithm vtkCutter(02B2BE00) has 0 connections but is not optional.



On Tue, Apr 24, 2012 at 11:38 PM, alex Dowson <alexdowson at hotmail.com> wrote:

  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/cf68fb59/attachment.htm>


More information about the vtkusers mailing list