Skip to content

Multiple Faces returned from one conZono #19

@NoOneInteresting-js

Description

@NoOneInteresting-js

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions