Skip to content

Commit

Permalink
Better name for edge validity test
Browse files Browse the repository at this point in the history
  • Loading branch information
vesameskanen committed Mar 9, 2023
1 parent cc54e96 commit 05c07ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ public void addAreaVertex(
int added = 0;

for (IntersectionVertex v : visibilityVertices) {
if (!v.checkEdges()) {
if (!v.hasEdges()) {
continue;
}
LineString newGeometry = GEOMETRY_FACTORY.createLineString(
Expand All @@ -591,7 +591,7 @@ public void addAreaVertex(
// area calculation to be done after stop linking
if (added == 0) {
for (IntersectionVertex v : visibilityVertices) {
if (!v.checkEdges()) {
if (!v.hasEdges()) {
continue;
}
createSegments(newVertex, v, edgeList, areas, scope, tempEdges);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public int getDegreeIn() {
return incoming.length;
}

public boolean checkEdges() {
public boolean hasEdges() {
if (outgoing == null || incoming == null) {
return false;
}
Expand Down

0 comments on commit 05c07ae

Please sign in to comment.