<html 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=utf-8">
<meta name="Title" content="">
<meta name="Keywords" content="">
<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:12.0pt;
        font-family:"Times New Roman";}
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.hoenzb
        {mso-style-name:hoenzb;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:Calibri;
        color:windowtext;}
span.msoIns
        {mso-style-type:export-only;
        mso-style-name:"";
        text-decoration:underline;
        color:teal;}
.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>
</head>
<body bgcolor="white" lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri">I may mess with it some. 
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri">FYI, I did convert my polygon to a polyline, and got it to work.  But, if I have two polylines (actually two completely separate regions) the slice along polyline filter then connects them
 even though they should not be connected.  Perhaps this is just what you mentioned below about having the same first and last point? 
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri">I appreciate both the filter and the feedback below.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri">Thank you,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri"><o:p> </o:p></span></p>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:Calibri;color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:Calibri;color:black">-- Adam<o:p></o:p></span></p>
</div>
</div>
</div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri"><o:p> </o:p></span></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-family:Calibri;color:black">From: </span>
</b><span style="font-family:Calibri;color:black">Shawn Waldon <shawn.waldon@kitware.com><br>
<b>Date: </b>Tuesday, November 29, 2016 at 12:28 PM<br>
<b>To: </b>Dershowitz Adam <adershowitz@exponent.com><br>
<b>Cc: </b>"postgurke@web.de" <postgurke@web.de>, "paraview@paraview.org" <paraview@paraview.org><br>
<b>Subject: </b>Re: [Paraview] Project polygon onto surface<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Hi Adam,<o:p></o:p></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">The Slice Along PolyLine filter looks for a vtkPolyLine type cell.  But there is no reason the algorithm itself can't work with a polygon (the current implementation just doesn't look for one and may not handle
 it the way you want if you pass a polyline that happens to have a first and last point that are the same).  You would have to modify vtkPolyPlane to handle a polygon input rather than assuming the first and last segments go off to infinity (add an option for
 this).<o:p></o:p></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">If you want to color the inside, you have to get into how the algorithm works a bit.  Internally I am using a vtkImplicitFunciton (vtkPolyPlane) to compute the distance of each point in the dataset (or its projection
 into the plane of the polyline) from the polyline.  Then I run a Contour filter (vtkCutter), contouring where that filter's value is 0 and the output is the slice along the polyline.  But if you directly applied the vtkPolyPlane implicit function to your dataset
 and appended that as a data array rather than contouring by it and throwing it away, you could get colors for distance from the line.  You could then use the Calculator filter to scale and color this however you wanted since the distance will be negative for
 one side of the line.<o:p></o:p></p>
</div>
<p class="MsoNormal">HTH,<o:p></o:p></p>
</div>
<p class="MsoNormal">Shawn<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">On Wed, Nov 23, 2016 at 1:20 PM, Adam Dershowitz <<a href="mailto:adershowitz@exponent.com" target="_blank">adershowitz@exponent.com</a>> wrote:<o:p></o:p></p>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<p class="MsoNormal">The problem I was having is that I was planning and trying  to use a polygon.  It seems that if you try to use that Slice Along Polyline, but select a polygon for the input, it crashes paraview (it should probably bring up an error, or
 only allow a polyline!).  I realized that it actually wants a polyline, and once I created one for my region, the filter does what I had been looking for.<br>
But, that leads to another question…  If I want a whole region to be another color, is there a way to fill the output of SliceAlongPolyLine?  So, instead of just an outline, I can get the inside to also be a certain color?<br>
<br>
Thanks for the help.<br>
<span style="color:#888888"><br>
<br>
<span class="hoenzb">-- Adam</span></span><o:p></o:p></p>
<div>
<div>
<p class="MsoNormal"><br>
<br>
On 10/26/16, 10:10 AM, "Adam Dershowitz" <<a href="mailto:adershowitz@exponent.com">adershowitz@exponent.com</a>> wrote:<br>
<br>
    I tried it a few times, and it kept crashing Paraview.  So, then I read up on, it and seemed, from the description, that it was not what I wanted anyway.  But, if you think it is, I will see if I can get it to work.<br>
<br>
    -- Adam<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
    On 10/26/16, 1:01 AM, "<a href="mailto:postgurke@web.de">postgurke@web.de</a>" <<a href="mailto:postgurke@web.de">postgurke@web.de</a>> wrote:<br>
