mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-08-07 19:17:00 +02:00
Fixed processing of regions in offset()
This commit is contained in:
@@ -976,10 +976,10 @@ function offset(
|
||||
rgn = exclusive_or([for (p = path) [p]]),
|
||||
pathlist = sort(idx=0,[
|
||||
for (i=[0:1:len(rgn)-1]) [
|
||||
sum([
|
||||
sum(concat([0],[
|
||||
for (j=[0:1:len(rgn)-1]) if (i!=j)
|
||||
point_in_polygon(rgn[i][0],rgn[j])>=0? 1 : 0
|
||||
]),
|
||||
])),
|
||||
rgn[i]
|
||||
]
|
||||
])
|
||||
|
Reference in New Issue
Block a user