[vtkusers] How to loop around vtkAppendPolydata ?
Seb
sxa at fluent.com
Fri Sep 26 08:26:07 EDT 2003
Hum !!
In order to retrieve the initial small polydata, I thought of creating a
struct which would essentially keep the index info it needs to retrieve the
data and recreate the dataset. (We need that anyway since we implement our
own transformation, visibility etc stuffs. We don't use interactors. )
I guess that Wen-Hsing Chiang's last suggestion (see below) would mean that
2 copies of the datasets are kept in memory. (i.e. All of the small one
serving as input to the vtkAppendPolydata and the output polydata
representing all the input )
Again, our goal is to find a way to have as less polydata instance as
possible. We need to display many of them, so much in fact that we can't
afford to keep any copies. We must just keep the datasets to its most
essential form.
We'll take a look to see how much time it would take to create our own
Appending filter.
Thanks !
----- Original Message -----
From: "Malcolm Drummond" <malcolm at geovision.co.za>
To: "vtkusers" <vtkusers at vtk.org>
Sent: Friday, September 26, 2003 3:15 AM
Subject: Re: [vtkusers] How to loop around vtkAppendPolydata ?
> Hi
>
> This accumulation is possible, copying the output and resetting it as one
of
> the inputs. But what about your indexing into the final polydata, for
later
> removal or adjustment of individual objects etc. I tried something like
this
> a couple of years ago and found in the end I was better off managing the
> PolyData accumulation myself. I'd suggest having a look at how filters
like
> Append work internally (the User's Guide also has good info on creating
and
> maintaining PolyData) and try roll your own.
>
> Malcolm
>
> From: "Wen-Hsing Chiang" <wchiang at iesinet.com> | This is spam | Add to
Address Book
> To: "'tutu lamotte'" <tutulamotte at yahoo.com>
> Subject: RE: [vtkusers] How to loop around vtkAppendPolydata ?
> Date: Thu, 25 Sep 2003 16:35:48 -0700
> Hi,
> Once you append the initial small polydata to vtkAppendPolydata, a copy
> of that small guy will be added to vtkAppendPolydata and therefore you
> may delete that small guy immediately after the AddInput function, like
> this:
> aVtkAppendPolyData->AddInput(ASmallPolydataObject);
> ASmallPolydataObject->Delete();
> I use this quite often, mainly for putting GIS or CAD vectors together.
> Hope this helps.
> Wen-Hsing Chiang, Ph.D.
> Integrated Environmental Services, Inc.
> 20 Fairbanks, Suite 187
> Irvine, CA 92618
> USA
> tel. 949.460.7003
> fax. 949 460 7019
> ----- Original Message -----
> From: "tutu lamotte" <tutulamotte at yahoo.com>
> To: <vtkusers at vtk.org>
> Sent: Thursday, September 25, 2003 10:41 PM
> Subject: [vtkusers] How to loop around vtkAppendPolydata ?
>
>
> > Dear List !
> >
> > We need to find a way to "accumulate" many polydata
> > that are manually created (Without source object). The
> > huge accumulated polydata would be the output of a
> > vtkAppendPolydata instance. Now because it is an
> > accumulation, it means that the output would also need
> > to be the input of the same vtkAppendPolydata
> > instance. Each new polydata would be inserted as a
> > second input. (this second input would be disconnected
> > after Update is called on the Append filter. )
> > We've tried that approach but the end result is always
> > one single polydata... and not an accumulation of all
> > the datasets that were appended.
> >
> > Hope it's clearly explained !
> >
> > Thanks for any suggestions !
> >
> >
> > __________________________________
> > Do you Yahoo!?
> > The New Yahoo! Shopping - with improved product search
> > http://shopping.yahoo.com
> > _______________________________________________
> > This is the private VTK discussion list.
> > Please keep messages on-topic. Check the FAQ at:
> <http://public.kitware.com/cgi-bin/vtkfaq>
> > 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://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
More information about the vtkusers
mailing list