# File structures/Boundaries.rb, line 174 def iterateRegionPoint(startPoint, mesh) startTri = nil startI = 0 while (startTri == nil) t = mesh.cells[2].keys[startI] startI += 1 arr = mesh.locatePoint(startPoint,t,true) unless ( arr == nil || arr[0] == 2 || arr[0]==0) startTri = arr[1] end if (startI >= mesh.cells[2].keys.length) puts "Can't locate initial point to tag region." end end #puts "Start tagging at #{startTri}" mesh.iterateRegion(startTri) {|t| yield t } end