<!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> </DIV>
<DIV>I m new to VTK.</DIV>
<DIV>I have main two problems;</DIV>
<DIV> </DIV>
<DIV><STRONG>1)</STRONG> I have one problem regarding quadric clustering;</DIV>
<DIV> </DIV>
<DIV>I am applying quadric clustering on my imagedata no. of times by coding
.</DIV>
<DIV> </DIV>
<DIV> but each time</DIV>
<DIV> </DIV>
<DIV> I have to set UseInputPoints to <STRONG>ON.</STRONG> then I
will get proper data after algorithm.</DIV>
<DIV><STRONG></STRONG> </DIV>
<DIV>if I am setting UseInputPoints to <STRONG>OFF</STRONG> then I was
unable to get Image.</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV><STRONG>2) </STRONG>And after applying quadric clustering algo. I was
unable to get new data directly.</DIV>
<DIV> So I have to use vtkPolyDatawriter (which is write data to
file)</DIV>
<DIV> --> give vtkquadricclustering output to
<STRONG>vtkPolyDatawriter</STRONG></DIV>
<DIV> --> then write it to file.</DIV>
<DIV> -> after writing into file I am able to get data.</DIV>
<DIV><STRONG>suggest me short to way to get directly processed data..
</STRONG></DIV>
<DIV><STRONG></STRONG> </DIV>
<DIV><STRONG> for your reference my code is as below</STRONG></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV><FONT color=#808080></FONT> </DIV>
<DIV><FONT color=#808080></FONT> </DIV>
<DIV><FONT color=#808080></FONT> </DIV>
<DIV><FONT color=#808080></FONT> </DIV>
<DIV><STRONG>*************************************************</STRONG></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>FOr reference my code is as below:::</DIV>
<DIV>
<P>vtkQuadricClustering *vtkQClust = vtkQuadricClustering::New();</P>
<P>vtkPolyDataWriter *writer=vtkPolyDataWriter::New();</P>
<P>vtkQClust->SetInput(OutPut);</P>
<P>vtkQClust->SetNumberOfXDivisions(nFactorX);</P>
<P>vtkQClust->SetNumberOfYDivisions(nFactorY);</P>
<P>vtkQClust->SetNumberOfZDivisions(nFactorZ); </P>
<P></P>
<P>if(nNoOfTimes==1)</P>
<P>{</P>
<P>vtkQClust->UseFeatureEdgesOff ();</P>
<P>vtkQClust->UseInputPointsOn(); //give me soluting in which way I can
set this to <STRONG>ON</STRONG></P>
<P>vtkQClust->UseFeaturePointsOff();</P>
<P>vtkQClust->CopyCellDataOff();</P>
<P>}</P>
<P>else</P>
<P>{</P>
<P>vtkQClust->UseFeatureEdgesOn ();</P>
<P>vtkQClust->UseInputPointsOn();</P>
<P>vtkQClust->UseFeaturePointsOn();</P>
<P>vtkQClust->CopyCellDataOff();</P>
<P>}</P>
<P></P>
<P></P>
<P>OutPut = vtkQClust->GetOutput(); //writer->GetInput(); </P>
<P>writer->SetInput(OutPut); </P>
<P>bProcessAhead=FALSE;</P>
<P></P>
<P></P>
<P>writer->SetFileName(pst1);</P>
<P>float fPtArray[5000][3];</P>
<P>//writer->SetInput(cube);</P>
<P></P>
<P>//printf("i=%d
%d\n",i+1,writer->Getput()->GetPolys()->GetNumberOfCells());</P>
<P>iData[1]=writer->GetInput()->GetNumberOfPolys();</P>
<P>writer->Write(); </P>
<P>iData[1]=writer->GetInput()->GetNumberOfPolys();</P>
<P>OutPut = writer->GetInput();</P></DIV>
<P> </P>
<P> </P>
<P> </P>
<P> </P>
<P> </P>
<P> </P>
<P> </P>
<P> </P>
<P> </P>
<P> </P>
<P> </P>
<P> </P>
<P> </P>
<P> </P>
<P> </P>
<P> </P>
<P> </P>
<P> </P>
<P> </P>
<P> </P>
<P> </P>
<P> </P>
<P> </P>
<P> </P>
<P> </P>
<P> </P>
<P> </P>
<P> </P>
<P> </P>
<P> </P>
<P> </P>
<P> </P>
<P> </P>
<P> </P>
<P> </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>
<B>+91-98980 95309</B><BR><B>Mailto:-</B> <A
href="mailto:vipul@sahajanandsoftware.com">vipul@sahajanandsoftware.com</A><BR><B>Web:-</B>
<A href="http://www.sahajanandsoftware.com/">www.sahajanandsoftware.com</A>
<BR>*****************************************</FONT><BR></P>
<P> </P></FONT></DIV>
<P> </P>
<P> </P></BODY></HTML>