<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7654.12">
<TITLE>[Paraview] D3 with custom cuts</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>I am trying to implement an idea based on D3 filter<BR>
but with customized decomposition of data.<BR>
I'm prototyping the idea with Python script (ProgrammableFilter).<BR>
<BR>
I found that I can set my own cuts on D3 with<BR>
D3Object-&gt;SetCuts(cuts)<BR>
but I am having problem setting the cuts object.<BR>
<BR>
vtkBSPCuts class reference shows there are two functions to create cuts:<BR>
<BR>
1) void CreateCuts (double *bounds, int ncuts, int *dim, double *coord, int *lower, int *upper, double *lowerDataCoord, double *upperDataCoord, int *npoints)<BR>
<BR>
and<BR>
<BR>
2) void CreateCuts (vtkKdNode *kd)<BR>
<BR>
<BR>
I'm using the first function (with some random values):<BR>
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])<BR>
<BR>
but Python shell keeps giving me the same error:<BR>
&quot;TypeError: CreateCuts() takes exactly 1 argument (9 given)&quot;<BR>
<BR>
?? Why?<BR>
Can't I use CreateCuts with 9 arguments?<BR>
<BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>