Skip to content

Commit

Permalink
transmit the color information through the polygon
Browse files Browse the repository at this point in the history
  • Loading branch information
madhephaestus committed Jan 11, 2025
1 parent bfb4ac2 commit 86949d5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/eu/mihosoft/vrl/v3d/svg/SVGLoad.java
Original file line number Diff line number Diff line change
Expand Up @@ -651,6 +651,7 @@ private void loadSingle(String code, double resolution, Transform startingFrame,
poly.setHole(hole);
if (c != null)
colors.put(poly, c);
poly.setColor(c);
list.add(poly);

}
Expand Down Expand Up @@ -725,6 +726,10 @@ public HashMap<String, ArrayList<CSG>> extrudeLayers(double t, double resolution

return csgByLayers;
}

public Color getColor(Polygon p) {
return colors.get(p);
}

public ArrayList<CSG> extrude(double t, double resolution) throws IOException {

Expand Down

0 comments on commit 86949d5

Please sign in to comment.