perimeter edit page

boundary length per grain including holes

Syntax

grains.boundary.perimeter
% include subgrain boundaries
grains.boundary.perimeter + grains.innerBoundary.perimeter
gB = grains.boundary('Iron','Iron');
% length of low angle boundary per grain
gB(gB.misorientation.angle < 15*degree).perimeter
% length of special boundaries per grain
gB(gB.isTwinning(CSL(3))).perimeter

Input

gb grainBoundary

Output

peri list of grain perimeter sorted by grain id

See also

Grain2d.perimeter