mirror of
https://github.com/nophead/NopSCADlib.git
synced 2025-08-16 12:24:09 +02:00
Reimplemeted woven sheets with an eye to speed and interface consistancy.
This commit is contained in:
Binary file not shown.
Before Width: | Height: | Size: 35 KiB After Width: | Height: | Size: 42 KiB |
@@ -20,32 +20,30 @@ include <../utils/core/core.scad>
|
||||
use <../utils/layout.scad>
|
||||
|
||||
include <../vitamins/sheets.scad>
|
||||
include <../vitamins/screws.scad>
|
||||
|
||||
width = 30;
|
||||
2d = true;
|
||||
|
||||
module sheets()
|
||||
layout([for(s = sheets) width], 5)
|
||||
render_sheet(sheets[$i]) sheet(sheets[$i], width, width, 2);
|
||||
let(sheet = sheets[$i], w = sheet_is_woven(sheet) ? width : undef)
|
||||
if(2d)
|
||||
render_2D_sheet(sheet, w = w, d = w)
|
||||
difference() {
|
||||
sheet_2D(sheet, width, width, 2);
|
||||
|
||||
module test2() {
|
||||
render_sheet(CF3) sheet(CF3, width, width, 2);
|
||||
translate([40,0,0])
|
||||
render_2D_sheet(CF3) sheet_2D(CF3, width, width, 2);
|
||||
translate([80,0,0])
|
||||
sheet(CF3, width, width, 2);
|
||||
translate([120,0,0])
|
||||
sheet_2D(CF3, width, width, 2);
|
||||
circle(3);
|
||||
}
|
||||
else
|
||||
render_sheet(sheet, w = w, d = w)
|
||||
difference() {
|
||||
sheet(sheet, width, width, 2);
|
||||
|
||||
translate_z(sheet_thickness(sheet) / 2)
|
||||
screw_countersink(M3_cs_cap_screw);
|
||||
}
|
||||
|
||||
translate([160,0,0])
|
||||
render_sheet(MDF6) sheet(MDF6, width, width, 2);
|
||||
translate([200,0,0])
|
||||
render_2D_sheet(MDF6) sheet_2D(MDF6, width, width, 2);
|
||||
translate([240,0,0])
|
||||
sheet(MDF6, width, width, 2);
|
||||
translate([280,0,0])
|
||||
sheet_2D(MDF6, width, width, 2);
|
||||
}
|
||||
|
||||
if($preview)
|
||||
sheets();
|
||||
//test2();
|
||||
|
Reference in New Issue
Block a user