Hi, What is the best way to proceed if someone wants to use the new coordinate (mean of the two dots) in another filter using a Link. For instance, I would like to use the coordinate as the Origin of a Clip filter.
Thank you, -----Message d'origine----- De : ParaView [mailto:paraview-boun...@paraview.org] De la part de Utkarsh Ayachit Envoyé : 24 mai 2016 09:17 À : Thomas Faribault-Ménard <thomas.faribault-men...@mail.mcgill.ca> Cc : paraview@paraview.org Objet : Re: [Paraview] Programmable filter - script for mean of two input PointSources Here's a simple trick: 1. Select both point sources in pipeline browser and then create the "Python Calculator". 2. Use the expression "(inputs[0].Points + inputs[1].Points)/2.0", and hit "Apply" 3. Next, create the "Calculator" filter connect to the "Python Calculator" with expression "result" and also check the "Coordinate Results" checkbox. Hit "Apply". That should do it. Example state file attached. On Mon, May 23, 2016 at 10:19 PM, Thomas Faribault-Ménard <thomas.faribault-men...@mail.mcgill.ca> wrote: > Hi, > > I’m a beginner in ParaView. I have two Point Source as my inputs. My > output is a third point source that has to be located at the mean of > the coordinates of my inputs. > > I would prefer the solution to be in the form of a programmable python > filter but I need a little help. > > Could you point me in the right direction please ? > > > _______________________________________________ > 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 > > Search the list archives at: http://markmail.org/search/?q=ParaView > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/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 Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview