Skip to content

Commit

Permalink
Update JCSG
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Harrington committed Feb 12, 2025
1 parent c9a8770 commit 77c9ee6
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 @@ -498,7 +498,7 @@ public static void addObject(Object o, File source, ArrayList<CSG> cache) {

} else if (Polygon.class.isInstance(o)) {
Polygon poly = (Polygon) o;
List<Vertex> vertices = poly.vertices;
List<Vertex> vertices = poly.getVertices();
javafx.scene.paint.Color color = new javafx.scene.paint.Color(Math.random() * 0.5 + 0.5,
Math.random() * 0.5 + 0.5, Math.random() * 0.5 + 0.5, 1);
double stroke = 0.5;
Expand All @@ -519,7 +519,7 @@ public static void addObject(Object o, File source, ArrayList<CSG> cache) {
getBowlerStudio().addNode(current);
}
});
BowlerStudioController.setSelectedCsg(poly.vertices.get(0).pos);
BowlerStudioController.setSelectedCsg(poly.getVertices().get(0).pos);
return;
}else if (Vector3d.class.isInstance(o)) {
Vector3d v=(Vector3d)o;
Expand Down

0 comments on commit 77c9ee6

Please sign in to comment.