From 2c272385e15873b4c3e3f160704013e116d9fb59 Mon Sep 17 00:00:00 2001 From: Kevin Harrington Date: Fri, 21 Jul 2017 14:43:38 -0400 Subject: [PATCH] Adding an API to HullUtil to deal with just a list of points. --- .../eu/mihosoft/jcsg/ext/quickhull3d/HullUtil.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/main/java/eu/mihosoft/jcsg/ext/quickhull3d/HullUtil.java b/src/main/java/eu/mihosoft/jcsg/ext/quickhull3d/HullUtil.java index c301e5ac..7b646d14 100644 --- a/src/main/java/eu/mihosoft/jcsg/ext/quickhull3d/HullUtil.java +++ b/src/main/java/eu/mihosoft/jcsg/ext/quickhull3d/HullUtil.java @@ -21,7 +21,15 @@ public class HullUtil { private HullUtil() { throw new AssertionError("Don't instantiate me!", null); } - + /** + * Hull. + * + * @param points the points + * @return the csg + */ + public static CSG hull(List points) { + return hull(points, new PropertyStorage()); + } public static CSG hull(List points, PropertyStorage storage) { Point3d[] hullPoints = points.stream().map((vec) -> new Point3d(vec.x(), vec.y(), vec.z())).toArray(Point3d[]::new);