<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2654.45">
<TITLE>about Delaunay2D </TITLE>
</HEAD>
<BODY>
<BR>

<P><FONT FACE="Arial">&nbsp;</FONT>
<BR><FONT FACE="Arial">&nbsp; I have a question about how to get the Delaunay trangulation of some&nbsp; 2.5 D scattered points measured by a laser scanner device. </FONT></P>

<P><FONT FACE="Arial">&nbsp;&nbsp; I had asked Will for some suggestion and he give me many very useful suggestions on it. He suggest me to</FONT> <FONT FACE="Simsun">use vtkDelaunay2D</FONT><FONT FACE="Simsun"> to realize it.</FONT></P>

<P><FONT FACE="Simsun">&nbsp; There is still some question as followed, in which words in black are suggestions about how to realize step bu step and words in blue are my questions about the suggestion.</FONT></P>
<BR>
<BR>

<P><FONT FACE="Simsun">+ create a polydata with points<BR>
</FONT><FONT FACE="Courier New">   </FONT><FONT COLOR="#0000FF" SIZE=2 FACE="Courier New"> </FONT><FONT COLOR="#0000FF" SIZE=2 FACE="&#23435;&#20307;"> Can I use &quot;SetInput(vtkPointSet *input)&quot; to deliver points data to</FONT> <FONT COLOR="#0000FF" FACE="Times New Roman">vtkDelaunay2D instance ?</FONT><FONT COLOR="#0000FF" FACE="Courier New"> </FONT><FONT COLOR="#0000FF" FACE="Times New Roman"> If can, then I should create a vtkPointSet to</FONT></P>

<P><FONT FACE="Courier New">   </FONT><FONT FACE="Simsun"> </FONT><FONT COLOR="#0000FF" FACE="Simsun">include all my points and use it as the parameter</FONT><FONT COLOR="#0000FF" FACE="Courier New"> </FONT><FONT COLOR="#0000FF" FACE="Simsun">of that function, is that right?</FONT>
</P>

<P><FONT FACE="Simsun">+ create a vtkDelaunay2D instance and set its input to the polydata</FONT>
<BR><FONT FACE="Courier New"> </FONT><FONT COLOR="#0000FF" SIZE=2 FACE="Courier New">  </FONT><FONT COLOR="#0000FF" SIZE=2 FACE="&#23435;&#20307;"> But I have not found a function can input polydata to vtkDelaunay2D. You mean vtkPointSet?</FONT><BR>
<BR>
<FONT FACE="Simsun">+ invoke &quot;Update()&quot; on the delaunay2D instance<BR>
</FONT><FONT COLOR="#0000FF" SIZE=2 FACE="Courier New">   </FONT><FONT COLOR="#0000FF" SIZE=2 FACE="&#23435;&#20307;"> vtkSource::Update()?</FONT><FONT COLOR="#0000FF" SIZE=2 FACE="Courier New"> </FONT><FONT COLOR="#0000FF" SIZE=2 FACE="&#23435;&#20307;"> Why not vtkDelaunay2D::Execute()?</FONT>
</P>

<P><FONT FACE="Simsun">+ get the output using the GetOutput() method<BR>
</FONT><FONT COLOR="#0000FF" SIZE=2 FACE="Courier New">   </FONT><FONT COLOR="#0000FF" SIZE=2 FACE="&#23435;&#20307;"> vtkPolyData *vtkPolyDataSource::GetOutput()? Then I should prepare a vtkPolyData to save the triangulation result,</FONT>
<BR><FONT COLOR="#0000FF" SIZE=2 FACE="Courier New">    </FONT><FONT COLOR="#0000FF" SIZE=2 FACE="&#23435;&#20307;">is that righ?</FONT>
<BR><FONT FACE="Courier New"> </FONT>
<BR><FONT COLOR="#0000FF" SIZE=2 FACE="Courier New">&nbsp;Thank you!</FONT>
<BR><FONT COLOR="#0000FF" SIZE=2 FACE="Courier New">&nbsp;Xiaoping</FONT>
</P>
<BR>
<BR>

</BODY>
</HTML>