mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-08-11 16:34:14 +02:00
Fix for issue #180. 3D stroke works again.
This commit is contained in:
@@ -173,7 +173,7 @@ module stroke(
|
|||||||
} else {
|
} else {
|
||||||
translate(path[0]) sphere(d=width[0]);
|
translate(path[0]) sphere(d=width[0]);
|
||||||
}
|
}
|
||||||
} else if (len(path[0]) == 2) {
|
} else {
|
||||||
spos = path_pos_from_start(path,trim1,closed=false);
|
spos = path_pos_from_start(path,trim1,closed=false);
|
||||||
epos = path_pos_from_end(path,trim2,closed=false);
|
epos = path_pos_from_end(path,trim2,closed=false);
|
||||||
path2 = path_subselect(path, spos[0], spos[1], epos[0], epos[1]);
|
path2 = path_subselect(path, spos[0], spos[1], epos[0], epos[1]);
|
||||||
@@ -185,6 +185,8 @@ module stroke(
|
|||||||
|
|
||||||
start_vec = select(path,0) - select(path,1);
|
start_vec = select(path,0) - select(path,1);
|
||||||
end_vec = select(path,-1) - select(path,-2);
|
end_vec = select(path,-1) - select(path,-2);
|
||||||
|
|
||||||
|
if (len(path[0]) == 2) {
|
||||||
// Straight segments
|
// Straight segments
|
||||||
for (i = idx(path2,end=-2)) {
|
for (i = idx(path2,end=-2)) {
|
||||||
seg = select(path2,i,i+1);
|
seg = select(path2,i,i+1);
|
||||||
@@ -324,6 +326,7 @@ module stroke(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -8,7 +8,7 @@
|
|||||||
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
|
||||||
BOSL_VERSION = [2,0,334];
|
BOSL_VERSION = [2,0,335];
|
||||||
|
|
||||||
|
|
||||||
// Section: BOSL Library Version Functions
|
// Section: BOSL Library Version Functions
|
||||||
|
Reference in New Issue
Block a user