Skip to content

Commit 91abd7b

Browse files
committed
use the final polygon as the end cap
1 parent cb61127 commit 91abd7b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/eu/mihosoft/vrl/v3d/Extrude.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@ public static CSG sweep(Polygon p, Transform increment, Transform offset, int st
595595
prev = step;
596596
newPolygons.addAll(parts);
597597
}
598-
Polygon polygon2 = offsetP.transformed(provider.get(1, steps)).transformed(running);
598+
Polygon polygon2 = prev.clone();
599599
List<Polygon> topPolygons = PolygonUtil.concaveToConvex(polygon2.flipped());
600600
newPolygons.addAll(topPolygons);
601601

0 commit comments

Comments
 (0)