Index: ../trunk-jpl/src/m/mesh/ProfileProjectOntoMesh.m =================================================================== --- ../trunk-jpl/src/m/mesh/ProfileProjectOntoMesh.m (revision 14332) +++ ../trunk-jpl/src/m/mesh/ProfileProjectOntoMesh.m (revision 14333) @@ -52,7 +52,7 @@ % eliminate nodes that don't fall in any element % (profile may start and/or end externally and/or cross holes in the model) -ind=find(node_in_element(:,9)>0); +ind=find(node_in_element(:,end)>0); newx=newx(ind,:); newy=newy(ind,:); node_in_element=node_in_element(ind,:);