Skip to content

Commit

Permalink
prints
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Harrington committed Feb 6, 2025
1 parent 4010626 commit f70a44e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/eu/mihosoft/vrl/v3d/Polygon.java
Original file line number Diff line number Diff line change
Expand Up @@ -215,14 +215,15 @@ public void pruneDuplicatePoints() {
this.vertices = pruneDuplicatePoints(vertices);
}

public static ArrayList<Vertex> pruneDuplicatePoints(List<Vertex> incoming) {
public ArrayList<Vertex> pruneDuplicatePoints(List<Vertex> incoming) {
// return incoming;
ArrayList<Vertex> newPoints = new ArrayList<Vertex>();
for (int i = 0; i < incoming.size(); i++) {
Vertex v = incoming.get(i);
boolean duplicate = false;
for (Vertex vx : newPoints) {
if (vx.pos.test(v.pos, Plane.getEPSILON())) {
System.out.println("Found duplicate "+this);
duplicate = true;
break;
}
Expand Down

0 comments on commit f70a44e

Please sign in to comment.