Does anybody have any further thoughts on this? In particular a lightweight version of vtkappendfilter that does not copy?<div><br></div><div>Cheers,</div><div>Andy<br><br><div class="gmail_quote">On 11 June 2012 13:54, Andrew Parker <span dir="ltr"><<a href="mailto:andy.john.parker@googlemail.com" target="_blank">andy.john.parker@googlemail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<div><br></div><div>So that was exactly where I wanted to go, until I found that it was not a true proxy, which is fine it wasn't intended to be, but instead copies everything. So I have had to delete components to save them being in memory twice. It is a shame this class cannot behave as is, except only in a "shallow" fashion and not copy the data. Indeed it would be also useful if it maintained a reference to the original data such that if I called Transform/modified one of the components then the original component would be modified too.</div>
<div><br></div><div>Is any of that possible, in particular the lightweight version in terms of memory?</div><div><br>Cheers,</div><div>Andy<div><div class="h5"><br><br><div class="gmail_quote">On 11 June 2012 13:48, Bill Lorensen <span dir="ltr"><<a href="mailto:bill.lorensen@gmail.com" target="_blank">bill.lorensen@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Take a look at vtkAppendFilter.<br>
<div><div><br>
On Mon, Jun 11, 2012 at 4:37 AM, Andrew Parker<br>
<<a href="mailto:andy.john.parker@googlemail.com" target="_blank">andy.john.parker@googlemail.com</a>> wrote:<br>
> Hi,<br>
><br>
> I have several vtkUnstructuredGrid(s) that I read in from disk, they are<br>
> separate components of a large model. For various reasons I'd like to be<br>
> able to keep them separate but, for the majority of my program proxy them<br>
> all by one interface as one single "glued" object of that type, in this case<br>
> a single vtkUnstructuredGrid. For example, if I have a file that I read in<br>
> for a nut, and a second file for a bolt, I would like them to remain<br>
> separate, but pass around an object that allowed me to do, say GetPoints(),<br>
> on a single vtkUnstructuredGrid object that gave me all the points in both<br>
> the nut and bolt meshes. Actually, I would like to in a sense have the<br>
> whole interface for vtkUnstructuredGrid and anything beneath it, but behind<br>
> hold a vector of vtkUnstructuredGrids, or indeed another type, vtkpolydata<br>
> for example.<br>
><br>
> Is this possible? I do not think the vtkMultiBlock... is what I want.<br>
> Alternatively, if this is not possible, is there anything that will allow<br>
> me to "add" using operator+ for example the nut and bolt together to get a<br>
> single mesh back. This is not really what I want but would suffice.<br>
><br>
> I would much prefer the former, but the latter is fine if the former is not<br>
> possible.<br>
><br>
> Any help much appreciated. Again, primary importance is one interface that<br>
> under the hood is a vector of said types, where that type need not be a<br>
> vtkunstructuredGrid, but that would be ideal initially....<br>
><br>
> Cheers again,<br>
> Andy<br>
><br>
</div></div>> _______________________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Please keep messages on-topic and check the VTK FAQ at:<br>
> <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
><br>
<span><font color="#888888"><br>
<br>
<br>
--<br>
Unpaid intern in BillsBasement at noware dot com<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div></div></div><span class="HOEnZb"><font color="#888888">-- <br><p>__________________________________</p><p> Dr Andrew Parker</p><p> <a href="mailto:Em@il" target="_blank">Em@il</a>: <a href="mailto:andrew.parker@cantab.net" target="_blank">andrew.parker@cantab.net</a></p>
<br>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><p>__________________________________</p><p> Dr Andrew Parker</p><p> <a href="mailto:Em@il" target="_blank">Em@il</a>: <a href="mailto:andrew.parker@cantab.net" target="_blank">andrew.parker@cantab.net</a></p>
<br>
</div>