Skip to content

Commit d0e54a9

Browse files
committed
use the new points api for making the hull
1 parent 6196ad1 commit d0e54a9

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

src/main/java/eu/mihosoft/vrl/v3d/ext/quickhull3d/HullUtil.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,9 @@ public static CSG hull(List<?> points) {
4444
return hull(plist, new PropertyStorage());
4545
}
4646
if (CSG.class.isInstance(points.get(0))) {
47-
for (Object csg : points) {
48-
CSG csg2 = (CSG) csg;
49-
for (int i = 0; i < csg2.getNumberOfTriangles() * 3; i++) {
50-
plist.add(csg2.vertexAt(i));
51-
}
47+
for (Object c : points) {
48+
CSG csg = (CSG) c;
49+
plist.addAll(csg.getPoints());
5250
}
5351
return hull(plist, new PropertyStorage());
5452
}

0 commit comments

Comments
 (0)