Re: [Paraview] Moving slice with particle

2010-02-26 Thread Berk Geveci
Try this:

input = self.GetInputDataObject(0, 0)
inp_copy = input.NewInstance()
inp_copy.ShallowCopy(input)
inp_copy.UnRegister(None)
cutter = vtk.vtkCutter()
plane = vtk.vtkPlane()
plane.SetOrigin(0,0,0)
plane.SetNormal(0,1,0)
cutter.SetCutFunction(plane)
cutter.SetInput(inp_copy)
cutter.Update()
self.GetOutputDataObject(0).ShallowCopy(cutter.GetOutputDataObject(0))

or even better:

input = self.GetInputDataObject(0, 0)
origin = self.GetInputDataObject(0, 1).GetPoints().GetPoint(0)
inp_copy = input.NewInstance()
inp_copy.ShallowCopy(input)
inp_copy.UnRegister(None)
cutter = vtk.vtkCutter()
plane = vtk.vtkPlane()
plane.SetOrigin(origin)
plane.SetNormal(0,1,0)
cutter.SetCutFunction(plane)
cutter.SetInput(inp_copy)
cutter.Update()
self.GetOutputDataObject(0).ShallowCopy(cutter.GetOutputDataObject(0))

-berk

On Mon, Feb 22, 2010 at 4:04 AM, Thorsten Hater  wrote:

>  Here my probably faulty python code:
>
> slice = vtk.vtkCutter()
>
> plane = vtk.vtkPlane()
>
> plane.SetOrigin(0,0,0)
>
> plane.SetNormal(0,1,0)
>
> slice.SetCutFunction(plane)
>
> slice.SetInput(field)
>
> slice.Update()
>
> out.SetFieldData(slice.GetFieldData())
>
>
> The result is an empty Output Window popping up along with an empty output
> field.
>
>
>
> Am 20.02.2010 02:08, schrieb Berk Geveci:
>
> To make sure that I understand, vtkCutter does not work, right? Why? Are
> you trying to extract a cut/slice or a subset with constant i, j or k from
> an image data?
>
> -berk
>
> On Fri, Feb 19, 2010 at 10:12 AM, Thorsten Hater  wrote:
>
>>  Thanks for this! But contrary to my earlier optimism it seems not so easy
>> to
>> use a slice filter in a programmable filter (I played mostly with the
>> pvpython
>>  up to this point)
>> The python vtk module does not export ExtractVOI or ImageSlice filter,
>> the generic cutter does not work for me.
>> If I import paraview.simple a new connection pops up and PV itself is
>> messed up,
>> so I can't use simple's Slice. Can I work around this behaviour?
>>
>>
>> Am 19.02.2010 01:42, schrieb Berk Geveci:
>>
>> self.GetInputDataObject(0, n)
>>
>> should return the nth input.
>>
>> -berk
>>
>> On Thu, Feb 18, 2010 at 4:45 PM, Thorsten Hater  wrote:
>>
>>> Most of building blocks I was able to figure out, but how do
>>> I retrieve the second input from the servermanager?
>>>
>>> Berk Geveci wrote:
>>> > It is definitely doable with the programmable filter although not as
>>> > trivial as it would be with a tool like VisTrails. The programmable
>>> > filter can accept multiple inputs. You could use the point from on of
>>> > its inputs to setup the parameter of an internal slice filter - which
>>> > requires importing the vtk.graphics module. If you can't figure it
>>> > out, let me know, I'll help.
>>> >
>>> > -berk
>>> >
>>> > On Wed, Feb 17, 2010 at 10:46 AM, Thorsten Hater >>  > > wrote:
>>> >
>>> > Hello,
>>> >
>>> > I have encountered the following problem in a set of animations:
>>> > There is a moving particle in a field and I want to slice the field
>>> > at the particle's position (effectively the y-component of the
>>> > position).
>>> > Additionally the slice should move automatically with the particle
>>> > for making an animation.
>>> > Has anybody done something like this before?
>>> > The programmable filter seems a good point to start, but I need
>>> > at least two inputs for figuring out the offset.
>>> > Thanks in advance for any pointers or help!
>>> >
>>> > Cheers,
>>> >   Thorsten
>>> >
>>> > --
>>> > Thorsten Hater
>>> > Institut fuer Theoretische Physik I
>>> > Ruhr-Universitaet Bochum
>>>  > E-Mail: t...@tp1.rub.de 
>>> > Tel.: 0234/32-23-441
>>> >
>>> > ___
>>>  > 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://www.paraview.org/mailman/listinfo/paraview
>>> >
>>> >
>>>
>>> ___
>>> 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://www.paraview.org/mailman/listinfo/paraview
>>>
>>
>>
>>
>>  --
>> Thorsten Hater
>> Institut fuer Theoretische Physik I
>> Ruhr-Universitaet Bochum
>> E-Mail: t...@tp1.rub.de
>>
>> Tel.: 0234/32-23-441
>>
>>
>> ___
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/o

