upxo.meshing.gbconformant.d3v2p0.exploration_views module
Read-only island, orthogonal-section and exploded-grain viewers.
- upxo.meshing.gbconformant.d3v2p0.exploration_views.nested_island_view(surface, *, host_grain_id=None, host_opacity=0.08, island_opacity=1.0, cmap='tab20c', color_by='grain_id', show_edges=False, max_depth=None, show=True)[source]
Classify positive closed shell envelopes by strict containment.
Requires previously validated nonintersecting closed grain surfaces. Tests all child-envelope vertices after bounding-box pruning. Uses floating-point VTK containment, not an independent intersection or topology certificate. Disconnected grain components receive separate envelope records.
- upxo.meshing.gbconformant.d3v2p0.exploration_views.orthogonal_slice_view(labels, spacing, grid=None, *, source='voxels', cmap='tab20c', positions=None, opacity=1.0, show_edges=False, window_size=(1500, 750), show=True)[source]
Three axis-aligned cut planes, controlled by sliders updated on release.
- upxo.meshing.gbconformant.d3v2p0.exploration_views.exploded_grain_view(surface, *, grain_ids=None, factor=0.25, max_factor=2.0, cmap='tab20c', opacity=1.0, show_edges=False, show_outline=True, show=True)[source]
Translate display-only grain shells radially from the RVE centre.
Uses surface-vertex mean centres. Shared vertices are duplicated in the display, allowing shells to separate without changing source connectivity.