<br>
    >Adam,<br>
    ><br>
    >Have you actually tried the filter? Because I think the output is exactly what<br>
    >you're asking for: the "section" of the surface is the part of the surface where<br>
    >the polyline is proceted onto it, hence a polyline with the regarding topography<br>
    >values for the respective z coordinates.<br>
    ><br>
    >Cheers<br>
    >Venke<br>
    ><br>
    ><br>
    ><br>
    >> Adam Dershowitz <<a href="mailto:adershowitz@exponent.com">adershowitz@exponent.com</a>> hat am 25. Oktober 2016 um 17:29<br>
    >> geschrieben:<br>
    >><br>
    >><br>
    >> I don't think that will do it.  Because, I don't want to slice anything.<br>
    >> I just want to show the boundaries on the 3D surface.  I want to project the<br>
    >> polygon that marks the edges of a region, onto the 3D topography.<br>
    >> It seems that Slice Along Polyline uses a laser to cut a section of the<br>
    >> surface, according to the instructions.  Instead I want to see each spot where<br>
    >> the laser hits on the surface.<br>
    >><br>
    >> ________________________________________<br>
    >> From: <a href="mailto:postgurke@web.de">postgurke@web.de</a> [<a href="mailto:postgurke@web.de">postgurke@web.de</a>]<br>
    >> Sent: Tuesday, October 25, 2016 11:13 AM<br>
    >> To: Adam Dershowitz; <a href="mailto:paraview@paraview.org">paraview@paraview.org</a><br>
    >> Subject: Re: [Paraview] Project polygon onto surface<br>
    >><br>
    >> Hi Adam<br>
    >><br>
    >> I think the Slice Along Polyline Filter is what you need. Just select the data<br>
    >> set and the poly line in the window popping up and then proceed in the<br>
    >> properties section as usual.<br>
    >><br>
    >> Cheers<br>
    >> Venke<br>
    >><br>
    >><br>
    >><br>
    >> > Adam Dershowitz <<a href="mailto:adershowitz@exponent.com">adershowitz@exponent.com</a>> hat am 25. Oktober 2016 um 16:01<br>
    >> > geschrieben:<br>
    >> ><br>
    >> ><br>
    >> > Is there a way to project a 2D, or 3D polygon onto a surface.<br>
    >> > Specifically I have some elevation data, that is displaying fine.  But the<br>
    >> > data has a lot of vertical variation.  I have a polygon that represents the<br>
    >> > boundaries of different regions.  So, the polygon is effectively 2D.<br>
    >> >  Although, I can give it a 3D values as well.<br>
    >> > The difficulty is that I can know the elevation of the corners, but the<br>
    >> > lines<br>
    >> > between those corners often drop "underground".<br>
    >> > So I would like to project the 2D (or 3D) polygon region onto the 3D ground<br>
    >> > elevation.<br>
    >> > You can think of this as having a topo map and I want to show the lines<br>
    >> > around<br>
    >> > an individual piece of property.<br>
    >> > Is there a filter that can do this?<br>
    >> ><br>
    >> > Thanks,<br>
    >> ><br>
    >> > --Adam<br>
    >> ><br>
    >> > _______________________________________________<br>
    >> > Powered by <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.kitware.com&d=DgMFaQ&c=t0wRGL5ICVzH157W8C8Wew&r=5usL3OGqXabRLtSzGmh8YEvbco28TaiOmWcn6rCn8wM&m=goVqFAuiEiw0j55M_ihlKpp6l5tXSD0l-pkKkT4uOjs&s=U5TCeKAY4VLJjdJjYLW-6GGmJliCeoi-GfkCHaB_6eE&e=" target="_blank">
www.kitware.com</a><br>
    >> ><br>
    >> > Visit other Kitware open-source projects at<br>
    >> > <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.kitware.com_opensource_opensource.html&d=DQICaQ&c=t0wRGL5ICVzH157W8C8Wew&r=5usL3OGqXabRLtSzGmh8YEvbco28TaiOmWcn6rCn8wM&m=vWssSXYtyX0Fwvwsvi4PGgQ70jWW8djJYXqUQvS2j3I&s=sMm99lDyK40nLEagq8PC0lEbloTvtFPCU5aOI3LyDaw&e=" target="_blank">
https://urldefense.proofpoint.com/v2/url?u=http-3A__www.kitware.com_opensource_opensource.html&d=DQICaQ&c=t0wRGL5ICVzH157W8C8Wew&r=5usL3OGqXabRLtSzGmh8YEvbco28TaiOmWcn6rCn8wM&m=vWssSXYtyX0Fwvwsvi4PGgQ70jWW8djJYXqUQvS2j3I&s=sMm99lDyK40nLEagq8PC0lEbloTvtFPCU5aOI3LyDaw&e=</a><br>
    >> ><br>
    >> > Please keep messages on-topic and check the ParaView Wiki at:<br>
    >> > <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__paraview.org_Wiki_ParaView&d=DQICaQ&c=t0wRGL5ICVzH157W8C8Wew&r=5usL3OGqXabRLtSzGmh8YEvbco28TaiOmWcn6rCn8wM&m=vWssSXYtyX0Fwvwsvi4PGgQ70jWW8djJYXqUQvS2j3I&s=iD69Hj5cpbD6ykFT4IC2HpA0Sg7i0PZKI0Kvkkk-KA4&e=" target="_blank">
