mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2025-01-04 03:09:45 +00:00
fix half_of() bug with regions
This commit is contained in:
parent
f494fbd90a
commit
0f8378091d
1 changed files with 1 additions and 1 deletions
|
@ -95,7 +95,7 @@ function half_of(p, v=UP, cp) =
|
||||||
assert(is_vector(v,2) || (is_vector(v,3) && v.z==0),"Must give 2-vector")
|
assert(is_vector(v,2) || (is_vector(v,3) && v.z==0),"Must give 2-vector")
|
||||||
assert(!all_zero(v), "Vector v must be nonzero")
|
assert(!all_zero(v), "Vector v must be nonzero")
|
||||||
let(
|
let(
|
||||||
bounds = pointlist_bounds(move(-cp,p)),
|
bounds = pointlist_bounds(move(-cp,flatten(force_region(p)))),
|
||||||
L = 2*max(flatten(bounds)),
|
L = 2*max(flatten(bounds)),
|
||||||
n = unit(v),
|
n = unit(v),
|
||||||
u = [-n.y,n.x],
|
u = [-n.y,n.x],
|
||||||
|
|
Loading…
Reference in a new issue