Re: [Paraview] Moving slice with particle

2010-02-22 Thread Thorsten Hater

Here my probably faulty python code:

slice = vtk.vtkCutter()

plane = vtk.vtkPlane()

plane.SetOrigin(0,0,0)

plane.SetNormal(0,1,0)

slice.SetCutFunction(plane)

slice.SetInput(field)

slice.Update()

out.SetFieldData(slice.GetFieldData())


The result is an empty Output Window popping up along with an empty 
output field.




Am 20.02.2010 02:08, schrieb Berk Geveci:
To make sure that I understand, vtkCutter does not work, right? Why? 
Are you trying to extract a cut/slice or a subset with constant i, j 
or k from an image data?


-berk

On Fri, Feb 19, 2010 at 10:12 AM, Thorsten Hater > wrote:


Thanks for this! But contrary to my earlier optimism it seems not
so easy to
use a slice filter in a programmable filter (I played mostly with
the pvpython
 up to this point)
The python vtk module does not export ExtractVOI or ImageSlice filter,
the generic cutter does not work for me.
If I import paraview.simple a new connection pops up and PV itself
is messed up,
so I can't use simple's Slice. Can I work around this behaviour?


Am 19.02.2010 01:42, schrieb Berk Geveci:

self.GetInputDataObject(0, n)

should return the nth input.

-berk

On Thu, Feb 18, 2010 at 4:45 PM, Thorsten Hater mailto:t...@tp1.rub.de>> wrote:

Most of building blocks I was able to figure out, but how do
I retrieve the second input from the servermanager?

Berk Geveci wrote:
> It is definitely doable with the programmable filter
although not as
> trivial as it would be with a tool like VisTrails. The
programmable
> filter can accept multiple inputs. You could use the point
from on of
> its inputs to setup the parameter of an internal slice
filter - which
> requires importing the vtk.graphics module. If you can't
figure it
> out, let me know, I'll help.
>
> -berk
>
> On Wed, Feb 17, 2010 at 10:46 AM, Thorsten Hater
mailto:t...@tp1.rub.de>
> >> wrote:
>
> Hello,
>
> I have encountered the following problem in a set of
animations:
> There is a moving particle in a field and I want to
slice the field
> at the particle's position (effectively the y-component
of the
> position).
> Additionally the slice should move automatically with
the particle
> for making an animation.
> Has anybody done something like this before?
> The programmable filter seems a good point to start,
but I need
> at least two inputs for figuring out the offset.
> Thanks in advance for any pointers or help!
>
> Cheers,
>   Thorsten
>
> --
> Thorsten Hater
> Institut fuer Theoretische Physik I
> Ruhr-Universitaet Bochum
> E-Mail: t...@tp1.rub.de 
>
> Tel.: 0234/32-23-441
>
> ___
> 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://www.paraview.org/mailman/listinfo/paraview
>
>

___
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://www.paraview.org/mailman/listinfo/paraview





-- 
Thorsten Hater

Institut fuer Theoretische Physik I
Ruhr-Universitaet Bochum
E-Mail:t...@tp1.rub.de  
Tel.: 0234/32-23-441


___
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://www.paraview.org/mailman/listinfo/paraview





--
Thorsten Hater
Institut fuer Theoretische Physik I
Ruhr-Universitaet Bochum
E-Mail: t...@tp1.rub.de
Tel.: 0234/32-23-441

__

Re: [Paraview] Moving slice with particle

2010-02-19 Thread Berk Geveci
To make sure that I understand, vtkCutter does not work, right? Why? Are you
trying to extract a cut/slice or a subset with constant i, j or k from an
image data?

-berk

