Does this help?
$fn=30;
//rear wall
height=100;
width=130;
wall_thickness=6;
bottom_width=50;
angle=30;
module holder() {
//rear wall
cube([width,wall_thickness,height]);
//bottom wall
translate([0,wall_thickness-1,0])
cube([width,bottom_width,wall_thickness]);
//front wall
frontwall_y=wall_thickness+bottom_width-1;
translate([0,frontwall_y,0]) rotate([0,0,0])
cube([width,wall_thickness,height]);
}
rotate([angle,0,0])
translate([-width/2,0,0])
translate([0,-(bottom_width/2+wall_thickness),0])
holder();
--
View this message in context: http://forum.openscad.org/tilt-a-wall-tp21725p21726.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
My apologies for not contributing fully. I believe the original intent would
be to have a flat bottom, perpendicular rear and tilted only on the front
wall. If I had more time, I'd provide the modified code to accomplish that,
but I also think Eric's entry should provide a foundation for the solution.
--
View this message in context: http://forum.openscad.org/tilt-a-wall-tp21725p21727.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
I should have read that post better. A second try.
width=160;
height=100;
thickness=6;
bottom=50;
angle=-15;
cube([width,thickness,height]);
cube([width,bottom+thickness,thickness]);
translate([0,bottom,-sin(angle)*thickness]) rotate([angle,0,0])
cube([width,thickness,height]);
The -sine(angle)*thickness is for the front wall not going 'through' the
bottom.
--
View this message in context: http://forum.openscad.org/tilt-a-wall-tp21725p21728.html
Sent from the OpenSCAD mailing list archive at Nabble.com.