mirror of
https://github.com/DJSundog/NopSCADlib.git
synced 2024-11-27 01:03:51 -05:00
Removed woven_sheet() from the readme.
Removed redundent code.
This commit is contained in:
parent
acd5de0fbd
commit
6f8ff606fa
@ -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 |
|
| ```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(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 |
|
| ```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)
|
![sheets](tests/png/sheets.png)
|
||||||
|
|
||||||
|
@ -120,8 +120,7 @@ module render_2D_sheet(type, colour = false, colour2 = false, w = undef, d = und
|
|||||||
children();
|
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);
|
warp = sheet_warp(type);
|
||||||
weft = sheet_weft(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));
|
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])
|
translate([warp * (2 * x + ((y + odd) % 2)), weft * y])
|
||||||
square([warp, weft]);
|
square([warp, weft]);
|
||||||
|
|
||||||
module negative()
|
|
||||||
difference() {
|
|
||||||
square(size, center = true);
|
|
||||||
positive();
|
|
||||||
}
|
|
||||||
|
|
||||||
color(colour)
|
color(colour)
|
||||||
linear_extrude(thickness)
|
linear_extrude(thickness)
|
||||||
intersection() {
|
intersection() {
|
||||||
|
Loading…
Reference in New Issue
Block a user