From b454411010213006c5fe244d4632cd6f62816177 Mon Sep 17 00:00:00 2001 From: Justin Lin Date: Wed, 10 May 2017 16:35:17 +0800 Subject: [PATCH] changed default value --- docs/lib-helix_extrude.md | 4 ++-- src/helix_extrude.scad | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/lib-helix_extrude.md b/docs/lib-helix_extrude.md index c3f66b3b..069d23be 100644 --- a/docs/lib-helix_extrude.md +++ b/docs/lib-helix_extrude.md @@ -2,7 +2,7 @@ Extrudes a 2D shape along a helix path. -When using this module, you should use points to represent the 2D shape. You need to provide indexes of triangles, too. This module provides two prepared triangles indexes. See [polysections](https://openhome.cc/eGossip/OpenSCAD/lib-polysections.html) for details. +When using this module, you should use points to represent the 2D shape. If your 2D shape is not solid, indexes of triangles are required. See [polysections](https://openhome.cc/eGossip/OpenSCAD/lib-polysections.html) for details. Its `$fa`, `$fs` and `$fn` parameters are consistent with the `cylinder` module. @@ -18,7 +18,7 @@ Dependencies: `helix`, `rotate_p.scad`, `cross_sections`, `polysections`. - `rt_dir` : `"CT_CLK"` for counterclockwise. `"CLK"` for clockwise. The default value is `"CT_CLK"`. - `twist` : The number of degrees of through which the shape is extruded. - `scale` : Scales the 2D shape by this value over the length of the extrusion. Scale can be a scalar or a vector. -- `triangles` : `"RADIAL"` (default), `"HOLLOW"`, `"TAPE"` or user-defined indexes. See [polysections](https://openhome.cc/eGossip/OpenSCAD/lib-polysections.html) for details. +- `triangles` : `"SOLID"` (default), `"HOLLOW"` or user-defined indexes. See [polysections](https://openhome.cc/eGossip/OpenSCAD/lib-polysections.html) for details. - `$fa`, `$fs`, `$fn` : Check [the cylinder module](https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Primitive_Solids#cylinder) for more details. ## Examples diff --git a/src/helix_extrude.scad b/src/helix_extrude.scad index a4729c3a..9cf222cd 100644 --- a/src/helix_extrude.scad +++ b/src/helix_extrude.scad @@ -15,7 +15,7 @@ include <__private__/__frags.scad>; module helix_extrude(shape_pts, radius, levels, level_dist, vt_dir = "SPI_DOWN", rt_dir = "CT_CLK", - twist = 0, scale = 1.0, triangles = "RADIAL") { + twist = 0, scale = 1.0, triangles = "SOLID") { is_vt = __is_vector(radius); r1 = is_vt ? radius[0] : radius;