mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2024-12-29 16:29:40 +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(!all_zero(v), "Vector v must be nonzero")
|
||||
let(
|
||||
bounds = pointlist_bounds(move(-cp,p)),
|
||||
bounds = pointlist_bounds(move(-cp,flatten(force_region(p)))),
|
||||
L = 2*max(flatten(bounds)),
|
||||
n = unit(v),
|
||||
u = [-n.y,n.x],
|
||||
|
|
Loading…
Reference in a new issue