Mesh split one direction - warp/weft

Hello
I would like to code a component that makes a mesh growth but faces split above certain length only in one direction (like using warp/weft). Does anyone know any way of sorting edges based on warp/weft incode?