stride = (front_width - eclip_each_len) / (num_eclips-1);
if (objnum==objnum_f) {
- for (i=[ 0 : 2 : num_eclips-1 ]) {
- translate([0, i*stride, 0]) {
+ for (i=[ 1 : 2 : num_eclips-1 ]) {
+ translate([0, i*stride + eclip_each_len, 0]) {
rotate([90,0,0])
linear_extrude(height=eclip_each_len)
EclipLPlan(alpha);
}
}
- for (i=[ 1 : 2 : num_eclips-1 ]) {
- translate([0, i*stride, 0]) {
+ for (i=[ 0 : 2 : num_eclips-1 ]) {
+ translate([0, i*stride + eclip_each_len, 0]) {
rotate([90,0,0])
linear_extrude(height=eclip_each_len)
EclipRPlan(alpha, thm);
}
}
}
-// if (objnum==objnum_m)
-// rotate(alpha)
-// EclipPPlan(thm);
+ if (objnum==objnum_m)
+ mirror([0,1,0])
+ rotate([90,0,0])
+ linear_extrude(height=front_width)
+ rotate(alpha)
+ EclipPPlan(thm);
}
function r3(pc) = [ pc[0], 0, pc[1] ];
echo("Object",objnum);
translate(r3(pp)) Joins(beta, objnum, 0,1);
translate(r3(pr)) mirror([1,0,0]) Joins(0, objnum, 0,2);
- translate(r3(pq)) rotate([0,-90,0]) Joins(beta, objnum, 2,1);
+ translate(r3(pq)) rotate([0,90,0]) Joins(beta, objnum, 2,1);
}
module Base(){
}
module Demo(){
- Base();
- Front();
- Back();
+ color("red") Base();
+ color("blue") Front();
+ color("black") Back();
}
//PlanDemo();