Skip to content

Commit

Permalink
Fixed possible other wall issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
lazersos committed Jan 19, 2024
1 parent 33e337c commit 354762d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions WALL/wall_clean.m
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,14 @@
else
wall_out = wall_in;
end
% Area Check
area = sum(wall_out.FN.^2);
toosmall = find(area<=0);
% Inverse denom check
toosmall = [toosmall find(wall_out.invDenom == Inf)];
toosmall = unique(toosmall);
if ~isempty(toosmall)
disp(strcat('Found ',num2str(length(toosmall),' %i'),' bad triangles'));
wall_out.faces(:,toosmall)=[];
wall_out.A(:,toosmall)=[];
wall_out.V0(:,toosmall)=[];
Expand Down

0 comments on commit 354762d

Please sign in to comment.