1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-09-01 18:54:39 +02:00

provided supports for $fa, $fs, $fn

This commit is contained in:
Justin Lin
2017-03-23 10:24:05 +08:00
parent f4fba0fbe9
commit da44780021

View File

@@ -11,7 +11,7 @@
* *
**/ **/
module polyline3d(points, thickness, startingStyle = "CAP_CIRCLE", endingStyle = "CAP_CIRCLE", fn = 24) { module polyline3d(points, thickness, startingStyle = "CAP_CIRCLE", endingStyle = "CAP_CIRCLE") {
module line_segment(index) { module line_segment(index) {
styles = index == 1 ? [startingStyle, "CAP_BUTT"] : ( styles = index == 1 ? [startingStyle, "CAP_BUTT"] : (
index == len(points) - 1 ? ["CAP_SPHERE", endingStyle] : [ index == len(points) - 1 ? ["CAP_SPHERE", endingStyle] : [
@@ -20,8 +20,7 @@ module polyline3d(points, thickness, startingStyle = "CAP_CIRCLE", endingStyle =
); );
line3d(points[index - 1], points[index], thickness, line3d(points[index - 1], points[index], thickness,
p1Style = styles[0], p2Style = styles[1], p1Style = styles[0], p2Style = styles[1]);
fn = fn);
} }
module polyline3d_inner(points, index) { module polyline3d_inner(points, index) {