add some models
This commit is contained in:
parent
c6e8d5e0cf
commit
5c5b0b3768
2 changed files with 264 additions and 0 deletions
22
models/gridfinity-cyclinder-holder.µcad
Normal file
22
models/gridfinity-cyclinder-holder.µcad
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
use std::ops::*;
|
||||
use std::math::*;
|
||||
use std::geo3d::*;
|
||||
use gridfinity::*;
|
||||
|
||||
mod gridfinity;
|
||||
|
||||
fn getOffset(units: Integer) -> Length {
|
||||
if units > 1 {
|
||||
return 5.1mm;
|
||||
} else {
|
||||
return 3.2mm;
|
||||
}
|
||||
}
|
||||
|
||||
part Holder(diameter: Length) {
|
||||
units = int(diameter / BasicUnitXY) + 1;
|
||||
Box(gridsX = units, gridsY = units, gridsZ = 4, magents = true) - Cylinder(radius = diameter / 2, height = 100mm, offset = getOffset(units));
|
||||
}
|
||||
|
||||
#[resolution = 200%]
|
||||
Holder(60.5mm);
|
||||
Loading…
Add table
Add a link
Reference in a new issue