<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 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@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:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
color:windowtext;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
p
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:12.0pt;
font-family:"Times New Roman",serif;
color:black;}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:12.0pt;
font-family:"Times New Roman",serif;
color:black;}
span.EmailStyle20
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
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 bgcolor="white" lang="EN-US" link="blue" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Hi Paul,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">You can contact the authors (Kyle Sunderland and Csaba Pinter) directly - they would be happy to help you in using this method. Note that the code that you’ve found was just a python prototype. More advanced and maintained C++ implementation
is available here:<o:p></o:p></p>
<p class="MsoNormal"><a href="https://app.assembla.com/spaces/slicerrt/subversion/source/HEAD/trunk/SlicerRt/src/SegmentationCore/vtkPlanarContourToClosedSurfaceConversionRule.cxx?_format=raw">https://app.assembla.com/spaces/slicerrt/subversion/source/HEAD/trunk/SlicerRt/src/SegmentationCore/vtkPlanarContourToClosedSurfaceConversionRule.cxx?_format=raw</a><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Andras<o:p></o:p></p>
<p class="MsoNormal"><a name="_MailEndCompose"><o:p> </o:p></a></p>
<span style="mso-bookmark:_MailEndCompose"></span>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> Paul Kibet Korir [mailto:pkorir@ebi.ac.uk] <br>
<b>Sent:</b> June 23, 2016 10:52 AM<br>
<b>To:</b> Andras Lasso <lasso@queensu.ca>; VTK Users <vtkusers@vtk.org><br>
<b>Subject:</b> Re: [vtkusers] CO-PLANAR CONTOURS AND SURFACE GENERATION<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p>Thanks, once again.<o:p></o:p></p>
<p>After hours* poring through the SlicerRT source I finally found something useful. For anyone else who comes up against this problem here are some useful links to a solution:<o:p></o:p></p>
<p><a href="https://subversion.assembla.com/svn/slicerrt/trunk/SlicerRt/sandbox/ContourInterpolation/">https://subversion.assembla.com/svn/slicerrt/trunk/SlicerRt/sandbox/ContourInterpolation/</a><o:p></o:p></p>
<p><a href="http://perk.cs.queensu.ca/contents/reconstruction-surfaces-planar-contours-through-contour-interpolation">http://perk.cs.queensu.ca/contents/reconstruction-surfaces-planar-contours-through-contour-interpolation</a><o:p></o:p></p>
<p><a href="http://perk.cs.queensu.ca/sites/perkd7.cs.queensu.ca/files/Sunderland2015-manuscript.pdf">http://perk.cs.queensu.ca/sites/perkd7.cs.queensu.ca/files/Sunderland2015-manuscript.pdf</a><o:p></o:p></p>
<p>Paul<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">On 17/06/2016 08:32, Andras Lasso wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal">Some heuristics is needed to decide which contour to connect/terminate/branch.<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">You might give a try to the DICOM-RT importer in 3D Slicer’s SlicerRT extension (<a href="http://www.slicerrt.org">www.slicerrt.org</a>). It manages branching, smooth end-capping, etc. If it works for you then you can either use it as is
or just have a look at the source code and use it in your own software (the planar contour to closed surface converter only requires VTK).<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Andras<o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif"> </span><o:p></o:p></p>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From: </b><a href="mailto:pkorir@ebi.ac.uk">Paul Kibet Korir</a><br>
<b>Sent: </b>June 16, 2016 12:53<br>
<b>To: </b><a href="mailto:vtkusers@vtk.org">VTK Users</a><br>
<b>Subject: </b>[vtkusers] CO-PLANAR CONTOURS AND SURFACE GENERATION<o:p></o:p></p>
</div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif"> </span><o:p></o:p></p>
</div>
<div>
<p>Hi VTK Users,<o:p></o:p></p>
<p>I'm currently using vtkRuledSurfaceFilter to convert a sequence of contours into a surface. The problem is that if two contours happen to be on the same plane the surface filter will join them resulting in artefacts.
<o:p></o:p></p>
<p>Any suggestions on how to deal with this?<o:p></o:p></p>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:black">--
<br>
With kind regards,<br>
<br>
<strong>Dr. Paul K Korir, PhD</strong><br>
<i>Scientific Programmer</i><br>
EMBL-EBI<br>
Main Building, A2-35,<br>
WTGC, Hinxton, Cambridge CB10 1SD<br>
P: +44 1223 49 44 22<br>
F: +44 1223 49 44 68<o:p></o:p></span></p>
</div>
</div>
</blockquote>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:black"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:black">--
<br>
With kind regards,<br>
<br>
<strong>Dr. Paul K Korir, PhD</strong><br>
<i>Scientific Programmer</i><br>
EMBL-EBI<br>
Main Building, A2-35,<br>
WTGC, Hinxton, Cambridge CB10 1SD<br>
P: +44 1223 49 44 22<br>
F: +44 1223 49 44 68<o:p></o:p></span></p>
</div>
</div>
</body>
</html>