 find_nearest_pt(xloc,yloc,Mobj)">find_nearest_pt</a>(xselect(i,1),xselect(i,2),Mobj);
0074 <span class="keyword">end</span>;
0075 
0076 <span class="comment">% replot domain with snapped vertices</span>
0077 plot(x(ipt),y(ipt),<span class="string">'ro'</span>);
0078 
0079 <span class="comment">% add to mesh object</span>
0080 Mobj.nObs = Mobj.nObs + 1;
0081 Mobj.nObcNodes(Mobj.nObs) = npts;
0082 Mobj.obc_nodes(Mobj.nObs,1:npts) = ipt;
0083 Mobj.obc_name{Mobj.nObs} = ObcName;
0084 Mobj.obc_type(Mobj.nObs) =