Message 1 of 3
Convex Hull for vertical points list

Not applicable
09-08-2020
05:54 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi Everyone,
Recently I'm using the function ConvexHull of Jeremy in this link:
https://thebuildingcoder.typepad.com/blog/2016/08/online-revit-api-docs-and-convex-hull.html
It worked fine with the horizontal points to create a floor. But the problem is, if I have a bunch of vertical points, it seems not work and stucked in a infinity loop.
XYZ y1 = XYZ.Zero;
XYZ y2 = new XYZ(5, 0, 0);
XYZ y3 = new XYZ(5, 0, 5);
XYZ y4 = new XYZ(0, 0, 5);
List<XYZ> points = new List<XYZ> { y3, y1, y4, y2 };
List<XYZ> convexPoints = Util.ConvexHull(points);
Does anyone have idea about creating a Convex Hull for vertical points or any points in 3D?
Thank you.