[vtkusers] how to connect between vtkDataObject and vtkunstructuredGrid?

LM racetojannah at yahoo.com
Fri Jan 20 23:53:17 EST 2006


  thanks a lot for ur replys..
  When I connect them directly..by writing
  mcubes->Getinput(threshold->GetOutput)
  it gave me a runtime error..as followed 
   
  "ERROR: In \project\VTK v5\VTK v5\Filtering\vtkDemandDrivenPipeline.cxx, line 777
vtkStreamingDemandDrivenPipeline (04520DA0): Input for connection index 0 on input port index 0 for algorithm vtkMarchingCubes(0451EEC0) is of type vtkUnstructuredGrid, but a vtkImageData is required."
   
  any suggestion?
Uriah Liggett <uliggett at sark.com> wrote:
  Actually, you shouldn't even need to do what I stated before. Since 
vtkUnstructuredGrid is a subclass of vtkDataObject, you can simply pass 
the grid directly to the marching cubes (which will see it as a 
vtkDataObject) without any problems.


LM wrote:

> I would like to ask some small question..
>
> I have the output of the threshold filter "unstructuredGrid"
> and the MarchingCubes take input of type "vtkDataObject" which is a 
> super class of the "vtkunstructuredGrid"
> how to connect between them???
> means.. that i want to get the output of the threshold filter.. and 
> input it into the marchingCubes..
> 
> thanks in advance
> LM
>
> ------------------------------------------------------------------------
> Yahoo! Photos
> Ring in the New Year with Photo Calendars 
> . 
> Add photos, events, holidays, whatever.
>
>------------------------------------------------------------------------
>
>_______________________________________________
>This is the private VTK discussion list. 
>Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>Follow this link to subscribe/unsubscribe:
>http://www.vtk.org/mailman/listinfo/vtkusers
> 
>

_______________________________________________
This is the private VTK discussion list. 
Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers
  



			
---------------------------------
Yahoo! Photos
 Got holiday prints? See all the ways to get quality prints in your hands ASAP.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20060120/16385483/attachment.htm>


More information about the vtkusers mailing list