-
Notifications
You must be signed in to change notification settings - Fork 192
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
added an epsilon to the inside diameter of the rings to prevent bolts through holes resulting in 'WARNING: CSG normalisation resulted in empty tree'; switched to using cubes for hexagons; added 626 bearing size; #16
base: master
Are you sure you want to change the base?
Conversation
… through holes resulting in 'WARNING: CSG normalisation resulted in empty tree'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally okay except for the comments I left
@@ -194,36 +231,38 @@ function motorLength(model=Nema23, size=NemaMedium) = lookup(size, model); | |||
|
|||
module motor(model=Nema23, size=NemaMedium, dualAxis=false, pos=[0,0,0], orientation = [0,0,0]) { | |||
|
|||
length = lookup(size, model); | |||
motorDef = NemaDefinitions[model]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like this changes the format of the model
parameter from the motor definition structure to an array index. This isn't acceptable because it'll break many designs floating around the internet that use this module.
@@ -194,36 +231,38 @@ function motorLength(model=Nema23, size=NemaMedium) = lookup(size, model); | |||
|
|||
module motor(model=Nema23, size=NemaMedium, dualAxis=false, pos=[0,0,0], orientation = [0,0,0]) { | |||
|
|||
length = lookup(size, model); | |||
motorDef = NemaDefinitions[model]; | |||
echo(NemaDefinitions[14]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This echo shouldn't be here, I think.
module nutHole(size, units=MM, tolerance = +0.0001, proj = -1) | ||
{ | ||
//takes a metric screw/nut size and looksup nut dimensions | ||
radius = METRIC_NUT_AC_WIDTHS[size]/2+tolerance; | ||
height = METRIC_NUT_THICKNESS[size]+tolerance; | ||
radius = METRIC_NUT_AC_WIDTHS[size]+2*tolerance; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
radius = METRIC_NUT_AC_WIDTHS[size]+2*tolerance; | |
width = METRIC_NUT_AC_WIDTHS[size]+2*tolerance; |
This isn't really a radius any more.
if (proj == -1) | ||
{ | ||
cylinder(r= radius, h=height, $fn = 6, center=[0,0]); | ||
translate([0,0,(height/2)-tolerance]) hexagon(height=radius, depth=height); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
translate([0,0,(height/2)-tolerance]) hexagon(height=radius, depth=height); | |
translate([0,0,(height/2)-tolerance]) hexagon(height=width, depth=height); |
No description provided.