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:
38
tests/ht_pipes.scad
Normal file
38
tests/ht_pipes.scad
Normal 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();
|
Reference in New Issue
Block a user