<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.E-MailFormatvorlage17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=DE-AT link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Hello<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span lang=EN-GB>I want to make a skeleton of my surface vtkPolyData and found the ReebGraph module. The original test runs fine, but when I replace the vtkPolyData of the test with my surface data I get an crash in </span><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:#010001'>vtkReebGraphSimplificationFilter (a vector is accessed out of vectors range in vtkReebGraph.cxx at line 1705). The </span><span style='font-size:10.0pt;font-family:"Courier New";color:#010001'>vtkPolyDataToReebGraphFilter runs without problems….<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:#010001'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:#010001'>To ensure that my surface is connected, cleaned and only out of triangles I did the following:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:#010001'><o:p> </o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:#010001'>vtkPolyDataReader</span><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New"'>* <span style='color:#010001'>oR</span> = <span style='color:#010001'>vtkPolyDataReader</span>::<span style='color:#010001'>New</span>();<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New"'>  <span style='color:#010001'>oR</span>-><span style='color:#010001'>SetFileName</span>(<span style='color:#A31515'>"surface.vtk"</span>);<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New"'>  <span style='color:#010001'>oR</span>-><span style='color:#010001'>Update</span>();<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New"'><o:p> </o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New"'>  <span style='color:#010001'>vtkConnectivityFilter</span>* <span style='color:#010001'>oCon</span> = <span style='color:#010001'>vtkConnectivityFilter</span>::<span style='color:#010001'>New</span>();<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New"'>  <span style='color:#010001'>oCon</span>-><span style='color:#010001'>SetInputData</span>( <span style='color:#010001'>oR</span>-><span style='color:#010001'>GetOutput</span>() );<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New"'>  <span style='color:#010001'>oCon</span>-><span style='color:#010001'>SetExtractionModeToLargestRegion</span> ();<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New"'>  <span style='color:#010001'>oCon</span>-><span style='color:#010001'>Update</span>();<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New"'><o:p> </o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New"'><o:p> </o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:#010001'>vtkDataSetSurfaceFilter</span><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New"'>* <span style='color:#010001'>oEx</span> = <span style='color:#010001'>vtkDataSetSurfaceFilter</span>::<span style='color:#010001'>New</span>();<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:#010001'>oEx</span><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New"'>-><span style='color:#010001'>SetInputData</span>( <span style='color:#010001'>oCon</span>-><span style='color:#010001'>GetOutput</span>() );<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:#010001'>oEx</span><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New"'>-><span style='color:#010001'>Update</span>();<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:#010001'>oEx</span><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New"'>-><span style='color:#010001'>GetOutput</span>()-><span style='color:#010001'>Print</span>(<span style='color:#010001'>std</span>::<span style='color:#010001'>cout</span>);<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New"'>  <span style='color:#010001'>vtkCleanPolyData</span>* <span style='color:#010001'>oC</span> = <span style='color:#010001'>vtkCleanPolyData</span>::<span style='color:#010001'>New</span>();<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New"'>    <span style='color:#010001'>oC</span>-><span style='color:#010001'>SetInputData</span>( <span style='color:#010001'>oEx</span>-><span style='color:#010001'>GetOutput</span>() );<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New"'>    <span style='color:#010001'>oC</span>-><span style='color:#010001'>Update</span>();<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New"'><o:p> </o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New"'>  <span style='color:#010001'>vtkTriangleFilter</span>* <span style='color:#010001'>oT</span> = <span style='color:#010001'>vtkTriangleFilter</span>::<span style='color:#010001'>New</span>();<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New"'>  <span style='color:#010001'>oT</span>-><span style='color:#010001'>SetInputData</span>( <span style='color:#010001'>oC</span>-><span style='color:#010001'>GetOutput</span>() );<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New"'>  <span style='color:#010001'>oT</span>-><span style='color:#010001'>PassLinesOff</span>();<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New"'>  <span style='color:#010001'>oT</span>-><span style='color:#010001'>PassVertsOff</span>();<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New"'>  <span style='color:#010001'>oT</span>-><span style='color:#010001'>Update</span>();<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New"'><o:p> </o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New"'>  <span style='color:#010001'>vtkCleanPolyData</span>* <span style='color:#010001'>oC2</span> = <span style='color:#010001'>vtkCleanPolyData</span>::<span style='color:#010001'>New</span>();<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New"'>    <span style='color:#010001'>oC2</span>-><span style='color:#010001'>SetInputData</span>( <span style='color:#010001'>oT</span>-><span style='color:#010001'>GetOutput</span>() );<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New"'>    <span style='color:#010001'>oC2</span>-><span style='color:#010001'>Update</span>();<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New"'><o:p> </o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New"'>  <span style='color:#010001'>vtkPolyData</span> *<span style='color:#010001'>surfaceMesh</span> = <span style='color:#010001'>vtkPolyData</span>::<span style='color:#010001'>New</span>();<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New"'>  <span style='color:#010001'>surfaceMesh</span>-><span style='color:#010001'>DeepCopy</span>(<span style='color:#010001'>oC2</span>-><span style='color:#010001'>GetOutput</span>());<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New"'>  <span style='color:#010001'>surfaceMesh</span>-><span style='color:#010001'>Print</span>(<span style='color:#010001'>std</span>::<span style='color:#010001'>cout</span>);</span><span lang=EN-GB><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB>Can anyone explain me what could happen or could I send someone my data? Or maybe someone knows a better skeletonizing of surfaces?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB>Thanks,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>Best regards,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>Gerald<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:12.0pt;font-family:"Arial","sans-serif";color:black;mso-fareast-language:DE-AT'>_________________________________________________________________</span><span lang=EN-GB style='font-size:8.5pt;color:black;mso-fareast-language:DE-AT'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><b><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";mso-fareast-language:JA'><o:p> </o:p></span></b></p><p class=MsoNormal style='text-autospace:none'><b><span lang=DE style='font-size:10.0pt;font-family:"Arial","sans-serif";mso-fareast-language:JA'>JOANNEUM RESEARCH Forschungsgesellschaft mbH</span></b><span lang=DE style='font-size:10.0pt;font-family:"Arial","sans-serif";mso-fareast-language:JA'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=DE style='font-size:10.0pt;font-family:"Arial","sans-serif";mso-fareast-language:JA'>                                <o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><b><span style='font-size:10.0pt;font-family:"Arial","sans-serif";mso-fareast-language:JA'>DIGITAL – Institute for Information and Communication Technologies</span></b><span style='font-size:10.0pt;font-family:"Arial","sans-serif";mso-fareast-language:JA'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";mso-fareast-language:JA'>Steyrergasse 17, 8010 Graz, Austria<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#4D4D4D;mso-fareast-language:JA'> <o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";mso-fareast-language:JA'>phone: +43 316 876-1751<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";mso-fareast-language:JA'>fax: +43 316 8769-1751<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=DE style='font-size:10.0pt;font-family:"Arial","sans-serif";mso-fareast-language:JA'>e-mail: <a href="mailto:gerald.lodron@joanneum.at"><span style='color:blue'>gerald.lodron@joanneum.at</span></a> <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";mso-fareast-language:JA'>web: <a href="http://www.joanneum.at/digital"><span style='color:blue'>www.joanneum.at/digital</span></a><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:"Arial","sans-serif";color:black;mso-fareast-language:DE-AT'>_________________________________________________________________</span><span lang=EN-US style='font-size:8.5pt;color:black;mso-fareast-language:DE-AT'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:JA'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:9.0pt;color:gray;mso-fareast-language:JA'>This message and any attached files are confidential and intended solely for the addressee(s). Any publication, transmission or other use of the information by a person or entity other than the intended addressee(s) is prohibited. If you receive this in error please contact the sender and delete the material. The sender does not accept liability for any errors or omissions as a result of the transmission.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:9.0pt;color:gray;mso-fareast-language:JA'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:9.0pt;color:gray;mso-fareast-language:JA'>Please consider the environment before printing this page.</span><span lang=EN-US style='color:gray;mso-fareast-language:JA'><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";mso-fareast-language:JA'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p></div></body></html>