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

Added tubing_ir() function.

This commit is contained in:
Chris Palmer
2022-01-10 23:20:04 +00:00
parent e06b485d3e
commit bf8014fba0
2 changed files with 2 additions and 1 deletions

View File

@@ -29,6 +29,7 @@ function tubing_id(type) = type[3]; //! Inside diameter
function tubing_colour(type) = type[4]; //! Colour
function tubing_or(type) = tubing_od(type) / 2; //! Outside radius
function tubing_ir(type) = tubing_id(type) / 2; //! Inside radius
module tubing(type, length = 15, forced_id = 0, center = true) { //! Draw specified tubing with optional forced internal diameter
original_od = tubing_od(type);
@@ -50,4 +51,3 @@ module tubing(type, length = 15, forced_id = 0, center = true) { //! Draw specif
circle(d = id);
}
}