<div dir="ltr"><div>In the VTK source code:</div><div><br></div><div>   Filters/General/Testing/Cxx/TestContourTriangulator.cxx</div><div>   Filters/General/Testing/Cxx/TestContourTriangulatorCutter.cxx</div><div>   Filters/General/Testing/Cxx/TestContourTriangulatorMarching.cxx</div><div><br></div><div> - David</div><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Sep 26, 2015 at 6:49 PM, zhq <span dir="ltr"><<a href="mailto:15891495523@126.com" target="_blank">15891495523@126.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi David:<br>
<br>
   I find that the vtkContourTriangulator is worked on 3D data. How to<br>
triangulate a set of 2D points? Could you please give me an example if there<br>
is one ?<br>
<br>
ZhangQiang<br>
<br>
David Gobbi wrote<br>
<span class="">> Hi Zhang,<br>
><br>
> You can try vtkContourTriangulator.  It requires that the inner circle is<br>
> wound in the opposite direction to the outer circle.<br>
><br>
>  - David<br>
><br>
> On Sat, Sep 26, 2015 at 9:11 AM, zhq <<br>
<br>
> 15891495523@<br>
<br>
</span><span class="">>> wrote:<br>
><br>
>><br>
>>    In fact, I want to get a result like:<br>
</span>>> &lt;<a href="http://vtk.1045678.n5.nabble.com/file/n5734143/2.png&gt" rel="noreferrer" target="_blank">http://vtk.1045678.n5.nabble.com/file/n5734143/2.png&gt</a>;<br>
<span class="">>><br>
>>    And the vtkDelaunay2D maybe can't give me what I want. Because it<br>
>> "triangulate all of the points except the region inside the boundary of<br>
>> the<br>
>> polygon". So it may cause the illegal line which inside the inner circle.<br>
>><br>
>>    If somebody know which class is ok for my need ?<br>
>><br>
>>    Thank you very much !<br>
>><br>
>> ZhangQiang<br></span></blockquote></div></div></div>