"keyword">if</span>(npts == 0)
0062     fprintf(<span class="string">'you didn''t select any points'</span>)
0063     fprintf([<span class="string">'end   : '</span> subname <span class="string">'\n'</span>])
0064     <span class="keyword">return</span>
0065 <span class="keyword">end</span>;
0066 fprintf(<span class="string">'you selected %d points\n'</span>,npts)
0067 
0068 <span class="comment">% snap to the closest vertices</span>
0069 <span class="keyword">for</span> i=1:npts
0070     [ipt(i),dist] = fi