upxo.meshing.gbconformant.d3v2p0.thickness_view module

Sampled normal-ray thickness and boundary spacing diagnostics (not guards).

upxo.meshing.gbconformant.d3v2p0.thickness_view.sample_thickness_separation(surface, grain_id, *, max_samples=2000, seed=42, ray_offset=None, max_distance=None)[source]

Measure inward thickness and outward boundary-sheet spacing at centroids.

The inward first hit uses the selected grain’s complete closed boundary. The outward first hit uses the full shared surface complex. Outward rays from RVE caps are undefined and not measured. No-hit results remain NaN. These normal-ray distances are not Euclidean minimum thickness/separation, medial-axis thickness, or evidence of empty gaps between conforming grains.

upxo.meshing.gbconformant.d3v2p0.thickness_view.thickness_separation_view(surface, grain_id, *, max_samples=2000, seed=42, ray_offset=None, max_distance=None, cmap='viridis', limits=None, context_opacity=0.12, map_opacity=1.0, show_edges=False, show_lines=True, line_color='red', line_width=3.0, show_points=False, point_color='black', point_size=10.0, window_size=(1500, 700), show=True)[source]

Two linked sampled surface maps; grey areas have no displayed measurement.