use the derived frame piece x dimension to build front/back

this saves one operation and removes a bit of the artifacts. didn't seem
to help the 2-manifold stuff I was looking at, but this is slightly
clearer anyway?

Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
This commit is contained in:
Brian S. Stephan 2025-03-05 08:14:44 -06:00
parent 4336098fe8
commit ef68dbca48
Signed by: bss
GPG Key ID: 3DE06D3180895FCB
2 changed files with 5 additions and 4 deletions

View File

@ -14,10 +14,8 @@ module front_or_back_frame_piece() {
left_frame();
difference() {
// include the whole bottom wall (including mount columns)
translate([0, -(frame_y/2)+(piece_width/2), 0]) cube([frame_x, piece_width, frame_z], center=true);
// ...minus the frame wall and lip on the left
translate([-frame_x/2+frame_wall/2, 0, 0])
cube([frame_wall, frame_y, frame_z], center=true);
translate([0, -(frame_y/2)+(piece_width/2), 0])
cube([frame_piece_x_x, piece_width, frame_z], center=true);
// ...minus a slot for the combining piece to go into
cube([frame_x, frame_y-(panel_support_width+frame_wall)*2, inner_frame_z/3], center=true);
}

View File

@ -64,6 +64,9 @@ panel_x = frame_x - (frame_wall * 2);
panel_y = frame_y - (frame_wall * 2);
panel_z = 5;
// some dimensions for frame pieces, useful in doing some intersections and chopping
frame_piece_x_x = frame_x - (frame_wall * 2); // essentially panel_x, yes
// degree to which the extended frame pieces stick out from the end of the frame
frame_extension_x = 25;
frame_extension_y = 25;