Skip to content

Commit 2c27238

Browse files
committed
Adding an API to HullUtil to deal with just a list of points.
1 parent 147eeb0 commit 2c27238

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/main/java/eu/mihosoft/jcsg/ext/quickhull3d/HullUtil.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,15 @@ public class HullUtil {
2121
private HullUtil() {
2222
throw new AssertionError("Don't instantiate me!", null);
2323
}
24-
24+
/**
25+
* Hull.
26+
*
27+
* @param points the points
28+
* @return the csg
29+
*/
30+
public static CSG hull(List<eu.mihosoft.vvecmath.Vector3d> points) {
31+
return hull(points, new PropertyStorage());
32+
}
2533
public static CSG hull(List<eu.mihosoft.vvecmath.Vector3d> points, PropertyStorage storage) {
2634

2735
Point3d[] hullPoints = points.stream().map((vec) -> new Point3d(vec.x(), vec.y(), vec.z())).toArray(Point3d[]::new);

0 commit comments

Comments
 (0)