mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-01-16 13:50:23 +01:00
fix triangle bug in hull_points() with fast=true
This commit is contained in:
parent
806e4b477d
commit
ba78c0d062
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user