<div>Dear friend,</div>  <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Thank u very much for your reply.I have got the following function in my code.<BR></div>  <div>/*******************************************************************************************************</div><FONT size=2>  <div>static void sliceStartPoint(vtkPolyData *pData,double sBoundary[3])</div>  <div>{</div>  <div>double bounds[6] = {0.0,-1.0,0.0,-1.0,0.0,-1.0};</div>  <div>double stPoints[3] = {-1.0,-1.0,-1.0};</div>  <div>pData-&gt;GetBounds(bounds);</div>  <div>stPoints[0] = bounds[1];&nbsp;&nbsp; </div>  <div>stPoints[1] = (bounds[2]+bounds[3])/2;</div>  <div>stPoints[2] = (bounds[4]+bounds[5])/2;</div>  <div>.</div>  <div>.</div>  <div>.</div>  <div>}</div></FONT>  <div>********************************************************************************************************/</div>  <div>Compilation in Microsoft Visual C++ is ok.But while running
 the program I see the following error:</div>  <div>&nbsp;</div>  <div>&nbsp; vtkDataObject : Error: expression cannot be evaluated</div>  <div>&nbsp; CellData:Expression cannot be evaluated</div>  <div>&nbsp; PointData:Expression cannot be evaluated</div>  <div>&nbsp;</div>  <div>My polydata is of zero thickness along y direction and along x-z direction.I cannot solve the problem.It would be great if someone give me any idea.</div>  <div>&nbsp;</div>  <div>regards,</div>  <div>Wei.</div>  <div><BR><B><I>Dominik Szczerba &lt;domi@vision.ee.ethz.ch&gt;</I></B> wrote:</div>  <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">  <div>You didnt tell us what the problem is. If you force me to gues</div>  <div>s I say you need <BR>to check the bounds, and, if equal in some dimension, separate them by a <BR>small delta.<BR>Dominik<BR><BR>On Saturday 21 April 2007 09:51, Wei Woo wrote:<BR><BR>&gt; Dear friends,<BR>&gt; After slicing,
 my poly data has become aligned with x-z<BR>&gt; axes.It is just a slice i,e, it does not have any thickness in<BR>&gt; y-direction.When I am using GetBounds() method on that 2-D data I am always<BR>&gt; getting problem in running the program whereas compilation is Ok.Could any<BR>&gt; one suggest how to solve the problem? regards, Wei.<BR>&gt;<BR>&gt;<BR>&gt; ---------------------------------<BR>&gt; Ahhh...imagining that irresistible "new car" smell?<BR>&gt; Check outnew cars at Yahoo! Autos.<BR><BR>-- <BR>Dominik Szczerba, PhD<BR>Computer Vision Lab CH-8092 Zurich<BR>http://www.vision.ee.ethz.ch/~domi<BR>_______________________________________________<BR>This is the private VTK discussion list. <BR>Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ<BR>Follow this link to subscribe/unsubscribe:<BR>http://www.vtk.org/mailman/listinfo/vtkusers<BR></div></BLOCKQUOTE><BR><p>&#32;



      <hr size=1>Ahhh...imagining that irresistible "new car" smell?<br> Check out
<a href="http://us.rd.yahoo.com/evt=48245/*http://autos.yahoo.com/new_cars.html;_ylc=X3oDMTE1YW1jcXJ2BF9TAzk3MTA3MDc2BHNlYwNtYWlsdGFncwRzbGsDbmV3LWNhcnM-">new cars at Yahoo! Autos.</a>