Set ngb for most library assemblies.

This commit is contained in:
Chris Palmer 2021-02-03 06:21:44 +00:00
parent 36521cf0b9
commit 9da8a3cb26
14 changed files with 15 additions and 15 deletions

View File

@ -284,7 +284,7 @@ module camera_bracket(cam) { //! Make the STL for the camera bracket
}
module camera_assembly(cam, angle = 0) //! Camera case assembly
assembly(str("camera_", cam[0])) {
assembly(str("camera_", cam[0]), ngb = true) {
front = cam_front_size(cam);
screw = pcb_screw(camera_pcb(cam));
nut = screw_nut(screw);

View File

@ -117,7 +117,7 @@ module corner_block(screw = def_screw, name = false) { //! Generate the STL for
}
module corner_block_assembly(screw = def_screw, name = false) //! The printed block with inserts
assembly(str("corner_block_M", 20 * screw_radius(screw))) {
assembly(str("corner_block_M", 20 * screw_radius(screw)), ngb = true) {
insert = screw_insert(screw);
stl_colour(name ? pp2_colour : pp1_colour)

View File

@ -311,7 +311,7 @@ module _drag_chain_assembly(type, pos = 0, render = false) {
//! 1. Remove the support material from the links with side cutters.
//! 1. Clip the links together with the special ones at the ends.
module drag_chain_assembly(type, pos = 0, render = false) //! Drag chain assembly
assembly(str(drag_chain_name(type), "_drag_chain"), big = true)
assembly(str(drag_chain_name(type), "_drag_chain"), big = true, ngb = true)
if($children == 2)
_drag_chain_assembly(type, pos, render) {
children(0);

View File

@ -106,7 +106,7 @@ module fixing_block(screw = def_screw) { //! Generate the STL
}
module fixing_block_assembly(screw = def_screw) pose([55, 180, 25], [0, 4.8, 4.8]) //! Printed part with the inserts inserted
assembly(str("fixing_block_M", 20 * screw_radius(screw))) {
assembly(str("fixing_block_M", 20 * screw_radius(screw)), ngb = true) {
translate_z(fixing_block_height(screw))
rotate([0, 180, 0])
stl_colour(pp1_colour) render() fixing_block(screw);

View File

@ -129,7 +129,7 @@ module hinge_both(type) { //! Both parts together for printing
}
module hinge_assembly(type, angle = 0)
assembly(str("hinge_", type[0])) { //! Assembled hinge
assembly(str("hinge_", type[0]), ngb = true) { //! Assembled hinge
kr = hinge_knuckle_dia(type) / 2;
hr = hinge_pin_dia(type) / 2;
w = hinge_width(type);

View File

@ -132,7 +132,7 @@ module insert_foot(type = insert_foot) { //! Generate STL for foot with insert
//! Place the insert in the bottom of the foot and push home with a soldering iron with a conical bit heated to 200°C.
//
module insert_foot_assembly(type = insert_foot) //! Printed part with insert in place
assembly("insert_foot") {
assembly("insert_foot", ngb = true) {
screw = foot_screw(type);
insert = screw_insert(screw);

View File

@ -81,7 +81,7 @@ module handle_stl() { //! generate the STL
//! Place inserts in the bottom of the posts and push them home with a soldering iron with a conical bit heated to 200°C.
//
module handle_assembly() pose([225, 0, 150], [0, 0, 14]) //! Printed part with inserts in place
assembly("handle") {
assembly("handle", ngb = true) {
translate_z(handle_height())
stl_colour(pp1_colour) vflip() handle_stl();

View File

@ -180,7 +180,7 @@ module printed_pulley(type) { //! Draw a printable pulley
}
module printed_pulley_assembly(type, colour = pp1_colour) //! Draw a printed pulley with its grub screws in place
assembly(str("printed_pulley_", type[0])) {
assembly(str("printed_pulley_", type[0]), ngb = true) {
translate_z(pulley_offset(type)) {
stl_colour(colour)
if(printed_pulley_inverted(type))

View File

@ -143,7 +143,7 @@ module psu_shroud(type, cable_d, name, cables = 1) { //! Generate the STL file f
}
module psu_shroud_assembly(type, cable_d, name, cables = 1) //! The printed parts with inserts fitted
assembly(str("PSU_shroud_", name)) {
assembly(str("PSU_shroud_", name), ngb = true) {
translate_z(psu_shroud_height(type))
vflip()

View File

@ -82,7 +82,7 @@ module ribbon_clamp(ways, screw = screw) { //! Generate STL for given number of
}
module ribbon_clamp_assembly(ways, screw = screw) pose([55, 180, 25]) //! Printed part with inserts in place
assembly(let(screw_d = screw_radius(screw) * 2)str("ribbon_clamp_", ways, screw_d != 3 ? str("_", screw_d) : "")) {
assembly(let(screw_d = screw_radius(screw) * 2)str("ribbon_clamp_", ways, screw_d != 3 ? str("_", screw_d) : ""), ngb = true) {
h = ribbon_clamp_height(screw);
insert = screw_insert(screw);

View File

@ -59,7 +59,7 @@ module screw_knob(screw) { //! Generate the STL for a knob to fit the specified
//! Place the screw through the printed part
module screw_knob_assembly(screw, length) //! Assembly with the screw in place
assembly(str("screw_knob_M", 20 * screw_radius(screw), "_", length)) {
assembly(str("screw_knob_M", 20 * screw_radius(screw), "_", length), ngb = true) {
translate_z(knob_height)
vflip()
stl_colour(pp1_colour) screw_knob(screw);

View File

@ -107,7 +107,7 @@ module ssr_shroud(type, cable_d, name) { //! Generate the STL file for a spec
}
module ssr_shroud_assembly(type, cable_d, name) //! The printed parts with inserts fitted
assembly(str("SSR_shroud_", name)) {
assembly(str("SSR_shroud_", name), ngb = true) {
translate_z(ssr_shroud_height(type))
vflip()

View File

@ -162,7 +162,7 @@ module strap_end(type = strap) { //! Generate the STL for end piece
//! * Place the insert into the hole and push home with a soldering iron with a tapered bit heated to 200°C.
//
module strap_end_assembly(type = strap)
assembly("strap_end") {
assembly("strap_end", ngb = true) {
stl_colour(pp1_colour)
strap_end(type);

View File

@ -143,8 +143,8 @@ module vero_components(type, cutouts = false, angle = undef)
module vero_cutouts(type, angle = undef) vero_components(type, true, angle); //! Make cutouts to clear components
module veroboard_assembly(type, height, thickness, flip = false) //! Draw the assembly with components and fasteners in place
assembly(vero_assembly(type)) {
module veroboard_assembly(type, height, thickness, flip = false, ngb = false) //! Draw the assembly with components and fasteners in place
assembly(vero_assembly(type), ngb = ngb) {
screw = vero_screw(type);
nut = screw_nut(screw);
screw_length = screw_length(screw, height + thickness + vero_thickness(type), 2, nyloc = true);