<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;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
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:11.0pt;
font-family:"Calibri",sans-serif;}
span.EmailStyle18
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.EmailStyle19
{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 lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Dennis,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Yes, this cat has a zipper that allows it’s skin to come right off. (Maybe I took that “skin the cat” metaphor a bit too far.)<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Anyway, just run the Extract Surface filter. After that you can run the Generate Surface Normals filter.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">-Ken<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> ParaView [mailto:paraview-bounces@public.kitware.com]
<b>On Behalf Of </b>Dennis Conklin<br>
<b>Sent:</b> Monday, April 9, 2018 1:22 PM<br>
<b>To:</b> Paraview (paraview@paraview.org) <paraview@paraview.org><br>
<b>Subject:</b> [EXTERNAL] [Paraview] Normal vector to Exodus Sideset elements<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">All,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I’m sure I’m missing something here, so please knock me up alongside the head and point it out.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I load a sideset (surface) from an Exodus file. I end up with a bunch of quads that Paraview conveniently created for me from the surface. I need to calculate a Normal vector for each of these quads. I have tried:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Generate surface normal – this is greyed out (wants poly data?)<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Delaunay 3D on this to generate poly data, which I could then hopefully run Generate surface normal on, but it was still greyed<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Tried Normal Glyphs which gave me point Normal vectors but gave me a bunch of Triangle and Polygon elements – I’m not sure what’s going on here.<o:p></o:p></p>
<p class="MsoNormal"> PointDataToCellData to get GlyphVector for each Cell <o:p>
</o:p></p>
<p class="MsoNormal"> Python Calculator and ask for area(inputs[0]) the Polygon elements all get an Area of -1<o:p></o:p></p>
<p class="MsoNormal"> Calculator to get Area_X as product of GlyphVector_X and Area<o:p></o:p></p>
<p class="MsoNormal"> Threshold on Area_X > 0 - don’t want negative areas or some boundary cells with GlyphVector_X as negative<o:p></o:p></p>
<p class="MsoNormal"> Python Calculator to get sum(Area_X)<o:p></o:p></p>
<p class="MsoNormal"> This number appears to be about half of my expected number<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">These must be an easier way. I’m not a vtk guru. When I first load my surface, is there some vtk routine I could call within a Programmable filter to get the cell normal?????
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Alternatively, anyone got an easier way to skin this cat?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks for any hints you may have.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Dennis<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>