Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
gyuri
3d_models
Commits
997a0323
Commit
997a0323
authored
Jul 26, 2019
by
György Kurucz
Browse files
Add file with many abbreviated commands.
parent
6746ec0c
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/short.scad
0 → 100644
View file @
997a0323
module tX(x) { translate([x,0,0]) children(); }
module tY(y) { translate([0,y,0]) children(); }
module tZ(z) { translate([0,0,z]) children(); }
module tXY(x,y) { translate([x,y,0]) children(); }
module tXZ(x,z) { translate([x,0,z]) children(); }
module tYZ(y,z) { translate([0,y,z]) children(); }
module tXYZ(x,y,z) { translate([x,y,z]) children(); }
module rX(x) { rotate([x,0,0]) children(); }
module rY(y) { rotate([0,y,0]) children(); }
module rZ(z) { rotate([0,0,z]) children(); }
// operations
module diff() {
difference() {
children(0);
// step needed in case $children < 2
for (i=[1:1:$children-1]) children(i);
}
}
module tube(l, th) {
linear_extrude(l) diff() {
offset(2*th) children();
children();
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment