1
0
mirror of https://github.com/nophead/NopSCADlib.git synced 2025-08-28 17:49:53 +02:00

added test script and some more HT pipes

This commit is contained in:
Jan Giebels
2024-10-06 02:08:22 +02:00
parent c61386caf9
commit 9ed6aab6c8
3 changed files with 74 additions and 50 deletions

38
tests/ht_pipes.scad Normal file
View File

@@ -0,0 +1,38 @@
//
// NopSCADlib Copyright Jan Giebels 2024
//
// This file is part of NopSCADlib.
//
// NopSCADlib is free software: you can redistribute it and/or modify it under the terms of the
// GNU General Public License as published by the Free Software Foundation, either version 3 of
// the License, or (at your option) any later version.
//
// NopSCADlib is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
// without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
// See the GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License along with NopSCADlib.
// If not, see <https://www.gnu.org/licenses/>.
//
include <../utils/core/core.scad>
use <../utils/layout.scad>
include <../vitamins/ht_pipes.scad>
module ht_pipes()
layout([for(p = ht_pipes) 100])
translate([0, 0, 0]) {
rotate(180) {
if (ht_pipes[$i][4] <= 34)
translate([0, 0, ht_pipes[$i][4]])
ht_cap(ht_pipes[$i]);
if (ht_pipes[$i][4] >= 101)
ht_pipe(ht_pipes[$i]);
if (ht_pipes[$i][4] == 100)
ht_tpipe(ht_pipes[$i]);
}
}
if($preview)
ht_pipes();