n class="comment">%    having a resolution of res.</span>
0008 <span class="comment">%</span>
0009 <span class="comment">% INPUT</span>
0010 <span class="comment">%    lx        :  domain length in x-direction</span>
0011 <span class="comment">%    ly        :  domain length in y-direction</span>
0012 <span class="comment">%    res       :  target triangle edge length in same units as lx,ly</span>
0013 <span class="comment">%    cornermod :  ensure no cell shares a boundary on two of the rectangles edges</s