On Fri, Feb 19, 2010 at 10:12 AM, Thorsten Hater  wrote:

>  Thanks for this! But contrary to my earlier optimism it seems not so easy
> to
> use a slice filter in a programmable filter (I played mostly with the
> pvpython
>  up to this point)
> The python vtk module does not export ExtractVOI or ImageSlice filter,
> the generic cutter does not work for me.
> If I import paraview.simple a new connection pops up and PV itself is
> messed up,
> so I can't use simple's Slice. Can I work around this behaviour?
>
>
> Am 19.02.2010 01:42, schrieb Berk Geveci:
>
> self.GetInputDataObject(0, n)
>
> should return the nth input.
>
> -berk
>
> On Thu, Feb 18, 2010 at 4:45 PM, Thorsten Hater  wrote:
>
>> Most of building blocks I was able to figure out, but how do
>> I retrieve the second input from the servermanager?
>>
>> Berk Geveci wrote:
>> > It is definitely doable with the programmable filter although not as
>> > trivial as it would be with a tool like VisTrails. The programmable
>> > filter can accept multiple inputs. You could use the point from on of
>> > its inputs to setup the parameter of an internal slice filter - which
>> > requires importing the vtk.graphics module. If you can't figure it
>> > out, let me know, I'll help.
>> >
>> > -berk
>> >
>> > On Wed, Feb 17, 2010 at 10:46 AM, Thorsten Hater >  > > wrote:
>> >
>> > Hello,
>> >
>> > I have encountered the following problem in a set of animations:
>> > There is a moving particle in a field and I want to slice the field
>> > at the particle's position (effectively the y-component of the
>> > position).
>> > Additionally the slice should move automatically with the particle
>> > for making an animation.
>> > Has anybody done something like this before?
>> > The programmable filter seems a good point to start, but I need
>> > at least two inputs for figuring out the offset.
>> > Thanks in advance for any pointers or help!
>> >
>> > Cheers,
>> >   Thorsten
>> >
>> > --
>> > Thorsten Hater
>> > Institut fuer Theoretische Physik I
>> > Ruhr-Universitaet Bochum
>>  > E-Mail: t...@tp1.rub.de 
>> > Tel.: 0234/32-23-441
>> >
>> > ___
>>  > 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://www.paraview.org/mailman/listinfo/paraview
>> >
>> >
>>
>> ___
>> 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://www.paraview.org/mailman/listinfo/paraview
>>
>
>
>
> --
> Thorsten Hater
> Institut fuer Theoretische Physik I
> Ruhr-Universitaet Bochum
> E-Mail: t...@tp1.rub.de
>
> Tel.: 0234/32-23-441
>
>
> ___
> 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://www.paraview.org/mailman/listinfo/paraview
>
>
___
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://www.paraview.org/mailman/listinfo/paraview


Re: [Paraview] Moving slice with particle

2010-02-19 Thread David E DeMarle
I just wrapped servers/filters (where vtkPVExtractVOI and
vtkPVImageSlice reside) the other day.

So, to use them you will need to use paraview cvs and import pvfilters
in your script.

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



