<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Calculating the normal vector of each TIN facet in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/calculating-the-normal-vector-of-each-tin-facet/m-p/45968#M1193</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a set of 3d points with x, y, z values. I would like to make TIN model (Delaunay triangulation is also fine for me )out of these points and calculate the normal vector of each TIN facet with ArcObjects, better in C sharp. Does anyone have an idea how I can achieve that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Yvan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 13 Jul 2014 16:35:54 GMT</pubDate>
    <dc:creator>YufanMiao</dc:creator>
    <dc:date>2014-07-13T16:35:54Z</dc:date>
    <item>
      <title>Calculating the normal vector of each TIN facet</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/calculating-the-normal-vector-of-each-tin-facet/m-p/45968#M1193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a set of 3d points with x, y, z values. I would like to make TIN model (Delaunay triangulation is also fine for me )out of these points and calculate the normal vector of each TIN facet with ArcObjects, better in C sharp. Does anyone have an idea how I can achieve that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Yvan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Jul 2014 16:35:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/calculating-the-normal-vector-of-each-tin-facet/m-p/45968#M1193</guid>
      <dc:creator>YufanMiao</dc:creator>
      <dc:date>2014-07-13T16:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating the normal vector of each TIN facet</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/calculating-the-normal-vector-of-each-tin-facet/m-p/45969#M1194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for create a tin from point:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c#" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14073228788118293" jivemacro_uid="_14073228788118293"&gt;
&lt;P&gt;&lt;SPAN class="rem"&gt;// Instantiate a new empty TIN.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;ITinEdit TinEdit = &lt;SPAN class="kwrd"&gt;new&lt;/SPAN&gt; TinClass();&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="rem"&gt;// Initialize the TIN with an envelope. The envelope's extent should be set large enough to &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="rem"&gt;// encompass all the data that will be added to the TIN. The envelope's spatial reference, if&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="rem"&gt;// if has one, will be used as the TIN's spatial reference. If it is not set, as in this case,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="rem"&gt;// the TIN's spatial reference will be unknown.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;IEnvelope Env = &lt;SPAN class="kwrd"&gt;new&lt;/SPAN&gt; EnvelopeClass();&lt;/P&gt;
&lt;P&gt;Env.PutCoords(0, 0, 10, 10);&lt;/P&gt;
&lt;P&gt;TinEdit.InitNew(Env);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="rem"&gt;// Add points to the TIN. These will become triangle nodes.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;IPoint Point = &lt;SPAN class="kwrd"&gt;new&lt;/SPAN&gt; PointClass();&lt;/P&gt;
&lt;P&gt;Point.X = 2;&lt;/P&gt;
&lt;P&gt;Point.Y = 2;&lt;/P&gt;
&lt;P&gt;Point.Z = 0;&lt;/P&gt;
&lt;P&gt;TinEdit.AddPointZ(Point, 0);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Point.Y = 7;&lt;/P&gt;
&lt;P&gt;TinEdit.AddPointZ(Point, 0);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Point.X = 7;&lt;/P&gt;
&lt;P&gt;TinEdit.AddPointZ(Point, 0);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="rem"&gt;// Save the TIN to disk. The overwrite parameter is used to indicate whether an existing&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="rem"&gt;// TIN with the same name is allowed to be replaced with this one.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="kwrd"&gt;object&lt;/SPAN&gt; overwrite = &lt;SPAN class="kwrd"&gt;true&lt;/SPAN&gt;;&lt;/P&gt;
&lt;P&gt;TinEdit.SaveAs(&lt;SPAN class="str"&gt;"c:\\data\\my_tin"&lt;/SPAN&gt;, &lt;SPAN class="kwrd"&gt;ref&lt;/SPAN&gt; overwrite);&lt;/P&gt;
&lt;/PRE&gt;&lt;PRE __default_attr="c#" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14073228496999983" jivemacro_uid="_14073228496999983"&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when you have tin you get triangle component and use &lt;A name="ITinTriangle.QueryNormal"&gt;&lt;/A&gt;ITinTriangle.QueryNormal ( &lt;A href="http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/index.html#//00250000098z000000" title="http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/index.html#//00250000098z000000"&gt;ArcObjects Help for .NET developers&lt;/A&gt;‌ )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2014 11:15:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/calculating-the-normal-vector-of-each-tin-facet/m-p/45969#M1194</guid>
      <dc:creator>nicogis</dc:creator>
      <dc:date>2014-08-06T11:15:25Z</dc:date>
    </item>
  </channel>
</rss>

