mtex-toolbox / mtex

MTEX is a free Matlab toolbox for quantitative texture analysis. Homepage:
http://mtex-toolbox.github.io/
GNU General Public License v2.0
274 stars 182 forks source link

Seperate sub-routing for sub-boundary calculations #2052

Open vedadb opened 5 months ago

vedadb commented 5 months ago

For a sub-boundary calculation, a full grain-reconstruction is (in theory at least) unnecessary if large-angle grain-boundaries have already been reconstructed. It would make sense to create a subroutine for sub-grain boundary calculations not to have to pay this overhead, when studying effect of changing sub-grainboundary treshold angles.

E.g. grains.innerBoundary = calcSubBoundary(grains/ebsd, threshold);

Since vertices and edges (V,F) are already saved in the grain2d object (right?) The incidence matrices can be re-created and the sub-boundary can be re-calculated without paying price of voronoi tesselation.