https://urldefense.proofpoint.com/v2/url?u=http-3A__paraview.org_Wiki_ParaView&d=DQICaQ&c=t0wRGL5ICVzH157W8C8Wew&r=5usL3OGqXabRLtSzGmh8YEvbco28TaiOmWcn6rCn8wM&m=vWssSXYtyX0Fwvwsvi4PGgQ70jWW8djJYXqUQvS2j3I&s=iD69Hj5cpbD6ykFT4IC2HpA0Sg7i0PZKI0Kvkkk-KA4&e=</a><br>
    >> ><br>
    >> > Search the list archives at:<br>
    >> > <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__markmail.org_search_-3Fq-3DParaView&d=DQICaQ&c=t0wRGL5ICVzH157W8C8Wew&r=5usL3OGqXabRLtSzGmh8YEvbco28TaiOmWcn6rCn8wM&m=vWssSXYtyX0Fwvwsvi4PGgQ70jWW8djJYXqUQvS2j3I&s=wjB_o3N2yOaMlHQwkRubVtOQaONIFgjXLZgGkSCsfmk&e=" target="_blank">
https://urldefense.proofpoint.com/v2/url?u=http-3A__markmail.org_search_-3Fq-3DParaView&d=DQICaQ&c=t0wRGL5ICVzH157W8C8Wew&r=5usL3OGqXabRLtSzGmh8YEvbco28TaiOmWcn6rCn8wM&m=vWssSXYtyX0Fwvwsvi4PGgQ70jWW8djJYXqUQvS2j3I&s=wjB_o3N2yOaMlHQwkRubVtOQaONIFgjXLZgGkSCsfmk&e=</a><br>
    >> ><br>
    >> > Follow this link to subscribe/unsubscribe:<br>
    >> > <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__public.kitware.com_mailman_listinfo_paraview&d=DQICaQ&c=t0wRGL5ICVzH157W8C8Wew&r=5usL3OGqXabRLtSzGmh8YEvbco28TaiOmWcn6rCn8wM&m=vWssSXYtyX0Fwvwsvi4PGgQ70jWW8djJYXqUQvS2j3I&s=zor1PXNvekBliiJOtZ5T0cocWkfwUd4H6OxmHTvbCDk&e=" target="_blank">
https://urldefense.proofpoint.com/v2/url?u=http-3A__public.kitware.com_mailman_listinfo_paraview&d=DQICaQ&c=t0wRGL5ICVzH157W8C8Wew&r=5usL3OGqXabRLtSzGmh8YEvbco28TaiOmWcn6rCn8wM&m=vWssSXYtyX0Fwvwsvi4PGgQ70jWW8djJYXqUQvS2j3I&s=zor1PXNvekBliiJOtZ5T0cocWkfwUd4H6OxmHTvbCDk&e=</a><br>
<br>
<br>
_______________________________________________<br>
Powered by <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.kitware.com&d=DgMFaQ&c=t0wRGL5ICVzH157W8C8Wew&r=5usL3OGqXabRLtSzGmh8YEvbco28TaiOmWcn6rCn8wM&m=goVqFAuiEiw0j55M_ihlKpp6l5tXSD0l-pkKkT4uOjs&s=U5TCeKAY4VLJjdJjYLW-6GGmJliCeoi-GfkCHaB_6eE&e=" target="_blank">
www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.kitware.com_opensource_opensource.html&d=DgMFaQ&c=t0wRGL5ICVzH157W8C8Wew&r=5usL3OGqXabRLtSzGmh8YEvbco28TaiOmWcn6rCn8wM&m=goVqFAuiEiw0j55M_ihlKpp6l5tXSD0l-pkKkT4uOjs&s=5ZPqzsC9WXmESJRX-rTs38MCxTSVcHZTAmgzF4d1SRw&e=" target="_blank">
http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__paraview.org_Wiki_ParaView&d=DgMFaQ&c=t0wRGL5ICVzH157W8C8Wew&r=5usL3OGqXabRLtSzGmh8YEvbco28TaiOmWcn6rCn8wM&m=goVqFAuiEiw0j55M_ihlKpp6l5tXSD0l-pkKkT4uOjs&s=AOi-0AenUeLEKnfxdXymOV_NJamuIYxNSJDTSbY8G-c&e=" target="_blank">
http://paraview.org/Wiki/ParaView</a><br>
<br>
Search the list archives at: <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__markmail.org_search_-3Fq-3DParaView&d=DgMFaQ&c=t0wRGL5ICVzH157W8C8Wew&r=5usL3OGqXabRLtSzGmh8YEvbco28TaiOmWcn6rCn8wM&m=goVqFAuiEiw0j55M_ihlKpp6l5tXSD0l-pkKkT4uOjs&s=GcpxBf5AvxEJpqdLBbkZ-OaXJuahdsad0T7ptU4W12Y&e=" target="_blank">
http://markmail.org/search/?q=ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__public.kitware.com_mailman_listinfo_paraview&d=DgMFaQ&c=t0wRGL5ICVzH157W8C8Wew&r=5usL3OGqXabRLtSzGmh8YEvbco28TaiOmWcn6rCn8wM&m=goVqFAuiEiw0j55M_ihlKpp6l5tXSD0l-pkKkT4uOjs&s=d5iSeUfEvAb-PseUcTDnVC5F_WlBMCUkEBFkVGVWqN4&e=" target="_blank">http://public.kitware.com/mailman/listinfo/paraview</a><o:p></o:p></p>
</div>
</div>
</blockquote>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</body>
</html>