<div>Dear friend,</div> <div> 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->GetBounds(bounds);</div> <div>stPoints[0] = bounds[1]; </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> </div> <div> vtkDataObject : Error: expression cannot be evaluated</div> <div> CellData:Expression cannot be evaluated</div> <div> PointData:Expression cannot be evaluated</div> <div> </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> </div> <div>regards,</div> <div>Wei.</div> <div><BR><B><I>Dominik Szczerba <domi@vision.ee.ethz.ch></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>> Dear friends,<BR>> After slicing,
my poly data has become aligned with x-z<BR>> axes.It is just a slice i,e, it does not have any thickness in<BR>> y-direction.When I am using GetBounds() method on that 2-D data I am always<BR>> getting problem in running the program whereas compilation is Ok.Could any<BR>> one suggest how to solve the problem? regards, Wei.<BR>><BR>><BR>> ---------------------------------<BR>> Ahhh...imagining that irresistible "new car" smell?<BR>> 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> 
<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>