mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2025-01-28 23:39:36 +00:00
Fixed taper broken by fix for #1010
This commit is contained in:
parent
2d1f2b4384
commit
e4d864b0ad
1 changed files with 6 additions and 5 deletions
11
skin.scad
11
skin.scad
|
@ -3686,11 +3686,12 @@ function _textured_revolution(
|
|||
let(
|
||||
regions = !is_path(shape,2)? region_parts(shape) :
|
||||
closed? region_parts([shape]) :
|
||||
region_parts([
|
||||
[0,shape[0].y],
|
||||
each shape,
|
||||
[0,last(shape).y],
|
||||
]),
|
||||
let(
|
||||
clpoly = [[0,shape[0].y], each shape, [0,last(shape).y]],
|
||||
dpoly = deduplicate(clpoly),
|
||||
cwpoly = is_polygon_clockwise(dpoly) ? dpoly : reverse(dpoly)
|
||||
)
|
||||
[[ select(cwpoly,1,-2) ]],
|
||||
checks = [
|
||||
for (rgn=regions, path=rgn)
|
||||
assert(all(path, function(pt) pt.x>=0))
|
||||
|
|
Loading…
Reference in a new issue