Merge branch 'pulley_drawing_efficiency' of https://github.com/martinbudden/NopSCADlib into martinbudden-pulley_drawing_efficiency
This commit is contained in:
commit
4b533cffd2
|
@ -108,8 +108,9 @@ module pulley(type) { //! Draw a pulley
|
|||
cylinder(r = screw_radius(pulley_screw(type)), h = 100);
|
||||
}
|
||||
|
||||
color("silver") {
|
||||
render() difference() {
|
||||
color(silver) {
|
||||
render_if(pulley_screw_z(type) < hl)
|
||||
difference() {
|
||||
rotate_extrude() translate([r1, 0]) {
|
||||
if(hl)
|
||||
square([pulley_hub_dia(type) / 2 - r1, hl]);
|
||||
|
@ -121,7 +122,8 @@ module pulley(type) { //! Draw a pulley
|
|||
if(pulley_screw_z(type) < hl)
|
||||
screw_holes();
|
||||
}
|
||||
render() difference() { // T5 pulleys have screw through the teeth
|
||||
render_if(pulley_type(type)[0] == "T") // T5 pulleys have screw through the teeth
|
||||
difference() {
|
||||
core();
|
||||
|
||||
if(pulley_screw_z(type) > hl)
|
||||
|
|
Loading…
Reference in New Issue