Skip to content

Commit

Permalink
increase tolerance to avoid a bug in fundamentalRegion
Browse files Browse the repository at this point in the history
  • Loading branch information
ralfHielscher committed Mar 8, 2025
1 parent 3729cf0 commit 9896b7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion geometry/@symmetry/symmetry.m
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
s.id = id;
if ~isempty(rot), s.rot = rot; end

isPerpZ = isnull(dot(rot.axis,zvector)) & ~isnull(rot.angle);
isPerpZ = isnull(dot(rot.axis,zvector),1e-4) & ~isnull(rot.angle,1e-4);

if any(isPerpZ(:))
s.multiplicityPerpZ = round(2*pi/min(abs(angle(rot(isPerpZ)))));
Expand Down

0 comments on commit 9896b7e

Please sign in to comment.