[vtkusers] Usage of LSDynaMetaData?
Robert Maynard
robert.maynard at kitware.com
Fri Oct 12 14:40:31 EDT 2012
Sorry I was incorrect the MetaData object is protected and making it public
isn't something we plan on doing in VTK as the MetaData is an
implementation detail
of the class.
The vtkLSDynaReader::ReadInputDeck() call populates the meta data object
with all part names. Make sure that your vtkLSDynaReader RequestData has been
executed before you ask for part ids.
I am curious on what your exact issue is. If you are trying to find
out what parts
the reader has loaded, I would recommend that you modify the reader to save
the part id on each block as field data. That could be done on line 3507 where
we save the name of each part as the multiblocks block name.
On Fri, Oct 12, 2012 at 2:23 AM, Nelson <gnjoseph at gmail.com> wrote:
> Hi Robert,
>
> Thanks for your quick reply.
>
> I am having two issues:
>
> 1) The LSDynaMetaData with the name P is protected member ( I am using VTK
> 5.10.0)
> can I move it to public of that class?
>
> 2) The following code doesnt give the proper result. Could you help me where
> I did mistake?
> LSDynaMetaData* meta;
> meta = reader->P;
> partCollection->InitCollection( meta );
>
> vector<int> v = meta->
> for(int i = 0; i < v.size(); i++ )
> {
> cout<< "Part id of " << i << " " << v.at(i);
> }
>
> Thanks in advance.
>
>
>
> -----
> Regards,
> Nelson
> --
> View this message in context: http://vtk.1045678.n5.nabble.com/Usage-of-LSDynaMetaData-tp5716610p5716621.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> 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
--
Robert Maynard
More information about the vtkusers
mailing list