[Paraview] python Cut Filter
Robert Maynard
RobertJMaynard at gmail.com
Tue Nov 6 12:59:17 EST 2007
Here is the code I used to try and great a cut plane. The problem seems to
be that everytime I try assign the plane as the cutFunction, paraview
crashes on me.
view = servermanager.GetRenderView()
pxm = servermanager.ProxyManager()
sphere = servermanager.sources.SphereSource(registrationGroup='sources',
registrationName='sphere')
dataDisplay = servermanager.CreateRepresentation(sphere, view,
registrationGroup='representations')
plane = servermanager.sources.PlaneSource()
cut = servermanager.filters.Cut(Input=sphere, registrationGroup='sources',
registrationName='cut')
cut.CutFunction = plane #this seems to crash paraview
dataDisplay2 = servermanager.CreateRepresentation(cut, view,
registrationGroup='representations')
On 11/6/07, Fabian Braennstroem <f.braennstroem at gmx.de> wrote:
>
> Hi,
>
> I was testing around with paraview's python and like it a lot :-)
> But I stuck, when creating a cut filter with its 'CutFunction'.
> Does anyone can give an advice, where I can find the needed format and
> options for most of the filters and esp. this filter? Would be nice!
>
> Regards!
> Fabian
>
>
> _______________________________________________
> ParaView mailing list
> ParaView at paraview.org
> http://www.paraview.org/mailman/listinfo/paraview
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/paraview/attachments/20071106/e70cdbc7/attachment.htm
More information about the ParaView
mailing list