<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="PlaceType"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="PlaceName"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="place"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Batang;
        panose-1:2 3 6 0 0 1 1 1 1 1;}
@font-face
        {font-family:"\@Batang";
        panose-1:2 3 6 0 0 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman";}
pre
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Arial;
        color:windowtext;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.Section1
        {page:Section1;}
-->
</style>
</head>
<body lang=DE-AT link=blue vlink=purple>
<div class=Section1><pre><font size=2 face="Courier New"><span lang=EN-GB
style='font-size:10.0pt'>Hi All VTK - Users,<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span lang=EN-GB style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 face="Courier New"><span lang=EN-GB style='font-size:10.0pt'>after a performing a constrained vtkDelaunay2D, I extract the outer boundary<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span lang=EN-GB style='font-size:10.0pt'>of the mesh using the vtkFeatureEdges filter. As a result, I obtain the mesh<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span lang=EN-GB style='font-size:10.0pt'>boundary described as a sum of all the boundary segments (edges).<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span lang=EN-GB style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 face="Courier New"><span lang=EN-GB style='font-size:10.0pt'>Now I need the order of the boundary points, but I can’t get it!<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span lang=EN-GB style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 face="Courier New"><span lang=EN-GB style='font-size:10.0pt'>Does anybody know if an existing vtk filter could do the job?<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span lang=EN-GB style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 face="Courier New"><span lang=EN-GB style='font-size:10.0pt'>I also tested the vtkStripper and vtkTubeFilter, but without any success!<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span lang=EN-GB style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 face="Courier New"><span lang=EN-GB style='font-size:10.0pt'>What’s wrong?<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span lang=EN-GB style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 face="Courier New"><span lang=EN-GB style='font-size:10.0pt'>Thanks<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span lang=EN-GB style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 face="Courier New"><span lang=EN-GB style='font-size:10.0pt'>Mario Richtsfeld<o:p></o:p></span></font></pre>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'>vtkDelaunay2D *pDelaunay = vtkDelaunay2D::New();<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'>pDelaunay->SetInput(pPDTop);<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'>pDelaunay->Update();<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'>vtkFeatureEdges *feature = vtkFeatureEdges::New();<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'>feature->SetInputConnection(pDelaunay->GetOutputPort());<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'>feature->BoundaryEdgesOn();<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'>feature->FeatureEdgesOff();<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'>feature->NonManifoldEdgesOff();<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'>feature->ManifoldEdgesOff();<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'>feature->SetFeatureAngle(0);<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'>feature->Update();<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'>vtkStripper *cutStrips = vtkStripper::New(); //Forms
loops (closed polylines) from cutter<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'>cutStrips->SetInputConnection(feature->GetOutputPort());<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'>cutStrips->Update();<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'>vtkTubeFilter *feTubes = vtkTubeFilter::New();<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'>feTubes->SetInput(cutStrips->GetOutput());<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>feTubes->SetRadius(0.5);<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p style='margin:0cm;margin-bottom:.0001pt;line-height:12.0pt'><font size=2
face="Times New Roman"><span lang=EN-GB style='font-size:10.0pt'>________________________________________<o:p></o:p></span></font></p>
<p style='margin:0cm;margin-bottom:.0001pt;line-height:12.0pt'><font size=2
face="Times New Roman"><span lang=EN-GB style='font-size:10.0pt'>Dipl.-Ing.(FH)
Mario Richtsfeld<o:p></o:p></span></font></p>
<p style='margin:0cm;margin-bottom:.0001pt;line-height:12.0pt'><font size=2
face="Times New Roman"><span lang=EN-GB style='font-size:10.0pt'>Research
assistant<o:p></o:p></span></font></p>
<p style='margin:0cm;margin-bottom:.0001pt;line-height:12.0pt'><font size=2
face="Times New Roman"><span lang=EN-GB style='font-size:10.0pt'>AUTOMATION
& CONTROL INSTITUTE | ACIN<o:p></o:p></span></font></p>
<p style='margin:0cm;margin-bottom:.0001pt;line-height:12.0pt'><st1:place
w:st="on"><st1:PlaceName w:st="on"><font size=2 face="Times New Roman"><span
lang=EN-GB style='font-size:10.0pt'>VIENNA</span></font></st1:PlaceName><font
size=2><span lang=EN-GB style='font-size:10.0pt'> <st1:PlaceType w:st="on">UNIVERSITY</st1:PlaceType></span></font></st1:place><font
size=2><span lang=EN-GB style='font-size:10.0pt'> OF TECHNOLOGY<o:p></o:p></span></font></p>
<p style='margin:0cm;margin-bottom:.0001pt;line-height:12.0pt'><font size=2
face="Times New Roman"><span style='font-size:10.0pt'>Gußhausstraße 27-29 |
376. 1040 Wien <o:p></o:p></span></font></p>
<p style='margin:0cm;margin-bottom:.0001pt;line-height:12.0pt'><font size=2
face="Times New Roman"><span style='font-size:10.0pt'>Tel.: +43 (0)1 - 58801 -
77663 <o:p></o:p></span></font></p>
<p style='margin:0cm;margin-bottom:.0001pt;line-height:12.0pt'><font size=2
face="Times New Roman"><span lang=EN-GB style='font-size:10.0pt'>Fax.: +43 (0)1
- 58801 - 37699 <o:p></o:p></span></font></p>
<p style='margin:0cm;margin-bottom:.0001pt;line-height:12.0pt'><span
class=MsoHyperlink><u><font size=2 color=blue face="Times New Roman"><span
lang=EN-GB style='font-size:10.0pt'>rm@acin.tuwien.ac.at</span></font></u></span><font
size=2><span lang=EN-GB style='font-size:10.0pt'> | </span></font><span
class=MsoHyperlink><u><font size=2 color=blue><span style='font-size:10.0pt'><a
href="www.acin.tuwien.ac.at"><span lang=EN-GB>www.acin.tuwien.ac.at</span></a></span></font></u></span><font
size=2><span lang=EN-GB style='font-size:10.0pt'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span lang=EN-GB
style='font-size:12.0pt'><o:p> </o:p></span></font></p>
</div>
</body>
</html>