I am trying to implement an idea based on D3 filter
but with customized decomposition of data.
I'm prototyping the idea with Python script (ProgrammableFilter).

I found that I can set my own cuts on D3 with
D3Object->SetCuts(cuts)
but I am having problem setting the cuts object.

vtkBSPCuts class reference shows there are two functions to create cuts:

1) void CreateCuts (double *bounds, int ncuts, int *dim, double *coord, int 
*lower, int *upper, double *lowerDataCoord, double *upperDataCoord, int 
*npoints)

and

2) void CreateCuts (vtkKdNode *kd)


I'm using the first function (with some random values):
cuts.CreateCuts([-5.75, 5.75,-5.75, 5.75,-5.75, 5.75],2,[0, 1],[5.0, 10.0],[0, 
1],[5, 10],[1.0,2.0],[1.0,2.0],[1,2])

but Python shell keeps giving me the same error:
"TypeError: CreateCuts() takes exactly 1 argument (9 given)"

?? Why? 
Can't I use CreateCuts with 9 arguments?


_______________________________________________
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

Reply via email to