Fixed use of intersection with conditional argument to suit new OpenSCAD behaviour.
This commit is contained in:
parent
933fea687c
commit
e39af154bb
Binary file not shown.
Before Width: | Height: | Size: 137 KiB After Width: | Height: | Size: 137 KiB |
|
@ -137,19 +137,26 @@ module insert_lug(insert, wall, counter_bore = 0, extension = 0, corner_r = 0, f
|
|||
boss_h = insert_hole_length(insert);
|
||||
boss_h2 = boss_h + counter_bore;
|
||||
|
||||
module shape()
|
||||
intersection() {
|
||||
module shape() {
|
||||
module _shape()
|
||||
hull() {
|
||||
circle(boss_r);
|
||||
|
||||
translate([boss_r + extension - eps, 0])
|
||||
square([eps, 2 * boss_r], center = true);
|
||||
}
|
||||
if(corner_r)
|
||||
|
||||
if(corner_r)
|
||||
intersection() {
|
||||
_shape();
|
||||
|
||||
translate([boss_r + extension - corner_r, 0])
|
||||
rotate(-45)
|
||||
quadrant(w = 100, r = corner_r - eps, center = true);
|
||||
}
|
||||
}
|
||||
else
|
||||
_shape();
|
||||
}
|
||||
|
||||
translate_z(-boss_h)
|
||||
linear_extrude(boss_h)
|
||||
|
|
|
@ -179,23 +179,27 @@ module jhead_hot_end_assembly(type, filament, naked = false) { //! Assembly with
|
|||
//
|
||||
// heater block
|
||||
//
|
||||
rotate(90)
|
||||
translate([-nozzle_x(heater), 0, inset - insulator_length - heater_height(heater) / 2]) {
|
||||
intersection() {
|
||||
group() {
|
||||
translate([resistor_x(heater), -exploded() * 15, 0])
|
||||
rotate([90, 0, 0])
|
||||
sleeved_resistor(resistor, PTFE20, bare = -10);
|
||||
module heater_components() {
|
||||
translate([resistor_x(heater), -exploded() * 15, 0])
|
||||
rotate([90, 0, 0])
|
||||
sleeved_resistor(resistor, PTFE20, bare = -10);
|
||||
|
||||
translate([-heater_length(heater) / 2 + resistor_length(thermistor) / 2 - exploded() * 10, thermistor_y(heater), 0])
|
||||
rotate([90, 0, -90])
|
||||
sleeved_resistor(thermistor, PTFE07, heatshrink = HSHRNK16);
|
||||
}
|
||||
|
||||
rotate(90)
|
||||
translate([-nozzle_x(heater), 0, inset - insulator_length - heater_height(heater) / 2])
|
||||
if(exploded())
|
||||
heater_components();
|
||||
else
|
||||
intersection() {
|
||||
heater_components();
|
||||
|
||||
translate([-heater_length(heater) / 2 + resistor_length(thermistor) / 2 - exploded() * 10, thermistor_y(heater), 0])
|
||||
rotate([90, 0, -90])
|
||||
sleeved_resistor(thermistor, PTFE07, heatshrink = HSHRNK16);
|
||||
}
|
||||
if(!exploded())
|
||||
if(naked)
|
||||
color("grey") cylinder(r = 12, h = 100, center = true);
|
||||
else
|
||||
cube(1, true); // hide the wires when not exploded
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue