Segmentation
This commit is contained in:
parent
694105eae2
commit
d560a366e4
24
CFTubes.scad
24
CFTubes.scad
|
@ -1103,7 +1103,7 @@ COLOURSCHEME_PETGHF_BLUE = [BAMBU_PETGHF_LAKE_BLUE, BAMBU_PETGHF_LAKE_BLUE, "",
|
||||||
// TrussRodSingleAction(taper_points=[-extra, l], extra=true, tolerance = 0.24);
|
// TrussRodSingleAction(taper_points=[-extra, l], extra=true, tolerance = 0.24);
|
||||||
// }
|
// }
|
||||||
|
|
||||||
module TwoBangerMk2(include_colours=[0,1], preview=false) {
|
module TwoBangerMk2(include_colours=[0,1], segment=-1, preview=false) {
|
||||||
id_line_0 = "ABS";
|
id_line_0 = "ABS";
|
||||||
id_line_1 = "2";
|
id_line_1 = "2";
|
||||||
fsl_mm = fret_scale_length(0);
|
fsl_mm = fret_scale_length(0);
|
||||||
|
@ -1287,14 +1287,24 @@ module TwoBangerMk2(include_colours=[0,1], preview=false) {
|
||||||
// CFs();
|
// CFs();
|
||||||
color("#FF000080") MyBody();
|
color("#FF000080") MyBody();
|
||||||
} else {
|
} else {
|
||||||
MyBody();
|
if (segment < 0) {
|
||||||
|
MyBody();
|
||||||
|
} else {
|
||||||
|
intersection() {
|
||||||
|
MyBody();
|
||||||
|
y0 = segment_cuts[segment];
|
||||||
|
y1 = segment_cuts[segment+1];
|
||||||
|
translate([-500, y0, -500]) cube([1000, y1-y0, 1000]);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Guitar_Scale_Length_mm = PBass_Scale_mm;
|
Guitar_Scale_Length_mm = PBass_Scale_mm;
|
||||||
|
|
||||||
colour_scheme = COLOURSCHEME_ABS_BLUE;
|
colour_scheme = COLOURSCHEME_ABS_BLUE;
|
||||||
TwoBangerMk2(preview=true);
|
// TwoBangerMk2(preview=true);
|
||||||
// color(colour_scheme[0]) TwoBangerMk2([0]);
|
segment = 3;
|
||||||
// color(colour_scheme[1]) TwoBangerMk2([1]);
|
color(colour_scheme[0]) TwoBangerMk2([0], segment);
|
||||||
// color(colour_scheme[2]) TwoBangerMk2([2]);
|
color(colour_scheme[1]) TwoBangerMk2([1], segment);
|
||||||
// color(colour_scheme[3]) TwoBangerMk2([3]);
|
color(colour_scheme[2]) TwoBangerMk2([2], segment);
|
||||||
|
color(colour_scheme[3]) TwoBangerMk2([3], segment);
|
||||||
|
|
Loading…
Reference in New Issue