mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2025-01-01 09:49:45 +00:00
Fix small bug in hull3d_faces
This commit is contained in:
parent
41616872fe
commit
b8dee94e00
1 changed files with 2 additions and 2 deletions
|
@ -168,7 +168,7 @@ function hull3d_faces(points) =
|
|||
b = tri[1],
|
||||
c = tri[2],
|
||||
plane = plane3pt_indexed(points, a, b, c),
|
||||
d = _find_first_noncoplanar(plane, points, 3)
|
||||
d = _find_first_noncoplanar(plane, points)
|
||||
)
|
||||
d == len(points)
|
||||
? /* all coplanar*/
|
||||
|
@ -239,7 +239,7 @@ function _find_conflicts(point, planes) = [
|
|||
];
|
||||
|
||||
|
||||
function _find_first_noncoplanar(plane, points, i) =
|
||||
function _find_first_noncoplanar(plane, points, i=0) =
|
||||
(i >= len(points) || !points_on_plane([points[i]],plane))? i :
|
||||
_find_first_noncoplanar(plane, points, i+1);
|
||||
|
||||
|
|
Loading…
Reference in a new issue