On Fri, Feb 19, 2010 at 10:12 AM, Thorsten Hater  wrote:
> Thanks for this! But contrary to my earlier optimism it seems not so easy to
> use a slice filter in a programmable filter (I played mostly with the
> pvpython
>  up to this point)
> The python vtk module does not export ExtractVOI or ImageSlice filter,
> the generic cutter does not work for me.
> If I import paraview.simple a new connection pops up and PV itself is messed
> up,
> so I can't use simple's Slice. Can I work around this behaviour?
>
>
> Am 19.02.2010 01:42, schrieb Berk Geveci:
>
> self.GetInputDataObject(0, n)
>
> should return the nth input.
>
> -berk
>
> On Thu, Feb 18, 2010 at 4:45 PM, Thorsten Hater  wrote:
>>
>> Most of building blocks I was able to figure out, but how do
>> I retrieve the second input from the servermanager?
>>
>> Berk Geveci wrote:
>> > It is definitely doable with the programmable filter although not as
>> > trivial as it would be with a tool like VisTrails. The programmable
>> > filter can accept multiple inputs. You could use the point from on of
>> > its inputs to setup the parameter of an internal slice filter - which
>> > requires importing the vtk.graphics module. If you can't figure it
>> > out, let me know, I'll help.
>> >
>> > -berk
>> >
>> > On Wed, Feb 17, 2010 at 10:46 AM, Thorsten Hater > > > wrote:
>> >
>> >     Hello,
>> >
>> >     I have encountered the following problem in a set of animations:
>> >     There is a moving particle in a field and I want to slice the field
>> >     at the particle's position (effectively the y-component of the
>> >     position).
>> >     Additionally the slice should move automatically with the particle
>> >     for making an animation.
>> >     Has anybody done something like this before?
>> >     The programmable filter seems a good point to start, but I need
>> >     at least two inputs for figuring out the offset.
>> >     Thanks in advance for any pointers or help!
>> >
>> >     Cheers,
>> >       Thorsten
>> >
>> >     --
>> >     Thorsten Hater
>> >     Institut fuer Theoretische Physik I
>> >     Ruhr-Universitaet Bochum
>> >     E-Mail: t...@tp1.rub.de 
>> >     Tel.: 0234/32-23-441
>> >
>> >     ___
>> >     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://www.paraview.org/mailman/listinfo/paraview
>> >
>> >
>>
>> ___
>> 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://www.paraview.org/mailman/listinfo/paraview
>
>
>
> --
> Thorsten Hater
> Institut fuer Theoretische Physik I
> Ruhr-Universitaet Bochum
> E-Mail: t...@tp1.rub.de
> Tel.: 0234/32-23-441
>
> ___
> 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://www.paraview.org/mailman/listinfo/paraview
>
>
___
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://www.paraview.org/mailman/listinfo/paraview


Re: [Paraview] Moving slice with particle

2010-02-19 Thread Thorsten Hater
Thanks for this! But contrary to my earlier optimism it seems not so 
easy to
use a slice filter in a programmable filter (I played mostly with the 
pvpython

 up to this point)
The python vtk module does not export ExtractVOI or ImageSlice filter,
the generic cutter does not work for me.
If I import paraview.simple a new connection pops up and PV itself is 
messed up,

so I can't use simple's Slice. Can I work around this behaviour?


Am 19.02.2010 01:42, schrieb Berk Geveci:

self.GetInputDataObject(0, n)

should return the nth input.

-berk

On Thu, Feb 18, 2010 at 4:45 PM, Thorsten Hater > wrote:


Most of building blocks I was able to figure out, but how do
I retrieve the second input from the servermanager?

Berk Geveci wrote:
> It is definitely doable with the programmable filter although not as
> trivial as it would be with a tool like VisTrails. The programmable
> filter can accept multiple inputs. You could use the point from
on of
> its inputs to setup the parameter of an internal slice filter -
which
> requires importing the vtk.graphics module. If you can't figure it
> out, let me know, I'll help.
>
> -berk
>
> On Wed, Feb 17, 2010 at 10:46 AM, Thorsten Hater mailto:t...@tp1.rub.de>
> >> wrote:
>
> Hello,
>
> I have encountered the following problem in a set of animations:
> There is a moving particle in a field and I want to slice
the field
> at the particle's position (effectively the y-component of the
> position).
> Additionally the slice should move automatically with the
particle
> for making an animation.
> Has anybody done something like this before?
> The programmable filter seems a good point to start, but I need
> at least two inputs for figuring out the offset.
> Thanks in advance for any pointers or help!
>
> Cheers,
>   Thorsten
>
> --
> Thorsten Hater
> Institut fuer Theoretische Physik I
> Ruhr-Universitaet Bochum
> E-Mail: t...@tp1.rub.de 
>
> Tel.: 0234/32-23-441
>
> ___
> 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://www.paraview.org/mailman/listinfo/paraview
>
>

___
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://www.paraview.org/mailman/listinfo/paraview





--
Thorsten Hater
Institut fuer Theoretische Physik I
Ruhr-Universitaet Bochum
E-Mail: t...@tp1.rub.de
Tel.: 0234/32-23-441

___
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://www.paraview.org/mailman/listinfo/paraview


Re: [Paraview] Moving slice with particle

2010-02-18 Thread Berk Geveci
self.GetInputDataObject(0, n)

should return the nth input.

-berk

On Thu, Feb 18, 2010 at 4:45 PM, Thorsten Hater  wrote:

