discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Fwd: F5 works, F6 doesn't. bug?

RW
Raymond West
Wed, Mar 15, 2023 11:09 AM

Although you have taken care to make the cylinder slightly longer than
the cube, you have the edge of the diameter of the cylinder exactly
touching the top edge of the cube. You can change the $fn value to , a
number such as 25, where the edges do not touch, (zoom in to see what I
mean) or offset the centre slightly, make the cube a bit
bigger/whatever. Better still, do it in 2d and extrude.

Putting the cube difference first, then the edge of the cube has gone,
so it works OK.

$fn=24; // to be reasonably round
    ln=30;// length of block
    sh=26/2;// separation of bolt holes
    bl=sh*3;// width of block
    ld=16;// diameter of loom

module ext(){
    linear_extrude(ln){
          difference(){
            square([bl,ld*1.5],center=true);
                translate([0,4])circle(d=ld);
translate([0,8.01])square([ld,ld/2+.1],center=true);
       }
   }
}

ext();

On 14/03/2023 19:42, gene heskett wrote:

Greatings all;

Possible buglet advisory...

Trying to make a loom clamp to anchor a hot end umbilical cable, seems
like it s/b easy, define a cube and a recipe of differences.

The code:

module loom_clamp()
{
    $fn=24; // to be reasonably round
    ln=30;// length of block
    sh=26/2;// separation of bolt holes
    bl=sh3;// width of block
    ld=16;// diameter of loom
    translate([0,0,12])difference()
    {
        cube([ln,bl,ld
1.5],center=true);
translate([0,0,4])rotate([90,0,0])cylinder(h=sh3+1,d=ld,center=true);
translate([0,0,8.01])cube([ld,sh
3.1,ld/2+.1],center=true);
    }
}
loom_clamp();

F5 works in a few milliseconds, F6 reports:

[fast-csg] corefinement mesh difference #469: 12 facets vs. 92 facets
[fast-csg-remesh] Remeshed from 214 to 12 faces (94 % improvement)
WARNING: [fast-csg] Corefinement corefinement mesh difference #469 failed
Rendering cancelled on first warning.
WARNING: No top level geometry to render

I still need to add a couple bolt holes to attach it to the printer.
So I've turned off fast-cgi, and F6 now works.

Cheers, Gene Heskett.

Although you have taken care to make the cylinder slightly longer than the cube, you have the edge of the diameter of the cylinder exactly touching the top edge of the cube. You can change the $fn value to , a number such as 25, where the edges do not touch, (zoom in to see what I mean) or offset the centre slightly, make the cube a bit bigger/whatever. Better still, do it in 2d and extrude. Putting the cube difference first, then the edge of the cube has gone, so it works OK. $fn=24; // to be reasonably round     ln=30;// length of block     sh=26/2;// separation of bolt holes     bl=sh*3;// width of block     ld=16;// diameter of loom module ext(){     linear_extrude(ln){           difference(){             square([bl,ld*1.5],center=true);                 translate([0,4])circle(d=ld); translate([0,8.01])square([ld,ld/2+.1],center=true);        }    } } ext(); On 14/03/2023 19:42, gene heskett wrote: > Greatings all; > > Possible buglet advisory... > > Trying to make a loom clamp to anchor a hot end umbilical cable, seems > like it s/b easy, define a cube and a recipe of differences. > > The code: > ================ > module loom_clamp() > { >     $fn=24; // to be reasonably round >     ln=30;// length of block >     sh=26/2;// separation of bolt holes >     bl=sh*3;// width of block >     ld=16;// diameter of loom >     translate([0,0,12])difference() >     { >         cube([ln,bl,ld*1.5],center=true); > translate([0,0,4])rotate([90,0,0])cylinder(h=sh*3+1,d=ld,center=true); > translate([0,0,8.01])cube([ld,sh*3.1,ld/2+.1],center=true); >     } > } > loom_clamp(); > =============== > F5 works in a few milliseconds, F6 reports: > > [fast-csg] corefinement mesh difference #469: 12 facets vs. 92 facets > [fast-csg-remesh] Remeshed from 214 to 12 faces (94 % improvement) > WARNING: [fast-csg] Corefinement corefinement mesh difference #469 failed > Rendering cancelled on first warning. > WARNING: No top level geometry to render > > I still need to add a couple bolt holes to attach it to the printer. > So I've turned off fast-cgi, and F6 now works. > > Cheers, Gene Heskett.
L
larry
Wed, Mar 15, 2023 3:57 PM

On Wed, 2023-03-15 at 11:09 +0000, Raymond West wrote:

