modularize the horizontal stripes for reuse
Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
This commit is contained in:
		
							parent
							
								
									623118b627
								
							
						
					
					
						commit
						c79427052e
					
				@ -8,19 +8,23 @@ include <components.scad>
 | 
			
		||||
use <front-or-back.scad>
 | 
			
		||||
use <front-or-back-inner-wall.scad>
 | 
			
		||||
 | 
			
		||||
module front_stripe() {
 | 
			
		||||
module front_horiz_stripe() {
 | 
			
		||||
	cube([frame_x-(frame_mount_column_width*1.75)*2, wall_cutout_depth, 5], center=true);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
module front_horiz_stripes() {
 | 
			
		||||
	translate([0, -(frame_y-frame_wall)/2, 18]) front_horiz_stripe();
 | 
			
		||||
	translate([0, -(frame_y-frame_wall)/2, 9]) front_horiz_stripe();
 | 
			
		||||
	translate([0, -(frame_y-frame_wall)/2, 0]) front_horiz_stripe();
 | 
			
		||||
	translate([0, -(frame_y-frame_wall)/2, -9]) front_horiz_stripe();
 | 
			
		||||
	translate([0, -(frame_y-frame_wall)/2, -18]) front_horiz_stripe();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
module horiz_striped_windowed_front_or_back_frame_piece() {
 | 
			
		||||
	difference() {
 | 
			
		||||
		front_or_back_frame_piece();
 | 
			
		||||
		// subtract frame wall windows
 | 
			
		||||
		translate([0, -(frame_y-frame_wall)/2, 18]) front_stripe();
 | 
			
		||||
		translate([0, -(frame_y-frame_wall)/2, 9]) front_stripe();
 | 
			
		||||
		translate([0, -(frame_y-frame_wall)/2, 0]) front_stripe();
 | 
			
		||||
		translate([0, -(frame_y-frame_wall)/2, -9]) front_stripe();
 | 
			
		||||
		translate([0, -(frame_y-frame_wall)/2, -18]) front_stripe();
 | 
			
		||||
		front_horiz_stripes();
 | 
			
		||||
		// subtract the inner wall area that will be provided by the other piece
 | 
			
		||||
		front_or_back_inner_wall_frame_piece();
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
@ -8,19 +8,23 @@ include <components.scad>
 | 
			
		||||
use <side.scad>
 | 
			
		||||
use <side-inner-wall.scad>
 | 
			
		||||
 | 
			
		||||
module side_stripe() {
 | 
			
		||||
module side_horiz_stripe() {
 | 
			
		||||
	cube([wall_cutout_depth, frame_y-(frame_mount_column_width*1.75)*2, 5], center=true);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
module side_horiz_stripes() {
 | 
			
		||||
	translate([-(frame_x-frame_wall)/2, 0, 18]) side_horiz_stripe();
 | 
			
		||||
	translate([-(frame_x-frame_wall)/2, 0, 9]) side_horiz_stripe();
 | 
			
		||||
	translate([-(frame_x-frame_wall)/2, 0, 0]) side_horiz_stripe();
 | 
			
		||||
	translate([-(frame_x-frame_wall)/2, 0, -9]) side_horiz_stripe();
 | 
			
		||||
	translate([-(frame_x-frame_wall)/2, 0, -18]) side_horiz_stripe();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
module horiz_striped_windowed_side_frame_piece() {
 | 
			
		||||
	difference() {
 | 
			
		||||
		side_frame_piece();
 | 
			
		||||
		// subtract frame wall windows
 | 
			
		||||
		translate([-(frame_x-frame_wall)/2, 0, 18]) side_stripe();
 | 
			
		||||
		translate([-(frame_x-frame_wall)/2, 0, 9]) side_stripe();
 | 
			
		||||
		translate([-(frame_x-frame_wall)/2, 0, 0]) side_stripe();
 | 
			
		||||
		translate([-(frame_x-frame_wall)/2, 0, -9]) side_stripe();
 | 
			
		||||
		translate([-(frame_x-frame_wall)/2, 0, -18]) side_stripe();
 | 
			
		||||
		side_horiz_stripes();
 | 
			
		||||
		// subtract the inner wall area that will be provided by the other piece
 | 
			
		||||
		side_inner_wall_frame_piece();
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user