Compare commits
No commits in common. "4cc3e41c0a205c773f9e697832be846a01331499" and "a407f8fc9f3b91593d2aefee4ae77c8d15e1f2d7" have entirely different histories.
4cc3e41c0a
...
a407f8fc9f
7 changed files with 10088 additions and 10 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
/.idea
|
|
@ -1,2 +1,3 @@
|
||||||
# scad-lib
|
# MattSCAD
|
||||||
My custom SCAD library, contains bits and pieces like a metric bolt generator, and an extrusion generator.
|
Matt's custom OpenSCAD Library.
|
||||||
|
This is my custom SCAD library, contains bits and pieces like a metric bolt generator, and an extrusion generator.
|
||||||
|
|
10054
dollatek_motor.stl
Normal file
10054
dollatek_motor.stl
Normal file
File diff suppressed because it is too large
Load diff
20
hexgrid.scad
Normal file
20
hexgrid.scad
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
module hexGrid(fillRatio=0.5, gridSize=10, height=1, center=false, rows=3, columns=4) {
|
||||||
|
colMulti = 0.752;
|
||||||
|
rowMulti = 0.86;
|
||||||
|
offset = [
|
||||||
|
(gridSize*colMulti)*((columns-1)/2),
|
||||||
|
(gridSize*rowMulti)*((rows-.5)/2),
|
||||||
|
0] * -1;
|
||||||
|
translate(offset){
|
||||||
|
for(row= [0:rows-1]){
|
||||||
|
translate([0,gridSize*row*rowMulti,0])
|
||||||
|
for(col=[0:columns-1]){
|
||||||
|
translate([gridSize*col*colMulti,col%2?(gridSize*rowMulti)/2:0,0])
|
||||||
|
cylinder(h=height,d=gridSize*fillRatio, $fn=6, center=center);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
hexGrid(fillRatio=0.8, gridSize=10, height=10, center=false);
|
|
@ -1,3 +1,4 @@
|
||||||
|
$fn=$preview ? 60 : 360;
|
||||||
include <../Lib/bearings.scad>;
|
include <../Lib/bearings.scad>;
|
||||||
include <../Lib/mirrorcopy.scad>;
|
include <../Lib/mirrorcopy.scad>;
|
||||||
include <../Lib/part_splitter.scad>;
|
include <../Lib/part_splitter.scad>;
|
||||||
|
@ -11,3 +12,4 @@ include <../Lib/gears.scad>;
|
||||||
include <../Lib/prism.scad>;
|
include <../Lib/prism.scad>;
|
||||||
include <../Lib/fillet_cylinder.scad>;
|
include <../Lib/fillet_cylinder.scad>;
|
||||||
include <../Lib/o-ring.scad>;
|
include <../Lib/o-ring.scad>;
|
||||||
|
include <../Lib/hexgrid.scad>;
|
Loading…
Reference in a new issue