<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Thanks, once again.</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:</p>
    <p><a class="moz-txt-link-freetext" href="https://subversion.assembla.com/svn/slicerrt/trunk/SlicerRt/sandbox/ContourInterpolation/">https://subversion.assembla.com/svn/slicerrt/trunk/SlicerRt/sandbox/ContourInterpolation/</a><br>
    </p>
    <p><a class="moz-txt-link-freetext" 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><br>
    </p>
    <p><a class="moz-txt-link-freetext" 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></p>
    <p>Paul<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 17/06/2016 08:32, Andras Lasso
      wrote:<br>
    </div>
    <blockquote
cite="mid:DM2PR07MB35082B70215ABD980C0EE7BD8570@DM2PR07MB350.namprd07.prod.outlook.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <meta content="text/html; charset=utf-8">
      <meta name="Generator" content="Microsoft Word 15 (filtered
        medium)">
      <style>
<!--
@font-face
        {font-family:"Cambria Math"}
@font-face
        {font-family:Calibri}
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        color:windowtext}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
        {color:#954F72;
        text-decoration:underline}
p
        {margin-right:0cm;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;
        color:black}
.MsoChpDefault
        {}
@page WordSection1
        {margin:72.0pt 72.0pt 72.0pt 72.0pt}
div.WordSection1
        {}
-->
</style>
      <div class="WordSection1">
        <p class="MsoNormal"><span lang="EN-US">Some heuristics is
            needed to decide which contour to connect/terminate/branch.</span></p>
        <p class="MsoNormal"><span lang="EN-US"> </span></p>
        <p class="MsoNormal"><span lang="EN-US">You might give a try to
            the DICOM-RT importer in 3D Slicer’s SlicerRT extension
            (<a class="moz-txt-link-abbreviated" 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).</span><span
            lang="EN-US"></span></p>
        <p class="MsoNormal"> </p>
        <p class="MsoNormal">Andras</p>
        <p class="MsoNormal"><span style="font-size:12.0pt;
            font-family:"Times New Roman",serif"> </span></p>
        <div style="border:none; border-top:solid #E1E1E1 1.0pt;
          padding:3.0pt 0cm 0cm 0cm">
          <p class="MsoNormal" style="border:none; padding:0cm"><b>From:
            </b><a moz-do-not-send="true" href="mailto:pkorir@ebi.ac.uk">Paul
              Kibet Korir</a><br>
            <b>Sent: </b>June 16, 2016 12:53<br>
            <b>To: </b><a moz-do-not-send="true"
              href="mailto:vtkusers@vtk.org">VTK Users</a><br>
            <b>Subject: </b>[vtkusers] CO-PLANAR CONTOURS AND SURFACE
            GENERATION</p>
        </div>
        <p class="MsoNormal"><span style="font-size:12.0pt;
            font-family:"Times New Roman",serif"> </span></p>
      </div>
      <div>
        <p>Hi VTK Users,</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.
          <br>
        </p>
        <p>Any suggestions on how to deal with this?</p>
        <div class="moz-signature">-- <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</div>
      </div>
    </blockquote>
    <br>
    <div class="moz-signature">-- <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</div>
  </body>
</html>