<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE id=ridTitle>Vipul Chotaliya</TITLE>
<META http-equiv=Content-Type content="text/html; charset=windows-1252"><BASE 
href="file://D:\Program Files\Common Files\Microsoft Shared\Stationery\">
<STYLE>BODY {
        MARGIN-TOP: 25px; FONT-SIZE: 11pt; MARGIN-LEFT: 15px; COLOR: #000000; FONT-FAMILY: Georgia, Helvetica
}
</STYLE>

<META content="MSHTML 6.00.2800.1106" name=GENERATOR></HEAD>
<BODY id=ridBody bgProperties=fixed bgColor=#ffffff>
<DIV><FONT face=Arial size=2>
<DIV>Hi VTK Users,</DIV>
<DIV>&nbsp;</DIV>
<DIV>I m new to VTK.</DIV>
<DIV>I have main two problems;</DIV>
<DIV>&nbsp;</DIV>
<DIV><STRONG>1)</STRONG> I have one problem regarding quadric clustering;</DIV>
<DIV>&nbsp;</DIV>
<DIV>I am applying quadric clustering on my imagedata no. of times by coding 
.</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;but&nbsp; each time</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;I have to set UseInputPoints to <STRONG>ON.</STRONG>&nbsp; then I 
will get proper data after algorithm.</DIV>
<DIV><STRONG></STRONG>&nbsp;</DIV>
<DIV>if I am setting UseInputPoints to <STRONG>OFF</STRONG>&nbsp; then I was 
unable to get Image.</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><STRONG>2) </STRONG>And after applying quadric clustering algo.&nbsp; I was 
unable to&nbsp; get new data directly.</DIV>
<DIV>&nbsp; So I have to use vtkPolyDatawriter (which is write data to 
file)</DIV>
<DIV>&nbsp;&nbsp; --&gt;&nbsp;give vtkquadricclustering output to&nbsp; 
<STRONG>vtkPolyDatawriter</STRONG></DIV>
<DIV>&nbsp; --&gt; then write it to file.</DIV>
<DIV>&nbsp; -&gt; after writing into file I am able to get data.</DIV>
<DIV><STRONG>suggest me short to way to get directly processed data..&nbsp; 
</STRONG></DIV>
<DIV><STRONG></STRONG>&nbsp;</DIV>
<DIV><STRONG>&nbsp;for your reference my code is as below</STRONG></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT color=#808080></FONT>&nbsp;</DIV>
<DIV><FONT color=#808080></FONT>&nbsp;</DIV>
<DIV><FONT color=#808080></FONT>&nbsp;</DIV>
<DIV><FONT color=#808080></FONT>&nbsp;</DIV>
<DIV><STRONG>*************************************************</STRONG></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>FOr reference my code&nbsp; is as below:::</DIV>
<DIV>
<P>vtkQuadricClustering *vtkQClust = vtkQuadricClustering::New();</P>
<P>vtkPolyDataWriter *writer=vtkPolyDataWriter::New();</P>
<P>vtkQClust-&gt;SetInput(OutPut);</P>
<P>vtkQClust-&gt;SetNumberOfXDivisions(nFactorX);</P>
<P>vtkQClust-&gt;SetNumberOfYDivisions(nFactorY);</P>
<P>vtkQClust-&gt;SetNumberOfZDivisions(nFactorZ); </P>
<P></P>
<P>if(nNoOfTimes==1)</P>
<P>{</P>
<P>vtkQClust-&gt;UseFeatureEdgesOff ();</P>
<P>vtkQClust-&gt;UseInputPointsOn();&nbsp; //give me soluting in which way I can 
set this to <STRONG>ON</STRONG></P>
<P>vtkQClust-&gt;UseFeaturePointsOff();</P>
<P>vtkQClust-&gt;CopyCellDataOff();</P>
<P>}</P>
<P>else</P>
<P>{</P>
<P>vtkQClust-&gt;UseFeatureEdgesOn ();</P>
<P>vtkQClust-&gt;UseInputPointsOn();</P>
<P>vtkQClust-&gt;UseFeaturePointsOn();</P>
<P>vtkQClust-&gt;CopyCellDataOff();</P>
<P>}</P>
<P></P>
<P></P>
<P>OutPut = vtkQClust-&gt;GetOutput(); //writer-&gt;GetInput(); </P>
<P>writer-&gt;SetInput(OutPut); </P>
<P>bProcessAhead=FALSE;</P>
<P></P>
<P></P>
<P>writer-&gt;SetFileName(pst1);</P>
<P>float fPtArray[5000][3];</P>
<P>//writer-&gt;SetInput(cube);</P>
<P></P>
<P>//printf("i=%d 
%d\n",i+1,writer-&gt;Getput()-&gt;GetPolys()-&gt;GetNumberOfCells());</P>
<P>iData[1]=writer-&gt;GetInput()-&gt;GetNumberOfPolys();</P>
<P>writer-&gt;Write(); </P>
<P>iData[1]=writer-&gt;GetInput()-&gt;GetNumberOfPolys();</P>
<P>OutPut = writer-&gt;GetInput();</P></DIV>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P><FONT size=3><B>*****************************************</B><BR>"If you look 
at what you do not have in life, you don't have anything"<BR>"If you look at 
what you have in life, you have 
everything"<BR>****************************************<B>*</B><BR><B>Vipul 
Chotaliya (Software Engineer)</B><BR>Sahajanand Software Pvt. 
Ltd.,<BR>Gandhinagar, Gujarat INDIA.<BR><B>Cell No :-</B>&nbsp;&nbsp; 
<B>+91-98980 95309</B><BR><B>Mailto:-</B> <A 
href="mailto:vipul@sahajanandsoftware.com">vipul@sahajanandsoftware.com</A><BR><B>Web:-</B>&nbsp; 
<A href="http://www.sahajanandsoftware.com/">www.sahajanandsoftware.com</A> 
<BR>*****************************************</FONT><BR></P>
<P>&nbsp;</P></FONT></DIV>
<P>&nbsp;</P>
<P>&nbsp;</P></BODY></HTML>