1
0
mirror of https://github.com/nophead/NopSCADlib.git synced 2025-09-01 11:22:36 +02:00

Added functions to create property lists that are created by the client.

Foot, box, bbox, pbox, flat_hinge and strap_handle.
This commit is contained in:
Chris Palmer
2020-05-02 20:27:32 +01:00
parent c9aad0178e
commit 70b13d2f27
11 changed files with 40 additions and 13 deletions

View File

@@ -30,6 +30,9 @@ include <../core.scad>
use <../vitamins/insert.scad>
use <foot.scad>
function pbox(name, wall, top_t, base_t, radius, size, foot = false, screw = false, ridges = [0, 0]) //! Construct a printed box property list
= concat([name, wall, top_t, base_t, foot, screw, radius, ridges], size);
function pbox_name(type) = type[0]; //! Name to allow more than one box in a project
function pbox_wall(type) = type[1]; //! Wall thickness
function pbox_top(type) = type[2]; //! Top thickness