upxo.meshing.gbconformant.d3v2p0.facet_angles module

Detect almost closed wedges between facets meeting along a shared edge.

upxo.meshing.gbconformant.d3v2p0.facet_angles.small_facet_angles(points, triangles, minimum_degrees=0.1)[source]

Return facet pairs and opening angles below the requested threshold.

Uses opposite-vertex rays projected perpendicular to each shared edge. Coplanar neighbouring triangles on opposite sides have a valid 180 degree opening; coincident same-side sheets have zero opening. Junction edges with three or more incident facets are checked pairwise as well.

upxo.meshing.gbconformant.d3v2p0.facet_angles.edge_openings(points, triangles, edges, edge_triangles)[source]

Smallest pairwise opening (degrees) at each given edge.

edges: iterable of (a, b) node pairs; edge_triangles: mapping from the sorted pair to the triangle rows sharing that edge. Edges with fewer than two triangles give 180.

upxo.meshing.gbconformant.d3v2p0.facet_angles.sharpens(before, after, limit, tolerance=1e-06)[source]

True where an opening breaks the no-sharpening rule: below limit it may not decrease, at or above limit it may not fall below it.