upxo.meshing.gbconformant.d3v2p0.adjacency_view module
Grain adjacency from actual shared triangular interfaces, with area weights.
- upxo.meshing.gbconformant.d3v2p0.adjacency_view.grain_adjacency(surface)[source]
Return all grain nodes and undirected positive-area interface edges.
RVE caps, point contacts and edge-only contacts do not introduce neighbours. Disconnected pieces sharing a grain ID are represented by one graph node.
- upxo.meshing.gbconformant.d3v2p0.adjacency_view.adjacency_graph_view(surface, *, focus_grain=None, hops=1, full_graph=False, minimum_area=0.0, max_nodes=150, layout='spring', seed=42, cmap='tab20c', node_size=400.0, show_labels=True, weight_edge_width=True, edge_width=1.5, surface_opacity=0.45, show_surface_edges=False, show=True, window_size=(1600, 800))[source]
Graph and corresponding 3D grain boundaries, using a shared grain-ID cmap.
Area filtering affects only the displayed graph. The returned full graph retains every grain and positive-area adjacency. Selection is not silently truncated: an oversized display asks for fewer hops or a higher node limit.