upxo.xtal.mcgrain3d_definitions module

class upxo.xtal.mcgrain3d_definitions.Grain3d[source]

Bases: object

loc
position
coords
gbloc
xmin
xmax
ymin
ymax
brec
bbox_bounds
bbox_ex_bounds
loctree
coordtree
bbox
bbox_ex
neigh
npixels
skprop
s
sn
gid
gind
gbid
gbind
gbvert
gbsegs
gbsegs_geo
precipitates
grain_core
gb_zone
subgrains
paps
blocks
laths
control_points_mesh
xstruc
ea
q
qref
earef
eapert
introduce_orientation_bands
texcomp
classmethod from_mask(oris=None, **kwargs)[source]

Construct this instance from mask.

classmethod from_shape(grid=None, ref_loc=None, shape=None, size_def=None)[source]

Construct this instance from shape.

classmethod from_partition(grain_to_partition=None, ref_loc=None, normal=None)[source]

Construct this instance from partition.

classmethod from_surfaces(slist=None, sconnectivity=None)[source]

Construct this instance from surfaces.

classmethod from_point_cloud(point_cloud=None)[source]

Construct this instance from point cloud.

classmethod from_convex_hull(ch=None)[source]

Construct this instance from convex hull.

classmethod from_vef(vertices=None, edges=None, faces=None)[source]

Construct this instance from vef.

property centroid

Centroid.

property volume

Volume.

property gbsarea

Gbsarea.

property meanori

Meanori.

property eqd

Eqd.

property abc

Abc.

property surface_area_to_volume_ratio

Surface area to volume ratio.

extract_boundary_voxels()[source]

Extract boundary voxels.

identify_boundary_surface_segments()[source]

Identify boundary surface segments.

identify_boundary_surface_vertices()[source]

Identify boundary surface vertices.

identify_boundary_surface_junction_points()[source]

Identify boundary surface junction points.

identify_boundary_surface_segment_edges()[source]

Identify boundary surface segment edges.

deflate_boundary_surface(np=1)[source]

Deflate boundary surface.

make_boundary_zone(np=2)[source]

Build and return boundary zone.

characterize_boundary_zone_inner_surface()[source]

Characterize boundary zone inner surface.

distirbute_grain_boundary_precipitates(shape=None, size=None)[source]

Distirbute grain boundary precipitates.

distribute_precipitates(shape=None, size=None)[source]

Distribute precipitates.

gbsegs_pre
xgid