mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2025-01-01 09:49:45 +00:00
remove echos
This commit is contained in:
parent
d957f556d6
commit
6e61a6567f
1 changed files with 1 additions and 3 deletions
|
@ -1599,7 +1599,6 @@ function point_in_polygon(point, poly, nonzero=false, eps=EPSILON) =
|
||||||
// vnf_wireframe(vnf_tri, d=.15);
|
// vnf_wireframe(vnf_tri, d=.15);
|
||||||
|
|
||||||
function polygon_triangulate(poly, ind, eps=EPSILON) =
|
function polygon_triangulate(poly, ind, eps=EPSILON) =
|
||||||
let(a=echo(poly=poly)echo(ind=ind))
|
|
||||||
assert(is_path(poly), "Polygon `poly` should be a list of 2d or 3d points")
|
assert(is_path(poly), "Polygon `poly` should be a list of 2d or 3d points")
|
||||||
assert(is_undef(ind)
|
assert(is_undef(ind)
|
||||||
|| (is_vector(ind) && min(ind)>=0 && max(ind)<len(poly) ),
|
|| (is_vector(ind) && min(ind)>=0 && max(ind)<len(poly) ),
|
||||||
|
@ -1611,8 +1610,7 @@ function polygon_triangulate(poly, ind, eps=EPSILON) =
|
||||||
? // represents the polygon projection on its plane as a 2d polygon
|
? // represents the polygon projection on its plane as a 2d polygon
|
||||||
let(
|
let(
|
||||||
pts = select(poly,ind),
|
pts = select(poly,ind),
|
||||||
nrm = polygon_normal(pts),
|
nrm = polygon_normal(pts)
|
||||||
a=echo(pts=pts)echo(nrm=nrm)
|
|
||||||
)
|
)
|
||||||
// here, instead of an error, it might return [] or undef
|
// here, instead of an error, it might return [] or undef
|
||||||
assert( nrm!=undef,
|
assert( nrm!=undef,
|
||||||
|
|
Loading…
Reference in a new issue