File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed
Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 1717
1818newloop = curveloop ;
1919
20+ if (~isnan(curveloop(end )))
21+ curveloop(end + 1 ) = nan ;
22+ end
23+
2024loopend = find(isnan(curveloop ));
21- if (length(loopend ) > 1 )
25+ if (length(loopend ) > 1 )
2226 seglen = [loopend(1 ), diff(loopend )];
2327 [maxlen , maxloc ] = max(seglen );
2428 loopend = [0 loopend ];
25- newloop = curveloop((loopend(maxloc )+ 1 ): (loopend(maxloc + 1 )- maxloc ));
29+ newloop = curveloop((loopend(maxloc ) + 1 ): (loopend(maxloc + 1 ) - maxloc ));
2630end
2731newloop(isnan(newloop )) = [];
Original file line number Diff line number Diff line change 3838% -- this function is part of iso2mesh toolbox (http://iso2mesh.sf.net)
3939%
4040
41- opt = varargin2struct(varargin{: })
41+ opt = varargin2struct(varargin{: });
4242
4343if (nargin == 3 && length(xi ) == 1 && xi > 0 )
4444 mn = min(node );
6565 clf(hf );
6666end
6767
68- if (jsonopt(' edge' , 0 , opt ))
68+ if (jsonopt(' edge' , 0 , opt ))
6969 try
70- set(gcf , ' GraphicsSmoothing' , ' off' )
70+ set(gcf , ' GraphicsSmoothing' , ' off' );
7171 catch
7272 end
7373end
You can’t perform that action at this time.
0 commit comments