mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2024-12-29 16:29:40 +00:00
Fix for Issue #1010: rotate_sweep with texture VNF produces reversed faces and reversed texture
This commit is contained in:
parent
e3d4de3e1d
commit
2d1f2b4384
1 changed files with 7 additions and 3 deletions
10
skin.scad
10
skin.scad
|
@ -3685,8 +3685,12 @@ function _textured_revolution(
|
||||||
assert(in_list(atype, _ANCHOR_TYPES), "Anchor type must be \"hull\" or \"intersect\"")
|
assert(in_list(atype, _ANCHOR_TYPES), "Anchor type must be \"hull\" or \"intersect\"")
|
||||||
let(
|
let(
|
||||||
regions = !is_path(shape,2)? region_parts(shape) :
|
regions = !is_path(shape,2)? region_parts(shape) :
|
||||||
shape[0].y <= last(shape).y? [[reverse(shape)]] :
|
closed? region_parts([shape]) :
|
||||||
[[shape]],
|
region_parts([
|
||||||
|
[0,shape[0].y],
|
||||||
|
each shape,
|
||||||
|
[0,last(shape).y],
|
||||||
|
]),
|
||||||
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))
|
||||||
|
@ -3747,7 +3751,7 @@ function _textured_revolution(
|
||||||
is_path(taper,2)? let(
|
is_path(taper,2)? let(
|
||||||
retaper = [
|
retaper = [
|
||||||
for (t=taper)
|
for (t=taper)
|
||||||
assert(t[0]>=0 && t[0]<=100, "taper lookup indices must be betweem 0 and 100 inclusive.")
|
assert(t[0]>=0 && t[0]<=100, "taper lookup indices must be between 0 and 100 inclusive.")
|
||||||
[t[0]/100, t[1]]
|
[t[0]/100, t[1]]
|
||||||
],
|
],
|
||||||
taperout = [[-1,retaper[0][1]], each retaper, [2,last(retaper)[1]]]
|
taperout = [[-1,retaper[0][1]], each retaper, [2,last(retaper)[1]]]
|
||||||
|
|
Loading…
Reference in a new issue