From 2b083c5e6082ed26c8a4e339f293fb3bfb2e3098 Mon Sep 17 00:00:00 2001 From: Justin Lin Date: Wed, 10 May 2017 16:33:47 +0800 Subject: [PATCH] change default value --- docs/lib-ring_extrude.md | 4 ++-- src/ring_extrude.scad | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/lib-ring_extrude.md b/docs/lib-ring_extrude.md index 3b2f5472..6b94fb40 100644 --- a/docs/lib-ring_extrude.md +++ b/docs/lib-ring_extrude.md @@ -6,7 +6,7 @@ Because we cannot retrieve the shape points of built-in 2D modules, it's necessa This module depends on `rotate_p`, `cross_section` and `polysections`. Remember to include corresponding ".scad". -This module provides two prepared triangles indexes. See [polysections](https://openhome.cc/eGossip/OpenSCAD/lib-polysections.html) for details. +If your 2D shape is not solid, indexes of triangles are required. See [polysections](https://openhome.cc/eGossip/OpenSCAD/lib-polysections.html) for details. ## Parameters @@ -15,7 +15,7 @@ This module provides two prepared triangles indexes. See [polysections](https:// - `angle` : Defaults to 360. Specifies the number of degrees to sweep, starting at the positive X axis. - `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. ## Examples diff --git a/src/ring_extrude.scad b/src/ring_extrude.scad index 8d2b8de7..8d77bc10 100644 --- a/src/ring_extrude.scad +++ b/src/ring_extrude.scad @@ -13,7 +13,7 @@ include <__private__/__frags.scad>; -module ring_extrude(shape_pts, radius, angle = 360, twist = 0, scale = 1.0, triangles = "RADIAL") { +module ring_extrude(shape_pts, radius, angle = 360, twist = 0, scale = 1.0, triangles = "SOLID") { frags = __frags(radius); angle_step = 360 / frags;