[Paraview] D3 with custom cuts
Jakov Duzevic
Jakov.Duzevic at fer.hr
Tue May 10 17:28:11 EDT 2011
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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20110510/f973de87/attachment.htm>
More information about the ParaView
mailing list