upxo.ggrowth.make3d module
Helpers to build 3D voxel volumes from stacks of 2D MC / grain-structure slices.
Not a substitute for full 3D Potts simulation (mcgs with dim=3). Used to
reconstruct a 3D state or LFI array and a PyVista grid from temporal or spatial
2D stacks for visualisation and analysis.
Main type: voxel_from_pixel — assemble sstack / gsstack into 3D
s / lfi and pvgrid.
- class upxo.ggrowth.make3d.voxel_from_pixel(STACK, meta_dict={'creation': 'from_sstack'})[source]
Bases:
objectAssemble a 3D voxel volume from stacked 2D MC / GS slices.
Not a full 3D Potts simulation (use
mcgswith dashboarddim=3). Stacks temporal or spatial 2D state / grain-structure maps into 3Ds/lfiarrays and a PyVista grid for visualisation and analysis.Constructors
from_sstack(sstack)— stack of state arraysfrom_gsstack(gsstack)— stack of UPXO GS objects (usesgs.s)from_gsgen(...)— generate slices via MCGS then stack
- s
Reconstructed 3D state volume.
- Type:
np.ndarray
- lfi
3D labelled feature / grain ID volume (LFI; analogous to MCGS
lgi).- Type:
np.ndarray
- pvgrid
PyVista uniform grid for 3D visualisation.
- meta_dict
- gsstack
- sstack
- classmethod from_gsgen(input_dashboard=None, meta_dict={}, retain_gsdb=False)[source]
Construct this instance from gsgen.
- s
- q
- lfi
- pvgrid
- fid
- s_fid
- fid_s
- coords
- rep_coords