[Paraview] Extents problem

Berk Geveci berk.geveci at kitware.com
Fri Dec 5 17:17:38 EST 2014


Hi Greg,

I tracked down the problem. It is this line:

133 sgrid->SetDimensions(count[0], count[1], count[2]);

This is equivalent to

sgrid->SetExtent(0, count[0]-1, 0, count[1]-1, 0, count[2]-1);

which overwrites the earlier SetExtent() call.

If you get rid of it, it should work fine.

Best,
-berk


On Sat, Nov 29, 2014 at 7:09 PM, Greg Abram <gda at tacc.utexas.edu> wrote:

>  Hey y'all -
>
> I'm trying to write a parallel reader for a user's structured grid and am
> having a problem with extents.    I've included a plugin that demonstrates
> the problem - a little "importer" that hardwires a whole extent of 0,10 in
> each axis.  In RequestInformation it calls:
>
>
> outInfo->Set(vtkStreamingDemandDrivenPipeline::WHOLE_EXTENT(),this->Internals->extent,6);
>   outInfo->Set(CAN_PRODUCE_SUB_EXTENT(), 1);
>
>  and in RequestData it calls
>
>    outInfo->Get(vtkStreamingDemandDrivenPipeline::UPDATE_EXTENT(),subext);
>    vtkStructuredGrid *sgrid = vtkStructuredGrid::SafeDownCast(output);
>   sgrid->SetExtent(subext);
>
>  to get the update extent from the pipeline and set it onto the
> structured grid..  It then stuffs points and data to create a grid from -1
> to 1 in each axis.
>
>  When I run it on 2 processes, the result *looks* right, it fills the -1
> to 1 space along each axis, there are the right number of cells and points,
> ProcessIdScalars shows two equal size partitions, but the extent is clearly
> not right - the wireframe and surface surface boundaries are incomplete and
> the extent shown in the Information tab is correct for only one of the two
> parts.
>
>  So, what am I doing wrong?
>
>  If anyone is interested, I uploaded the plugin code to:
> https://utexas.box.com/s/d6ef5kx4oxm1d205hbbo
>
>   Gregory D. Abram, Ph.D.
> Research Engineering/Scientist Associate
> Texas Advanced Computing Center
> The University of Texas at Austin
> (512) 471-8196
> gda at tacc.utexas.edu
>
>  [image: TACC Website] <https://www.tacc.utexas.edu/>
>
> Connect With TACC <https://www.tacc.utexas.edu/>
>
>
>
>
> _______________________________________________
> 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 ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20141205/f22094da/attachment.html>


More information about the ParaView mailing list