From 6f8ff606fa5b2ef7d81fb687b77bd6236f6d277f Mon Sep 17 00:00:00 2001 From: Chris Palmer Date: Thu, 24 Dec 2020 09:01:51 +0000 Subject: [PATCH] Removed woven_sheet() from the readme. Removed redundent code. --- readme.md | 1 - vitamins/sheet.scad | 9 +-------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/readme.md b/readme.md index 4ba9933..4a70302 100644 --- a/readme.md +++ b/readme.md @@ -3163,7 +3163,6 @@ When woven sheets (e.g. carbon fibre) are rendered it is necessary to specify th | ```render_sheet(type, colour = false, colour2 = false, w = undef, d = undef)``` | Render a sheet in the correct colour after holes have been subtracted | | ```sheet(type, w, d, corners = [0, 0, 0, 0])``` | Draw specified sheet | | ```sheet_2D(type, w, d, corners = [0, 0, 0, 0])``` | 2D sheet template with specified size and optionally rounded corners | -| ```woven_sheet(type, thickness, colour, colour2, w, d)``` | Create a woven 2D sheet with specified thickness and colours | ![sheets](tests/png/sheets.png) diff --git a/vitamins/sheet.scad b/vitamins/sheet.scad index 382ebc3..8e2dba2 100644 --- a/vitamins/sheet.scad +++ b/vitamins/sheet.scad @@ -120,8 +120,7 @@ module render_2D_sheet(type, colour = false, colour2 = false, w = undef, d = und children(); } -module woven_sheet(type, thickness, colour, colour2, w, d) {//! Create a woven 2D sheet with specified thickness and colours - ; +module woven_sheet(type, thickness, colour, colour2, w, d) { // Create a woven 2D sheet with specified thickness and colours warp = sheet_warp(type); weft = sheet_weft(type); warp_doublet_count = assert(!is_undef(w) && !is_undef(d), "Must specify the dimensions to render woven sheets") ceil(w / (2 * warp)); @@ -133,12 +132,6 @@ module woven_sheet(type, thickness, colour, colour2, w, d) {//! Create a woven 2 translate([warp * (2 * x + ((y + odd) % 2)), weft * y]) square([warp, weft]); - module negative() - difference() { - square(size, center = true); - positive(); - } - color(colour) linear_extrude(thickness) intersection() {