Method: RADMesh::STL#check_facets_exact!
- Defined in:
- lib/radmesh/stl.rb
#check_facets_exact! ⇒ STL
There is also the same method without ! working as expected. It is not in this reference guide, because it is automatically generated.
Check each facet of the mesh for its 3 neighbors.
Since each facet is a triangle, there should be exactly 3 neighboring facets for every facet in the mesh. Since the mesh defines a solid, there should be no unconnected edges in the mesh. When this option is specified, the 3 neighbors of every facet are searched for and, if found, the neighbors are added to an internal list that keeps track of the neighbors of each facet. A facet is only considered a neighbor if two of its vertices EXACTLY match two of the vertices of another facet. That means that there must be 0 difference between the x, y, and z coordinates of the two vertices of the first facet and the two vertices of the second facet.
Degenerate facets (facets with two or more vertices equal to each other) are removed during the exact check. No other changes are made to the mesh.
195 196 197 198 199 |
# File 'lib/radmesh/stl.rb', line 195 def check_facets_exact! CADMesh.stl_check_facets_exact(@stl_ptr) @exact = true self end |