[Paraview] Problems with structured grid source plugin
Paul Edwards
paul.m.edwards at gmail.com
Thu Jul 31 04:00:28 EDT 2008
Thanks Ken, it's much appreciated.
2008/7/30 Moreland, Kenneth <kmorel at sandia.gov>:
> The problem is that vtkStructuredGridGenerator needs to declare the whole
> extents in RequestInformation. ParaView will first take the whole extents
> reported in RequestInformation to determine the size of the data that is
> going to be created, and then pass an update extent during the RequestData
> phase to tell your generator what part of the data to actually load.
>
> Attached is a modified version of vtkStructuredGridGenerator.cxx that adds a
> RequestInformation method that reports the WHOLE_EXTENT. I also modified
> the RequestData to query the UPDATE_EXTENT to create a structured grid that
> is the subregion ParaView requests. I also took the liberty to fix a bug in
> the order of the for loops that create the point data. I've tried this in
> ParaView in serial and it works fine. I have not tried it in parallel, but
> these changes should make it work in parallel too.
>
> -Ken
>
>
> On 7/30/08 8:21 AM, "Paul Edwards" <paul.m.edwards at gmail.com> wrote:
>
>> Hi,
>>
>> I am trying to create a structured grid with a plugin. The number of
>> points is correct at the end of request data but nothing appears in
>> ParaView. Can anyone see what I am doing wrong?
>>
>> Thanks in advance,
>> Paul
>
>
More information about the ParaView
mailing list