GM
Gerald McKeown
Sun, Oct 31, 2021 5:59 PM
Hi:
I'm trying to do what seems to be a simple thing - create a ruler with
Openscad.
Originally intended to help me size things in the display window, but now
converted to creating a physical ruler. Although I've used it for display
purposes before (really slow), this is the first time I've tried a render.
It is not rendering - or, it sat at 595/1000 for hours, and I left it
overnight. This morning, OpenSCAD was not running. Of course, I'm not
sure if the machine rebooted overnight.
Any suggestions?
Thanks for your help!
Hi:
I'm trying to do what seems to be a simple thing - create a ruler with
Openscad.
Originally intended to help me size things in the display window, but now
converted to creating a physical ruler. Although I've used it for display
purposes before (really slow), this is the first time I've tried a render.
It is not rendering - or, it sat at 595/1000 for hours, and I left it
overnight. This morning, OpenSCAD was not running. Of course, I'm not
sure if the machine rebooted overnight.
Any suggestions?
Thanks for your help!
LM
Leonard Martin Struttmann
Sun, Oct 31, 2021 6:23 PM
//make a ruler of sorts
module ruler(end)
{
for(i=[0:10:end-1])
{
color("Black")translate([i,0,0])cube([.2,4,.04]);
color("Black")linear_extrude(.02)translate([i,4,0])text(str(i),size =
2);
}
for (j=[1:end])
{
color("DeepSkyBlue")translate([j,0,0,])cube([.1,3,.03]);
color ("SpringGreen")translate([j-.5,0,0])cube([.1,2,.03]);
}
}
color("pink")
cube ([150,12,1]);
translate([0,0,1])ruler(150);
translate([150,12,1])
rotate([0,0,180])
ruler(150);
On Sun, Oct 31, 2021 at 12:59 PM Gerald McKeown gamck54@gmail.com wrote:
Hi:
I'm trying to do what seems to be a simple thing - create a ruler with
Openscad.
Originally intended to help me size things in the display window, but now
converted to creating a physical ruler. Although I've used it for display
purposes before (really slow), this is the first time I've tried a render.
It is not rendering - or, it sat at 595/1000 for hours, and I left it
overnight. This morning, OpenSCAD was not running. Of course, I'm not
sure if the machine rebooted overnight.
Any suggestions?
Thanks for your help!
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
//make a ruler of sorts
module ruler(end)
{
for(i=[0:10:end-1])
{
color("Black")translate([i,0,0])cube([.2,4,.04]);
color("Black")linear_extrude(.02)translate([i,4,0])text(str(i),size =
2);
}
for (j=[1:end])
{
color("DeepSkyBlue")translate([j,0,0,])cube([.1,3,.03]);
color ("SpringGreen")translate([j-.5,0,0])cube([.1,2,.03]);
}
}
color("pink")
cube ([150,12,1]);
translate([0,0,1])ruler(150);
translate([150,12,1])
rotate([0,0,180])
ruler(150);
On Sun, Oct 31, 2021 at 12:59 PM Gerald McKeown <gamck54@gmail.com> wrote:
> Hi:
> I'm trying to do what seems to be a simple thing - create a ruler with
> Openscad.
> Originally intended to help me size things in the display window, but now
> converted to creating a physical ruler. Although I've used it for display
> purposes before (really slow), this is the first time I've tried a render.
>
> It is not rendering - or, it sat at 595/1000 for hours, and I left it
> overnight. This morning, OpenSCAD was not running. Of course, I'm not
> sure if the machine rebooted overnight.
>
> Any suggestions?
>
> Thanks for your help!
> _______________________________________________
> OpenSCAD mailing list
> To unsubscribe send an email to discuss-leave@lists.openscad.org
>
NH
nop head
Sun, Oct 31, 2021 6:36 PM
I don't think you meant to nest the two loops.
This is faster:
module ruler(end){
for(j=[1:end]) {
color("DeepSkyBlue")translate([j,0,0,])cube([.1,3,.03]);
color ("SpringGreen")translate([j-.5,0,0])cube([.1,2,.03]);
}
for(i=[0:10:end]){
color("Black")translate([i,0,0])cube([.2,4,.04]);
color("Black")linear_extrude(.02)translate([i,4,0])text(str(i),size
= 2);
}
}
Also rather than unioning 3D objects, union them as 2D squares and then
linear_extrude the result is much faster.
I also moved the lines to centre them to avoid non-manifold problems where
they overlap. It renders in 1 minute 40 on my machine.
module ruler(end){
color("DeepSkyBlue")
linear_extrude(0.03)
for(j=[1:end])
translate([j-0.05,0,])square([.1,3]);
color ("SpringGreen")
linear_extrude(0.03)
for(j=[1:end])
translate([j-.55,0,0])square([.1,2]);
color("Black") {
linear_extrude(0.04)
for(i=[0:10:end])
translate([i - 0.1,0])square([.2,4]);
linear_extrude(.02)
for(i=[0:10:end])
translate([i,4,0])text(str(i),size = 2);
}
}
On Sun, 31 Oct 2021 at 17:59, Gerald McKeown gamck54@gmail.com wrote:
Hi:
I'm trying to do what seems to be a simple thing - create a ruler with
Openscad.
Originally intended to help me size things in the display window, but now
converted to creating a physical ruler. Although I've used it for display
purposes before (really slow), this is the first time I've tried a render.
It is not rendering - or, it sat at 595/1000 for hours, and I left it
overnight. This morning, OpenSCAD was not running. Of course, I'm not
sure if the machine rebooted overnight.
Any suggestions?
Thanks for your help!
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
I don't think you meant to nest the two loops.
This is faster:
module ruler(end){
for(j=[1:end]) {
color("DeepSkyBlue")translate([j,0,0,])cube([.1,3,.03]);
color ("SpringGreen")translate([j-.5,0,0])cube([.1,2,.03]);
}
for(i=[0:10:end]){
color("Black")translate([i,0,0])cube([.2,4,.04]);
color("Black")linear_extrude(.02)translate([i,4,0])text(str(i),size
= 2);
}
}
Also rather than unioning 3D objects, union them as 2D squares and then
linear_extrude the result is much faster.
I also moved the lines to centre them to avoid non-manifold problems where
they overlap. It renders in 1 minute 40 on my machine.
module ruler(end){
color("DeepSkyBlue")
linear_extrude(0.03)
for(j=[1:end])
translate([j-0.05,0,])square([.1,3]);
color ("SpringGreen")
linear_extrude(0.03)
for(j=[1:end])
translate([j-.55,0,0])square([.1,2]);
color("Black") {
linear_extrude(0.04)
for(i=[0:10:end])
translate([i - 0.1,0])square([.2,4]);
linear_extrude(.02)
for(i=[0:10:end])
translate([i,4,0])text(str(i),size = 2);
}
}
On Sun, 31 Oct 2021 at 17:59, Gerald McKeown <gamck54@gmail.com> wrote:
> Hi:
> I'm trying to do what seems to be a simple thing - create a ruler with
> Openscad.
> Originally intended to help me size things in the display window, but now
> converted to creating a physical ruler. Although I've used it for display
> purposes before (really slow), this is the first time I've tried a render.
>
> It is not rendering - or, it sat at 595/1000 for hours, and I left it
> overnight. This morning, OpenSCAD was not running. Of course, I'm not
> sure if the machine rebooted overnight.
>
> Any suggestions?
>
> Thanks for your help!
> _______________________________________________
> OpenSCAD mailing list
> To unsubscribe send an email to discuss-leave@lists.openscad.org
>
GM
Gerald McKeown
Sun, Oct 31, 2021 7:37 PM
Thank you both.
This is definitely a learning experience - and the most direct way isn't
necessarily the best!
Gerald
On Sun, Oct 31, 2021 at 2:37 PM nop head nop.head@gmail.com wrote:
I don't think you meant to nest the two loops.
This is faster:
module ruler(end){
for(j=[1:end]) {
color("DeepSkyBlue")translate([j,0,0,])cube([.1,3,.03]);
color ("SpringGreen")translate([j-.5,0,0])cube([.1,2,.03]);
}
for(i=[0:10:end]){
color("Black")translate([i,0,0])cube([.2,4,.04]);
color("Black")linear_extrude(.02)translate([i,4,0])text(str(i),size = 2);
}
}
Also rather than unioning 3D objects, union them as 2D squares and then
linear_extrude the result is much faster.
I also moved the lines to centre them to avoid non-manifold problems where
they overlap. It renders in 1 minute 40 on my machine.
module ruler(end){
color("DeepSkyBlue")
linear_extrude(0.03)
for(j=[1:end])
translate([j-0.05,0,])square([.1,3]);
color ("SpringGreen")
linear_extrude(0.03)
for(j=[1:end])
translate([j-.55,0,0])square([.1,2]);
color("Black") {
linear_extrude(0.04)
for(i=[0:10:end])
translate([i - 0.1,0])square([.2,4]);
linear_extrude(.02)
for(i=[0:10:end])
translate([i,4,0])text(str(i),size = 2);
}
}
On Sun, 31 Oct 2021 at 17:59, Gerald McKeown gamck54@gmail.com wrote:
Hi:
I'm trying to do what seems to be a simple thing - create a ruler with
Openscad.
Originally intended to help me size things in the display window, but now
converted to creating a physical ruler. Although I've used it for display
purposes before (really slow), this is the first time I've tried a render.
It is not rendering - or, it sat at 595/1000 for hours, and I left it
overnight. This morning, OpenSCAD was not running. Of course, I'm not
sure if the machine rebooted overnight.
Any suggestions?
Thanks for your help!
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
Thank you both.
This is definitely a learning experience - and the most direct way isn't
necessarily the best!
Gerald
On Sun, Oct 31, 2021 at 2:37 PM nop head <nop.head@gmail.com> wrote:
> I don't think you meant to nest the two loops.
>
> This is faster:
>
> module ruler(end){
> for(j=[1:end]) {
> color("DeepSkyBlue")translate([j,0,0,])cube([.1,3,.03]);
> color ("SpringGreen")translate([j-.5,0,0])cube([.1,2,.03]);
> }
> for(i=[0:10:end]){
> color("Black")translate([i,0,0])cube([.2,4,.04]);
>
> color("Black")linear_extrude(.02)translate([i,4,0])text(str(i),size = 2);
> }
> }
>
> Also rather than unioning 3D objects, union them as 2D squares and then
> linear_extrude the result is much faster.
>
> I also moved the lines to centre them to avoid non-manifold problems where
> they overlap. It renders in 1 minute 40 on my machine.
>
> module ruler(end){
> color("DeepSkyBlue")
> linear_extrude(0.03)
> for(j=[1:end])
> translate([j-0.05,0,])square([.1,3]);
>
> color ("SpringGreen")
> linear_extrude(0.03)
> for(j=[1:end])
> translate([j-.55,0,0])square([.1,2]);
>
> color("Black") {
> linear_extrude(0.04)
> for(i=[0:10:end])
> translate([i - 0.1,0])square([.2,4]);
>
> linear_extrude(.02)
> for(i=[0:10:end])
> translate([i,4,0])text(str(i),size = 2);
> }
> }
>
>
>
>
>
> On Sun, 31 Oct 2021 at 17:59, Gerald McKeown <gamck54@gmail.com> wrote:
>
>> Hi:
>> I'm trying to do what seems to be a simple thing - create a ruler with
>> Openscad.
>> Originally intended to help me size things in the display window, but now
>> converted to creating a physical ruler. Although I've used it for display
>> purposes before (really slow), this is the first time I've tried a render.
>>
>> It is not rendering - or, it sat at 595/1000 for hours, and I left it
>> overnight. This morning, OpenSCAD was not running. Of course, I'm not
>> sure if the machine rebooted overnight.
>>
>> Any suggestions?
>>
>> Thanks for your help!
>> _______________________________________________
>> OpenSCAD mailing list
>> To unsubscribe send an email to discuss-leave@lists.openscad.org
>>
> _______________________________________________
> OpenSCAD mailing list
> To unsubscribe send an email to discuss-leave@lists.openscad.org
>