<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[SoliForum - 3D Printing Community — The unit vector in the .stl file]]></title>
		<link>https://www.soliforum.com/topic/1817/the-unit-vector-in-the-stl-file/</link>
		<atom:link href="https://www.soliforum.com/feed/rss/topic/1817/" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in The unit vector in the .stl file.]]></description>
		<lastBuildDate>Sat, 23 Mar 2013 04:12:36 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[The unit vector in the .stl file]]></title>
			<link>https://www.soliforum.com/post/17389/#p17389</link>
			<description><![CDATA[<p>Hello,</p><p>I am writing the code to convert a mesh of square surfaces to a .stl file. I am using 2 triangles per square and have been successful in generating .stl files.</p><p>The problem is that each facet in my .stl file looks like this:</p><div class="codebox"><pre><code>    facet normal 
        outer loop
            vertex 0.0390000008 0.0280000009 0.0500000007
            vertex 0.0399999991 0.0280000009 0.0500000007
            vertex 0.0390000008 0.0280000009 0.0489999987
        endloop 
    endfacet </code></pre></div><p>There is no unit normal specified, with the outer surface just selected using the right hand rule.</p><p>What is this unit normal exactly supposed to be?<br />Is it a vector with origin at the triangle&#039;s centroid, of magnitude 1, that points in the direction of the positive normal to the plane of the triangle?<br />Also, since it&#039;s a floating point number, does any parser just select the normal that is closest to what is described by this vector?</p><p>I have imported models to Solidworks and Blender and have not had issues with not specifying the normal vector.</p>]]></description>
			<author><![CDATA[null@example.com (daniel-s)]]></author>
			<pubDate>Sat, 23 Mar 2013 04:12:36 +0000</pubDate>
			<guid>https://www.soliforum.com/post/17389/#p17389</guid>
		</item>
	</channel>
</rss>
