Contrib snapEdgeDescription

From OpenFOAMWiki
Revision as of 17:10, 7 September 2010 by Niklas (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The idea behind snapEdge is pretty straightforward and I will try to describe it below.

The first step is to extract the features from the STL. An STL is just a collection of triangles and every edge thus has 2 triangles associated to it. If it doesnt, it is a an edge and will be added to the feature lines. Otherwise the dot product of the face normals is calculated (and normalized) If it is equal to 1 it means that the two planes are parallel and if it is equal to 0 the planes are perpendicular. The feaureAngle decides which features should be included in the snapping.