Closed FObermaier closed 1 year ago
Good point, thanks.
Even better I think is to not create an empty BitSet if isFreeRing
is null, but to do this instead:
boolean isFree = isFreeRing == null ? false : isFreeRing.get(i);
edges.add(new Edge(line, isFree, areaTolerance));
If you agree, do you want to update this PR?
The instance field
isFreeRing
refers to the geometry in the instance fieldinputLines
. It has nothing to do with the geometry in the instance fieldconstraintLines
and thus should not be applied to it.