Although you have taken care to make the cylinder slightly longer
than the cube, you have the edge of the diameter of the cylinder
exactly touching the top edge of the cube. You can change the $fn
value to a number such as 25, where the edges do not touch, (zoom in
to see what I mean) or offset the centre slightly, make the cube a
bit bigger/whatever. Better still, do it in 2d and extrude.

Thanks Ray, I thought that might have been the problem, but I didn't
want to take the chance of possible misleading anyone.

Putting the cube difference first, then the edge of the cube has
gone,
so it works OK.

$fn=24; // to be reasonably round
     ln=30;// length of block
     sh=26/2;// separation of bolt holes
     bl=sh*3;// width of block
     ld=16;// diameter of loom

module ext(){
     linear_extrude(ln){
           difference(){
             square([bl,ld*1.5],center=true);
                 translate([0,4])circle(d=ld);
translate([0,8.01])square([ld,ld/2+.1],center=true);
        }
    }
}

ext();

On 14/03/2023 19:42, gene heskett wrote:

Greatings all;

Possible buglet advisory...

Trying to make a loom clamp to anchor a hot end umbilical cable,
seems
like it s/b easy, define a cube and a recipe of differences.

The code:

module loom_clamp()
{
    $fn=24; // to be reasonably round
    ln=30;// length of block
    sh=26/2;// separation of bolt holes
    bl=sh3;// width of block
    ld=16;// diameter of loom
    translate([0,0,12])difference()
    {
        cube([ln,bl,ld
1.5],center=true);
translate([0,0,4])rotate([90,0,0])cylinder(h=sh3+1,d=ld,center=tru
e);
translate([0,0,8.01])cube([ld,sh
3.1,ld/2+.1],center=true);
    }
}
loom_clamp();

F5 works in a few milliseconds, F6 reports:

[fast-csg] corefinement mesh difference #469: 12 facets vs. 92
facets
[fast-csg-remesh] Remeshed from 214 to 12 faces (94 % improvement)
WARNING: [fast-csg] Corefinement corefinement mesh difference #469
failed
Rendering cancelled on first warning.
WARNING: No top level geometry to render

I still need to add a couple bolt holes to attach it to the
printer.
So I've turned off fast-cgi, and F6 now works.

Cheers, Gene Heskett.


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

On Wed, 2023-03-15 at 11:09 +0000, Raymond West wrote: > > Although you have taken care to make the cylinder slightly longer > than the cube, you have the edge of the diameter of the cylinder > exactly touching the top edge of the cube. You can change the $fn > value to a number such as 25, where the edges do not touch, (zoom in > to see what I mean) or offset the centre slightly, make the cube a > bit bigger/whatever. Better still, do it in 2d and extrude. Thanks Ray, I thought that might have been the problem, but I didn't want to take the chance of possible misleading anyone. > Putting the cube difference first, then the edge of the cube has > gone, > so it works OK. > > $fn=24; // to be reasonably round >      ln=30;// length of block >      sh=26/2;// separation of bolt holes >      bl=sh*3;// width of block >      ld=16;// diameter of loom > > > module ext(){ >      linear_extrude(ln){ >            difference(){ >              square([bl,ld*1.5],center=true); >                  translate([0,4])circle(d=ld); > translate([0,8.01])square([ld,ld/2+.1],center=true); >         } >     } > } > > ext(); > > > > On 14/03/2023 19:42, gene heskett wrote: > > Greatings all; > > > > Possible buglet advisory... > > > > Trying to make a loom clamp to anchor a hot end umbilical cable, > > seems > > like it s/b easy, define a cube and a recipe of differences. > > > > The code: > > ================ > > module loom_clamp() > > { > >     $fn=24; // to be reasonably round > >     ln=30;// length of block > >     sh=26/2;// separation of bolt holes > >     bl=sh*3;// width of block > >     ld=16;// diameter of loom > >     translate([0,0,12])difference() > >     { > >         cube([ln,bl,ld*1.5],center=true); > > translate([0,0,4])rotate([90,0,0])cylinder(h=sh*3+1,d=ld,center=tru > > e); > > translate([0,0,8.01])cube([ld,sh*3.1,ld/2+.1],center=true); > >     } > > } > > loom_clamp(); > > =============== > > F5 works in a few milliseconds, F6 reports: > > > > [fast-csg] corefinement mesh difference #469: 12 facets vs. 92 > > facets > > [fast-csg-remesh] Remeshed from 214 to 12 faces (94 % improvement) > > WARNING: [fast-csg] Corefinement corefinement mesh difference #469 > > failed > > Rendering cancelled on first warning. > > WARNING: No top level geometry to render > > > > I still need to add a couple bolt holes to attach it to the > > printer. > > So I've turned off fast-cgi, and F6 now works. > > > > Cheers, Gene Heskett. > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >