upxo.pxtal.fm_steel_3d.mesh_rescaling module
Rescaled views of a pipeline state, for meshing at another resolution.
mesh_state_for_scale returns the state itself for a factor of 1 and a
read-through RescaledMeshState otherwise. The source state is never
modified, so a series of exports at different factors always starts from the
same stored grid.
- class upxo.pxtal.fm_steel_3d.mesh_rescaling.RescaledMeshState(source, scale_factor: float)[source]
Bases:
objectRead-through view of a pipeline state with rescaled spatial data.
The source state is never modified. Non-spatial hierarchy/orientation attributes are delegated to it, while the voxel grid and every voxel- location dictionary consumed by the mesh exporter are rebuilt at the requested resolution.