<div dir="ltr"><div dir="ltr">On Fri, Jan 11, 2019 at 11:04 AM Andras Lasso <<a href="mailto:lasso@queensu.ca">lasso@queensu.ca</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div lang="EN-US">
<div class="gmail-m_3508575948716088727WordSection1">
<p class="MsoNormal">In general, vtkCutter returns a random (unordered, non-continuous) list of line segments.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Can vtkContourTriangulator deal with that (merge points and order line segments to form closed contours)?</p></div></div></blockquote><div><br></div><div>Yes. If given unordered line segments, vtkContourTriangulator will sort them. The nightly tests cover this feature.</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div lang="EN-US"><div class="gmail-m_3508575948716088727WordSection1">
<p class="MsoNormal">Usually we apply vtkStripper with a very large MaximumLength on vtkCutter output to create polygons that can be triangulated and rendered. This works well almost every time, but in some cases (cutting very complex geometries with hundreds
of thousand of points) stripping does not find closed polygons. It would be nice to have a somewhat simpler and more robust solution.</p></div></div></blockquote><div><br></div><div>The vtkCountourTriangulator code has checks to deal with bad geometry. It's not perfect, but it's much better than vtkPolygon::Triangulate(). I've avoided vtkDelaunay2D because certain geometries will cause it to crash.</div><div><br></div><div>I wrote vtkClipClosedSurface specifically to deal with complex 3D geometries (it uses vtkContourTriangulator as its final stage). I had meant to write a similar filter called vtkCutClosedSurface filter for cutting (instead of clipping) but that never happened.<br></div><div><br></div><div> David</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div lang="EN-US"><div class="gmail-m_3508575948716088727WordSection1"><div><div><div><blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0in 0in 0in 6pt;margin-left:4.8pt;margin-right:0in"><div><blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0in 0in 0in 6pt;margin-left:4.8pt;margin-right:0in"><div><div><div><div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</div>
</blockquote></div></div>