principalComponents edit page

returns the principalcomponents of grain polygon, without Holes

## Input

 grains grain2d

## Output

 omega angle of the ellipse a length largest axis b length smallest axis

## Options

 area scale a,b such that the corresponding ellipse has the same area as the grain (default) boundary scale a,b such that the corresponding ellipse has the boundary length as the grain