[Paraview-developers] Fw: vtk grids and parallelization (burlen)

David E DeMarle dave.demarle at kitware.com
Mon Aug 9 17:14:25 EDT 2010


I agree with Burlen, in the programmable filter:
print self.GetInput().GetWholeExtent()
print self.GetInput().GetUpdateExtent()
will show you the entire domain, and the domain that this particular
processor is locally responsible for respectively.

Then for navigating around in the data, take a look at
vtkDataSet::FindCell() which maps from a 3D world space coordinate to a
particular vtkCell or vtkImageData::GetCell() which maps from VTK's cell
index to a particular cell in the data set. (Both described at
http://www.vtk.org/doc/nightly/html/classvtkDataSet.html) Once you get the
cell out, vtkCell's EvaluateX methods can help you get N interpolation
weights to use to map from the N point values to a representative value for
some location within the cell.

hth,

David E DeMarle
Kitware, Inc.
R&D Engineer
28 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-371-3971 x109


On Mon, Aug 9, 2010 at 12:48 PM, Sohail Shafii <sohailshafii at yahoo.com>wrote:

> Hi,
>
> Thanks for the reply.  I'm not sure where to find this from self.input, but
> I will take a more in-depth look.
>
> Something that occured to me: the pipeline splits up the data, so each
> piece gets its own 3D array that is reduced in size.  So this 1D->3D
> conversion shouldn't be a problem for each processor.
>
> Sohail
>
> --- On *Sun, 8/8/10, paraview-developers-request at paraview.org <
> paraview-developers-request at paraview.org>* wrote:
>
>
> From: paraview-developers-request at paraview.org <
> paraview-developers-request at paraview.org>
> Subject: Paraview-developers Digest, Vol 57, Issue 2
> To: paraview-developers at paraview.org
> Date: Sunday, August 8, 2010, 9:00 AM
>
> Send Paraview-developers mailing list submissions to
>     paraview-developers at paraview.org<http://mc/compose?to=paraview-developers@paraview.org>
>
> To subscribe or unsubscribe via the World Wide Web, visit
>     http://public.kitware.com/mailman/listinfo/paraview-developers
> or, via email, send a message with subject or body 'help' to
>     paraview-developers-request at paraview.org<http://mc/compose?to=paraview-developers-request@paraview.org>
>
> You can reach the person managing the list at
>     paraview-developers-owner at paraview.org<http://mc/compose?to=paraview-developers-owner@paraview.org>
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Paraview-developers digest..."
>
>
> Today's Topics:
>
>    1. Re: Fw: vtk grids and parallelization (burlen)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sat, 07 Aug 2010 12:51:56 -0700
> From: burlen <burlen.loring at gmail.com<http://mc/compose?to=burlen.loring@gmail.com>
> >
> Subject: Re: [Paraview-developers] Fw: vtk grids and parallelization
> To: Sohail Shafii <sohailshafii at yahoo.com<http://mc/compose?to=sohailshafii@yahoo.com>
> >
> Cc: paraview-developers at paraview.org<http://mc/compose?to=paraview-developers@paraview.org>
> Message-ID: <4C5DB95C.6010304 at gmail.com<http://mc/compose?to=4C5DB95C.6010304@gmail.com>
> >
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Sohail,
>
> I think you are looking for the
> vtkStreamingDemandDrivenPipeline::WHOLE_EXTENT()
> key.
>
> Burlen
>
> On 08/05/2010 01:41 PM, Sohail Shafii wrote:
> > Is there a way to store the full extent of
> > the original (structured grid) data set
> >   before parallelization?
>
>
>
> ------------------------------
>
> _______________________________________________
> Paraview-developers mailing list
> Paraview-developers at paraview.org<http://mc/compose?to=Paraview-developers@paraview.org>
> http://public.kitware.com/mailman/listinfo/paraview-developers
>
>
> End of Paraview-developers Digest, Vol 57, Issue 2
> **************************************************
>
>
>
> _______________________________________________
> Paraview-developers mailing list
> Paraview-developers at paraview.org
> http://public.kitware.com/mailman/listinfo/paraview-developers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20100809/d09006c1/attachment.htm>


More information about the Paraview-developers mailing list