fix triangle bug in hull_points() with fast=true

This commit is contained in:
Adrian Mariano 2023-07-04 11:27:30 -04:00
parent 806e4b477d
commit ba78c0d062

View file

@ -2387,6 +2387,8 @@ module hull_points(points, fast=false) {
attachable(){ attachable(){
if (len(points[0])==2) if (len(points[0])==2)
hull() polygon(points=points); hull() polygon(points=points);
else if (len(points)==3)
polyhedron(points=points, faces=[[0,1,2]]);
else { else {
if (fast) { if (fast) {
extra = len(points)%3; extra = len(points)%3;