Code for plotConZono3D returns multiple faces from one conZono when small planes are used to calculate the coPlanar portion of the function. Below is the code from plotConZono3D beginning at line 110.
% Continue if set is not a line segment in 3D indxPairs = [1 2; 1 3; 1 4; 2 3; 2 4; 3 4]; coPlanar = zeros(6,1); for i = 1:6 coPlanar(i) = abs(det([foundVerts(2,:)-foundVerts(1,:);extreme(indxPairs(i,1),:)-foundVerts(1,:);extreme(indxPairs(i,2),:)-foundVerts(1,:)])) <= 1e-6; end if min(coPlanar) == 1 % A planar set in 3D
Small tolerances causes points to be observed at 3-simplexes producing more faces than needed. increasing tolerance treshold mitigates the issue slightly.
Code for plotConZono3D returns multiple faces from one conZono when small planes are used to calculate the coPlanar portion of the function. Below is the code from plotConZono3D beginning at line 110.
% Continue if set is not a line segment in 3D indxPairs = [1 2; 1 3; 1 4; 2 3; 2 4; 3 4]; coPlanar = zeros(6,1); for i = 1:6 coPlanar(i) = abs(det([foundVerts(2,:)-foundVerts(1,:);extreme(indxPairs(i,1),:)-foundVerts(1,:);extreme(indxPairs(i,2),:)-foundVerts(1,:)])) <= 1e-6; end if min(coPlanar) == 1 % A planar set in 3DSmall tolerances causes points to be observed at 3-simplexes producing more faces than needed. increasing tolerance treshold mitigates the issue slightly.