[vtkusers] Create Multiple slices using vtkCutter and output all the slices into a single polydata file

Prabhu Ramachandran prabhu at aero.iitm.ernet.in
Wed Jul 24 08:09:21 EDT 2002


>>>>> "NHW" == Ng Hong Wan <hongwan at myrealbox.com> writes:

    NHW> I am using a cutter to cut through the slice of a human head
    NHW> at different z intervals using vtkcutter. Doing that requires
    NHW> a loop that will create many cutedges, when I output it using
    NHW> vtkpolywriter, it will create many files as well, is there a
    NHW> way to combine the all the slices together??

You can use the vtkAppendPolyData class to append a whole bunch of
vtkPolyData objects (using AddInput) and dump them as one full
vtkPolyData object.  Read the class documentation for more help.

prabhu



More information about the vtkusers mailing list