mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2024-12-29 16:29:40 +00:00
Assert on non-coplanar faces in vnf_slice
This commit is contained in:
parent
3e292c21cc
commit
1912aecdfa
1 changed files with 4 additions and 1 deletions
5
vnf.scad
5
vnf.scad
|
@ -746,7 +746,10 @@ function _slice_3dpolygons(polys, dir, cuts) =
|
|||
)
|
||||
flatten([for (poly = polys)
|
||||
let(
|
||||
plane = plane_from_polygon(poly),
|
||||
plane = plane_from_polygon(poly)
|
||||
)
|
||||
assert(plane,"Found non-coplanar face.")
|
||||
let(
|
||||
normal = point3d(plane),
|
||||
pnormal = normal - (normal*I[dir_ind])*I[dir_ind]
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue