<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2604" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2>
<DIV><SPAN class=408470019-25042005><FONT face=Arial size=2>I have constructed a 
3-D mesh surface and want to obtain contours by using plane cut.&nbsp; I use 
vtkCutter&nbsp;class to do this.&nbsp;&nbsp;However, the contour I got is just a 
group of&nbsp;lines without correct ordering.&nbsp; For example, a 
closed&nbsp;contour would be like this 1-&gt;2, 2-&gt;3, 3-&gt;4, 4-&gt;1, but 
what I got was sth like this: 1-&gt;2, 3-&gt;4, 2-&gt;3, 4-&gt;1.&nbsp;&nbsp; I 
don't know if I express my problem clearly.&nbsp; Does anyone have similiar 
experience?</FONT></SPAN></DIV>
<DIV><SPAN class=408470019-25042005><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=408470019-25042005><FONT face=Arial size=2>The code that I am 
using is listed here:</FONT></SPAN></DIV>
<DIV><SPAN class=408470019-25042005><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=408470019-25042005><FONT face=Arial size=2>vtkPlane&nbsp;&nbsp; 
*plane=vtkPlane::New();<BR>plane-&gt;SetOrigin(0, 0, 
0);<BR>plane-&gt;SetNormal(1, 0, 0);</FONT></SPAN></DIV>
<DIV>&nbsp;</DIV>
<DIV><SPAN class=408470019-25042005><FONT face=Arial size=2>vtkCutter&nbsp; 
*cutEdges=vtkCutter::New();<BR>cutEdges-&gt;SetInput(vtkdata);<BR>cutEdges-&gt;SetCutFunction(plane);<BR>cutEdges-&gt;GenerateCutScalarsOn();<BR>cutEdges-&gt;GenerateValues(10, 
0, 50);</FONT></SPAN></DIV>
<DIV><SPAN class=408470019-25042005><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=408470019-25042005><FONT face=Arial size=2>vtkPolyDataWriter 
*contourwriter=vtkPolyDataWriter::New();<BR>contourwriter-&gt;SetFileName("contour.vtk");<BR>contourwriter-&gt;SetInput(cutEdges-&gt;GetOutput());<BR>contourwriter-&gt;Update();</FONT></SPAN></DIV></FONT></DIV></BODY></HTML>