Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/distmesh2d.m
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
bars=[t(:,[1,2]);t(:,[1,3]);t(:,[2,3])]; % Interior bars duplicated
bars=unique(sort(bars,2),'rows'); % Bars as node pairs
% 5. Graphical output of the current mesh
cla,patch('vertices',p,'faces',t,'edgecol','k','facecol',[.8,.9,1]);
cla,patch('Vertices',p,'Faces',t,'EdgeColor','k','FaceColor',[.8,.9,1]);
drawnow
end

Expand All @@ -98,7 +98,7 @@
L0=hbars*Fscale*sqrt(sum(L.^2)/sum(hbars.^2)); % L0 = Desired lengths

% Density control - remove points that are too close
if mod(count,densityctrlfreq)==0 & any(L0>2*L)
if mod(count,densityctrlfreq)==0 && any(L0>2*L)
p(setdiff(reshape(bars(L0>2*L,:),[],1),1:nfix),:)=[];
N=size(p,1); pold=inf;
continue;
Expand Down
4 changes: 2 additions & 2 deletions src/simpplot.m
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ function simpplot(p,t,expr,bcol,icol,nodes,tris)
dim=size(p,2);
switch dim
case 2
if nargin<4 | isempty(bcol), bcol=[.8,.9,1]; end
if nargin<5 | isempty(icol), icol=[0,0,0]; end
if nargin<4 || isempty(bcol), bcol=[.8,.9,1]; end
if nargin<5 || isempty(icol), icol=[0,0,0]; end
if nargin<6, nodes=0; end
if nargin<7, tris=0; end

Expand Down