mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-09-01 10:42:57 +02:00
provided supports for $fa, $fs, $fn
This commit is contained in:
@@ -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) {
|
||||||
|
Reference in New Issue
Block a user