> Most of building blocks I was able to figure out, but how do
> I retrieve the second input from the servermanager?
>
> Berk Geveci wrote:
> > It is definitely doable with the programmable filter although not as
> > trivial as it would be with a tool like VisTrails. The programmable
> > filter can accept multiple inputs. You could use the point from on of
> > its inputs to setup the parameter of an internal slice filter - which
> > requires importing the vtk.graphics module. If you can't figure it
> > out, let me know, I'll help.
> >
> > -berk
> >
> > On Wed, Feb 17, 2010 at 10:46 AM, Thorsten Hater  > > wrote:
> >
> > Hello,
> >
> > I have encountered the following problem in a set of animations:
> > There is a moving particle in a field and I want to slice the field
> > at the particle's position (effectively the y-component of the
> > position).
> > Additionally the slice should move automatically with the particle
> > for making an animation.
> > Has anybody done something like this before?
> > The programmable filter seems a good point to start, but I need
> > at least two inputs for figuring out the offset.
> > Thanks in advance for any pointers or help!
> >
> > Cheers,
> >   Thorsten
> >
> > --
> > Thorsten Hater
> > Institut fuer Theoretische Physik I
> > Ruhr-Universitaet Bochum
> > E-Mail: t...@tp1.rub.de 
> > Tel.: 0234/32-23-441
> >
> > ___
> > 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://www.paraview.org/mailman/listinfo/paraview
> >
> >
>
> ___
> 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://www.paraview.org/mailman/listinfo/paraview
>
___
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://www.paraview.org/mailman/listinfo/paraview


Re: [Paraview] Moving slice with particle

2010-02-18 Thread Thorsten Hater
Most of building blocks I was able to figure out, but how do
I retrieve the second input from the servermanager?

Berk Geveci wrote:
> It is definitely doable with the programmable filter although not as
> trivial as it would be with a tool like VisTrails. The programmable
> filter can accept multiple inputs. You could use the point from on of
> its inputs to setup the parameter of an internal slice filter - which
> requires importing the vtk.graphics module. If you can't figure it
> out, let me know, I'll help.
>
> -berk
>
> On Wed, Feb 17, 2010 at 10:46 AM, Thorsten Hater  > wrote:
>
> Hello,
>
> I have encountered the following problem in a set of animations:
> There is a moving particle in a field and I want to slice the field
> at the particle's position (effectively the y-component of the
> position).
> Additionally the slice should move automatically with the particle
> for making an animation.
> Has anybody done something like this before?
> The programmable filter seems a good point to start, but I need
> at least two inputs for figuring out the offset.
> Thanks in advance for any pointers or help!
>
> Cheers,
>   Thorsten
>
> -- 
> Thorsten Hater
> Institut fuer Theoretische Physik I
> Ruhr-Universitaet Bochum
> E-Mail: t...@tp1.rub.de 
> Tel.: 0234/32-23-441
>
> ___
> 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://www.paraview.org/mailman/listinfo/paraview
>
>

___
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://www.paraview.org/mailman/listinfo/paraview


Re: [Paraview] Moving slice with particle

2010-02-18 Thread Berk Geveci
It is definitely doable with the programmable filter although not as trivial
as it would be with a tool like VisTrails. The programmable filter can
accept multiple inputs. You could use the point from on of its inputs to
setup the parameter of an internal slice filter - which requires importing
the vtk.graphics module. If you can't figure it out, let me know, I'll help.

-berk

On Wed, Feb 17, 2010 at 10:46 AM, Thorsten Hater  wrote:

> Hello,
>
> I have encountered the following problem in a set of animations:
> There is a moving particle in a field and I want to slice the field
> at the particle's position (effectively the y-component of the position).
> Additionally the slice should move automatically with the particle
> for making an animation.
> Has anybody done something like this before?
> The programmable filter seems a good point to start, but I need
> at least two inputs for figuring out the offset.
> Thanks in advance for any pointers or help!
>
> Cheers,
>   Thorsten
>
> --
> Thorsten Hater
> Institut fuer Theoretische Physik I
> Ruhr-Universitaet Bochum
> E-Mail: t...@tp1.rub.de
> Tel.: 0234/32-23-441
>
> ___
> 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://www.paraview.org/mailman/listinfo/paraview
>
___
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://www.paraview.org/mailman/listinfo/paraview