diff --git a/.gitignore b/.gitignore index 182637c..8b9415d 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ docgen docs/.source_hashes **/.source_hashes +docs/.source_hashes/ diff --git a/docs/.source_hashes b/docs/.source_hashes deleted file mode 100644 index 4618d1a..0000000 --- a/docs/.source_hashes +++ /dev/null @@ -1 +0,0 @@ -metalib.scad|3979a0093760105008a8e3283ce8796093ccaba9a37aa2ff4bfcf5f9ba386c4e diff --git a/docs/images/metalib/miter_tubes.png b/docs/images/metalib/miter_tubes.png index 8537fe9..4dbf86e 100644 Binary files a/docs/images/metalib/miter_tubes.png and b/docs/images/metalib/miter_tubes.png differ diff --git a/docs/images/metalib/miter_tubes_2.png b/docs/images/metalib/miter_tubes_2.png index d71a3f7..98f68cb 100644 Binary files a/docs/images/metalib/miter_tubes_2.png and b/docs/images/metalib/miter_tubes_2.png differ diff --git a/docs/metalib.scad.md b/docs/metalib.scad.md index c05af0b..d26e29f 100644 --- a/docs/metalib.scad.md +++ b/docs/metalib.scad.md @@ -3,7 +3,7 @@ To use, add the following lines to the beginning of your file: - include ; + include ; ## File Contents @@ -44,7 +44,7 @@ This is the continues content miter\_profile() Example 1 - include ; + include ; miter_profile(length=200, height=30, depth=20);

@@ -78,7 +78,7 @@ This module generates a sequence of mitered tubes based on the provided section miter\_tubes() Example 1 - include ; + include ; miter_tubes( sections = [800,750,800], height = 50, @@ -86,21 +86,21 @@ This module generates a sequence of mitered tubes based on the provided section start=false, end=false, unfold = false, - quote=true + quote=false );

-**Example 2:** Unfolded +**Example 2:** Unfolded and Quoted miter\_tubes() Example 2 - include ; + include ; miter_tubes( sections = [800,750], height = 50, depth = 50, - unfold = false, + unfold = true, quote=true ); diff --git a/gen_doc.sh b/gen_doc.sh index 3d0f8d6..a147a89 100755 --- a/gen_doc.sh +++ b/gen_doc.sh @@ -1 +1 @@ -openscad-docsgen -m -I -P "Metalib" --force +openscad-docsgen -m -I -P "Metalib" -f diff --git a/metalib.scad b/metalib.scad index e052dbc..a093951 100644 --- a/metalib.scad +++ b/metalib.scad @@ -1,7 +1,7 @@ ////////////////////////////////////////////////////////////////////// // LibFile: metalib.scad // Includes: -// include ; +// include ; // FileGroup: Metal // FileSummary: Metal, metalon, profile, and geometry. ////////////////////////////////////////////////////////////////////// @@ -121,14 +121,14 @@ module miter_profile( length=200, height=30, depth=20 ) { // start=false, // end=false, // unfold = false, -// quote=true +// quote=false // ); -// Example: Unfolded +// Example: Unfolded and Quoted // miter_tubes( // sections = [800,750], // height = 50, // depth = 50, -// unfold = false, +// unfold = true, // quote=true // ); @@ -145,7 +145,7 @@ module miter_tubes( sections, height, depth, start=true,end=true,unfold=false,qu start = index==0 ? start : true, end = index==len(sections)-1 ? end : true ); - if (quote) { + if (quote) color("Red") { dimension(length); //path = [[0,length], [length,length]]; path = [[0,-140], [length-5,-140]]; @@ -161,6 +161,15 @@ module miter_tubes( sections, height, depth, start=true,end=true,unfold=false,qu } } +/* +miter_tubes( + sections = [800,750], + height = 50, + depth = 50, + unfold = true, + quote=true + ); +*/ /** * Creates a mitered tube with specified dimensions, wall thickness, and rounding. *