Nabble has removed Mailing-list integration.
Posts created here DO NOT GET SENT TO THE MAILING LIST.
Mailing-list emails DO NOT GET POSTED TO THE FORUM.
So basically the Forum is now out of date, we are looking into migrating the history.

For now you should send emails, people will see them, discuss@lists.openscad.org.

Broken OpenSCAD file - I have no idea what I'm doing lol

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Broken OpenSCAD file - I have no idea what I'm doing lol

pbruske234
Hello All! 

Hopefully someone much smarter than myself can help me out. 

I found this miter slot runner on thingiverse: https://www.thingiverse.com/thing:3973092
The openscad file doesn't work. A guy in the comments said, "There's a difference call that operates on nothing. I commented it out, it works now."

I have to be honest, I have no idea what this means. I tired google and youtube.and quickly realized that I am a bit over my head. 

Would someone mind taking a look and letting me know what specifically I need to do to make this work? I see I can go to Edit -> Comment. Which I assume is what he means by "commented it out". 

I don't know if this helps. It might be easier to grab it from thingiverse if your able and willing to help. Thanks in advance. 

module tslot(t){
    translate([(-slot_length/2)+(slot_length*(t/1.4)), 0, 0])
    intersection(){
        difference(){
            union(){
                // groove
                translate([-slot_length/2, -groove_width/2, 0])
                cube([slot_length,groove_width,groove_height], 0);
               
                // slot
                translate([-slot_length/2, -slot_width/2, groove_height])
                cube([slot_length,slot_width,slot_height], 0);
               
            }
            // screw cutout
            cylinder(h=slot_height + groove_height, d=screw_width);
           
            // nut cutout
            cylinder(h=nut_height, d=nut_width, $fn=6);
        }

        // slot
        difference(){
        }
       
       
        // Round corner edges
        scale([1,.85,1])
        cylinder(h=slot_height, d=slot_length);
    }
}

for (i =[1:slot_segments]){
    tslot(i);
}

_______________________________________________
OpenSCAD mailing list
To unsubscribe send an email to [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: Broken OpenSCAD file - I have no idea what I'm doing lol

nophead
I haven't tried it but the comment means remove these three lines:

        // slot
        difference(){
        }

It creates an empty object which makes the intersection empty but probably didn't on older versions of OpenSCAD.


On Fri, 7 May 2021 at 20:34, Patrick Bruske <[hidden email]> wrote:
Hello All! 

Hopefully someone much smarter than myself can help me out. 

I found this miter slot runner on thingiverse: https://www.thingiverse.com/thing:3973092
The openscad file doesn't work. A guy in the comments said, "There's a difference call that operates on nothing. I commented it out, it works now."

I have to be honest, I have no idea what this means. I tired google and youtube.and quickly realized that I am a bit over my head. 

Would someone mind taking a look and letting me know what specifically I need to do to make this work? I see I can go to Edit -> Comment. Which I assume is what he means by "commented it out". 

I don't know if this helps. It might be easier to grab it from thingiverse if your able and willing to help. Thanks in advance. 

module tslot(t){
    translate([(-slot_length/2)+(slot_length*(t/1.4)), 0, 0])
    intersection(){
        difference(){
            union(){
                // groove
                translate([-slot_length/2, -groove_width/2, 0])
                cube([slot_length,groove_width,groove_height], 0);
               
                // slot
                translate([-slot_length/2, -slot_width/2, groove_height])
                cube([slot_length,slot_width,slot_height], 0);
               
            }
            // screw cutout
            cylinder(h=slot_height + groove_height, d=screw_width);
           
            // nut cutout
            cylinder(h=nut_height, d=nut_width, $fn=6);
        }

        // slot
        difference(){
        }
       
       
        // Round corner edges
        scale([1,.85,1])
        cylinder(h=slot_height, d=slot_length);
    }
}

for (i =[1:slot_segments]){
    tslot(i);
}
_______________________________________________
OpenSCAD mailing list
To unsubscribe send an email to [hidden email]

_______________________________________________
OpenSCAD mailing list
To unsubscribe send an email to [hidden email]
dpa
Reply | Threaded
Open this post in threaded view
|

Re: Broken OpenSCAD file - I have no idea what I'm doing lol

dpa
In reply to this post by pbruske234
"There's a difference call 
difference()

that operates on nothing. 
{ /* nothing */ }

comment it out,
//        difference(){
//        }

then it works"
(see attachment)


Am Fr., 7. Mai 2021 um 21:34 Uhr schrieb Patrick Bruske <[hidden email]>:
Hello All! 

Hopefully someone much smarter than myself can help me out. 

I found this miter slot runner on thingiverse: https://www.thingiverse.com/thing:3973092
The openscad file doesn't work. A guy in the comments said, "There's a difference call that operates on nothing. I commented it out, it works now."

I have to be honest, I have no idea what this means. I tired google and youtube.and quickly realized that I am a bit over my head. 

Would someone mind taking a look and letting me know what specifically I need to do to make this work? I see I can go to Edit -> Comment. Which I assume is what he means by "commented it out". 

I don't know if this helps. It might be easier to grab it from thingiverse if your able and willing to help. Thanks in advance. 

module tslot(t){
    translate([(-slot_length/2)+(slot_length*(t/1.4)), 0, 0])
    intersection(){
        difference(){
            union(){
                // groove
                translate([-slot_length/2, -groove_width/2, 0])
                cube([slot_length,groove_width,groove_height], 0);
               
                // slot
                translate([-slot_length/2, -slot_width/2, groove_height])
                cube([slot_length,slot_width,slot_height], 0);
               
            }
            // screw cutout
            cylinder(h=slot_height + groove_height, d=screw_width);
           
            // nut cutout
            cylinder(h=nut_height, d=nut_width, $fn=6);
        }

        // slot
        difference(){
        }
       
       
        // Round corner edges
        scale([1,.85,1])
        cylinder(h=slot_height, d=slot_length);
    }
}

for (i =[1:slot_segments]){
    tslot(i);
}
_______________________________________________
OpenSCAD mailing list
To unsubscribe send an email to [hidden email]

_______________________________________________
OpenSCAD mailing list
To unsubscribe send an email to [hidden email]

Miter_Slot.scad (1K) Download Attachment