upxo.pxtal.geogs module

Created on Thu Jul 11 21:25:32 2024

@author: Dr. Sunil Anandatheertha

class upxo.pxtal.geogs.geogs2d(bounds, mslines2d)[source]

Bases: object

2D geometric grain structure from multi-line grain boundaries.

Lightweight container for grains defined by multi-segment lines (mslines2d) within a bounding box. Supports closure checks and related geometry ops; tessellation / orientation fields may be filled by callers. Distinct from pixelated MCGS slices and from full VTGS classes (gtess2d / geotess2d).

bounds

Domain bounding box.

mslines2d

Grain ID → multi-line boundary geometry.

Type:

dict

gid

Grain IDs (keys of mslines2d).

Type:

list

grains, neigh_gid, jnp, ea, tess

Optional grain objects, neighbours, junctions, orientations, tess link.

bounds
mslines2d
gid
check_closures()[source]

Check whether each grain boundary forms a closed loop.

jnp
grains
neigh_gid
ea
tess