Example with unfold and quotes
This commit is contained in:
parent
71d1b818eb
commit
a8ebf0fddb
1
.gitignore
vendored
1
.gitignore
vendored
@ -3,3 +3,4 @@
|
|||||||
docgen
|
docgen
|
||||||
docs/.source_hashes
|
docs/.source_hashes
|
||||||
**/.source_hashes
|
**/.source_hashes
|
||||||
|
docs/.source_hashes/
|
||||||
|
@ -1 +0,0 @@
|
|||||||
metalib.scad|3979a0093760105008a8e3283ce8796093ccaba9a37aa2ff4bfcf5f9ba386c4e
|
|
Binary file not shown.
Before Width: | Height: | Size: 36 KiB After Width: | Height: | Size: 31 KiB |
Binary file not shown.
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 21 KiB |
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
To use, add the following lines to the beginning of your file:
|
To use, add the following lines to the beginning of your file:
|
||||||
|
|
||||||
include <metalib.scad>;
|
include <Metalib/metalib.scad>;
|
||||||
|
|
||||||
## File Contents
|
## File Contents
|
||||||
|
|
||||||
@ -44,7 +44,7 @@ This is the continues content
|
|||||||
|
|
||||||
<img align="left" alt="miter\_profile() Example 1" src="images/metalib/miter_profile.png" width="320" height="240">
|
<img align="left" alt="miter\_profile() Example 1" src="images/metalib/miter_profile.png" width="320" height="240">
|
||||||
|
|
||||||
include <metalib.scad>;
|
include <Metalib/metalib.scad>;
|
||||||
miter_profile(length=200, height=30, depth=20);
|
miter_profile(length=200, height=30, depth=20);
|
||||||
|
|
||||||
<br clear="all" /><br/>
|
<br clear="all" /><br/>
|
||||||
@ -78,7 +78,7 @@ This module generates a sequence of mitered tubes based on the provided section
|
|||||||
|
|
||||||
<img align="left" alt="miter\_tubes() Example 1" src="images/metalib/miter_tubes.png" width="320" height="240">
|
<img align="left" alt="miter\_tubes() Example 1" src="images/metalib/miter_tubes.png" width="320" height="240">
|
||||||
|
|
||||||
include <metalib.scad>;
|
include <Metalib/metalib.scad>;
|
||||||
miter_tubes(
|
miter_tubes(
|
||||||
sections = [800,750,800],
|
sections = [800,750,800],
|
||||||
height = 50,
|
height = 50,
|
||||||
@ -86,21 +86,21 @@ This module generates a sequence of mitered tubes based on the provided section
|
|||||||
start=false,
|
start=false,
|
||||||
end=false,
|
end=false,
|
||||||
unfold = false,
|
unfold = false,
|
||||||
quote=true
|
quote=false
|
||||||
);
|
);
|
||||||
|
|
||||||
<br clear="all" /><br/>
|
<br clear="all" /><br/>
|
||||||
|
|
||||||
**Example 2:** Unfolded
|
**Example 2:** Unfolded and Quoted
|
||||||
|
|
||||||
<img align="left" alt="miter\_tubes() Example 2" src="images/metalib/miter_tubes_2.png" width="320" height="240">
|
<img align="left" alt="miter\_tubes() Example 2" src="images/metalib/miter_tubes_2.png" width="320" height="240">
|
||||||
|
|
||||||
include <metalib.scad>;
|
include <Metalib/metalib.scad>;
|
||||||
miter_tubes(
|
miter_tubes(
|
||||||
sections = [800,750],
|
sections = [800,750],
|
||||||
height = 50,
|
height = 50,
|
||||||
depth = 50,
|
depth = 50,
|
||||||
unfold = false,
|
unfold = true,
|
||||||
quote=true
|
quote=true
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -1 +1 @@
|
|||||||
openscad-docsgen -m -I -P "Metalib" --force
|
openscad-docsgen -m -I -P "Metalib" -f
|
||||||
|
19
metalib.scad
19
metalib.scad
@ -1,7 +1,7 @@
|
|||||||
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
||||||
// LibFile: metalib.scad
|
// LibFile: metalib.scad
|
||||||
// Includes:
|
// Includes:
|
||||||
// include <metalib.scad>;
|
// include <Metalib/metalib.scad>;
|
||||||
// FileGroup: Metal
|
// FileGroup: Metal
|
||||||
// FileSummary: Metal, metalon, profile, and geometry.
|
// FileSummary: Metal, metalon, profile, and geometry.
|
||||||
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
||||||
@ -121,14 +121,14 @@ module miter_profile( length=200, height=30, depth=20 ) {
|
|||||||
// start=false,
|
// start=false,
|
||||||
// end=false,
|
// end=false,
|
||||||
// unfold = false,
|
// unfold = false,
|
||||||
// quote=true
|
// quote=false
|
||||||
// );
|
// );
|
||||||
// Example: Unfolded
|
// Example: Unfolded and Quoted
|
||||||
// miter_tubes(
|
// miter_tubes(
|
||||||
// sections = [800,750],
|
// sections = [800,750],
|
||||||
// height = 50,
|
// height = 50,
|
||||||
// depth = 50,
|
// depth = 50,
|
||||||
// unfold = false,
|
// unfold = true,
|
||||||
// quote=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,
|
start = index==0 ? start : true,
|
||||||
end = index==len(sections)-1 ? end : true
|
end = index==len(sections)-1 ? end : true
|
||||||
);
|
);
|
||||||
if (quote) {
|
if (quote) color("Red") {
|
||||||
dimension(length);
|
dimension(length);
|
||||||
//path = [[0,length], [length,length]];
|
//path = [[0,length], [length,length]];
|
||||||
path = [[0,-140], [length-5,-140]];
|
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.
|
* Creates a mitered tube with specified dimensions, wall thickness, and rounding.
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user