Reinoud Zandijk
unread,Apr 6, 2017, 3:10:51 PM4/6/17Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Julia Longtin, impli...@googlegroups.com
Hi Julia,
in my quest to tweak my Cutter3 design so ImplicitCAD also renders it fine I
stumbled on a simple piece of code that is not rendering well at all; it
leaves out most of it!
The offending piece, when cut-down comes to:
---------------------
laser_width = 33;
laser_length = 33;
laser_height = 50;
laser_dy = laser_length/2;
// pick up at center bottom
w = laser_width;
l = laser_length;
h = laser_height;
h2 = 11;
translate([0, laser_dy, 0])
translate([-l/2, -w/2, 0]) {
scale([l, w, h])
cube();
// cooler fan (approx)
translate([l/2, w/2, h])
linear_extrude(h2)
circle(w/2);
// laser lens
translate([l/2, w/2, 0]) {
rotate([180,0,0]) {
linear_extrude(5)
circle(5);
linear_extrude(100)
circle(0.5);
}
}
}
---------------------
I haven't further disected it but why is it only rendering the last primitive?
I.e. the linear_extrude(100) circle(0.5) ?
Happy hacking,
Reinoud