Fixed taper broken by fix for #1010

This commit is contained in:
Revar Desmera 2023-03-08 05:43:54 -08:00
parent 2d1f2b4384
commit e4d864b0ad

View file

@ -3686,11 +3686,12 @@ function _textured_revolution(
let( let(
regions = !is_path(shape,2)? region_parts(shape) : regions = !is_path(shape,2)? region_parts(shape) :
closed? region_parts([shape]) : closed? region_parts([shape]) :
region_parts([ let(
[0,shape[0].y], clpoly = [[0,shape[0].y], each shape, [0,last(shape).y]],
each shape, dpoly = deduplicate(clpoly),
[0,last(shape).y], cwpoly = is_polygon_clockwise(dpoly) ? dpoly : reverse(dpoly)
]), )
[[ select(cwpoly,1,-2) ]],
checks = [ checks = [
for (rgn=regions, path=rgn) for (rgn=regions, path=rgn)
assert(all(path, function(pt) pt.x>=0)) assert(all(path, function(pt) pt.x>=0))