discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Need help modeling something

RT
r.d. terramir
Thu, Jun 13, 2019 6:05 AM

I am trying to design a dock for these ryobi batteries
but I am having problems with the square with one round side above the
base as well as a slanted feature on the top thing that enters the
tool
here are a ton of pictures of the tool
https://www.amazon.com/Ryobi-P102-Genuine-Lithium-Cordless/dp/B00AGCHVS6/ref=sr_1_4?crid=10718TR6KPQKF&keywords=ryobi+18v+lithium+battery&qid=1560404515&s=hi&sprefix=ryobi+18v+li%2Ctools%2C349&sr=1-4

not advertising amazon here just was convenient because it has
pictures from every angle.
there is the base of the battery the more squared off side pints
towards the front at least in my impact and drill.
above the base there is a about 5.4mm high squarish thing where the
holding clamps protrude from everything is fairly easy except the
rounded back I have no clue how to model this.
unlike the protruding top part where the rounded back is is a cylinder
with the same diameter as the cube-ish thing in front of it. the
problem on this thing both the base and the squarish thing above it
have rounding(s) that followed to their natural conclusion are bigger
than the model.
Also if you look at the top view you can see that the protrusion and
the front of the base have slanted roundish features that are not even
close to cylindrical it's more like a section of an extruded ellipse.
those are my problems any suggestions would be welcome.I will paste
the code I have so far below so you can see what I do have
terramir

PS here it is
difference(){

}
ryobibattdock();

module ryobibattdock(){
// raw data 33 27.6 21.5 16.6 2.8
//base 59.2 61.4 65 1.7
//34.5 40 43 35.4 9.3 52.3 86.5

difference(){
    union(){
    cube([61.4,49,5.5]);
        translate([16.9,26,5.4])
        cube([27.6,19.31,43.6]);
        translate([30.7,45.2,5.4]) cylinder(r=13.8,h=43.6,$fn=32)

        }

// cutting corners to be added outside of module
translate([-0.1,-0.1,-0.1]) cube ([5.1,5.1,5.7]);
translate([61.4-5,-0.1,-0.1]) cube ([5.1,5.1,5.7]);

}

// there be rounded corners
translate([5,5,0])cylinder(r=5, h=5.4,$fn=32);
translate([61.4-5,5,0])cylinder(r=5, h=5.4,$fn=32);

}
I am trying to design a dock for these ryobi batteries but I am having problems with the square with one round side above the base as well as a slanted feature on the top thing that enters the tool here are a ton of pictures of the tool https://www.amazon.com/Ryobi-P102-Genuine-Lithium-Cordless/dp/B00AGCHVS6/ref=sr_1_4?crid=10718TR6KPQKF&keywords=ryobi+18v+lithium+battery&qid=1560404515&s=hi&sprefix=ryobi+18v+li%2Ctools%2C349&sr=1-4 not advertising amazon here just was convenient because it has pictures from every angle. there is the base of the battery the more squared off side pints towards the front at least in my impact and drill. above the base there is a about 5.4mm high squarish thing where the holding clamps protrude from everything is fairly easy except the rounded back I have no clue how to model this. unlike the protruding top part where the rounded back is is a cylinder with the same diameter as the cube-ish thing in front of it. the problem on this thing both the base and the squarish thing above it have rounding(s) that followed to their natural conclusion are bigger than the model. Also if you look at the top view you can see that the protrusion and the front of the base have slanted roundish features that are not even close to cylindrical it's more like a section of an extruded ellipse. those are my problems any suggestions would be welcome.I will paste the code I have so far below so you can see what I do have terramir PS here it is difference(){ } ryobibattdock(); module ryobibattdock(){ // raw data 33 27.6 21.5 16.6 2.8 //base 59.2 61.4 65 1.7 //34.5 40 43 35.4 9.3 52.3 86.5 difference(){ union(){ cube([61.4,49,5.5]); translate([16.9,26,5.4]) cube([27.6,19.31,43.6]); translate([30.7,45.2,5.4]) cylinder(r=13.8,h=43.6,$fn=32) } // cutting corners to be added outside of module translate([-0.1,-0.1,-0.1]) cube ([5.1,5.1,5.7]); translate([61.4-5,-0.1,-0.1]) cube ([5.1,5.1,5.7]); } // there be rounded corners translate([5,5,0])cylinder(r=5, h=5.4,$fn=32); translate([61.4-5,5,0])cylinder(r=5, h=5.4,$fn=32); }
M
MichaelAtOz
Thu, Jun 13, 2019 6:14 AM

As long as you don't want it for commercial use, you can use my one:

https://www.thingiverse.com/thing:70938


Admin - email* me if you need anything, or if I've done something stupid...

  • click on my MichaelAtOz label, there is a link to email me.

Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above.

The TPP is no simple “trade agreement.”  Fight it! http://www.ourfairdeal.org/  time is running out!

Sent from: http://forum.openscad.org/

As long as you don't want it for commercial use, you can use my one: https://www.thingiverse.com/thing:70938 ----- Admin - email* me if you need anything, or if I've done something stupid... * click on my MichaelAtOz label, there is a link to email me. Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above. The TPP is no simple “trade agreement.” Fight it! http://www.ourfairdeal.org/ time is running out! -- Sent from: http://forum.openscad.org/
RT
r.d. terramir
Thu, Jun 13, 2019 7:19 AM

hmmm just add the clips and ink it in a block to cut it out well there
are some slight things missing but yeah I can add that,
it's for my wall mount LOL need to cut the batteries out of the block
for printing, also I wanted to make two mounts that can get the
contacts thinking about running a printer off two of these batteries
:p
thanks that is a great start.
terramir

On Wed, Jun 12, 2019 at 11:15 PM MichaelAtOz oz.at.michael@gmail.com wrote:

As long as you don't want it for commercial use, you can use my one:

https://www.thingiverse.com/thing:70938


Admin - email* me if you need anything, or if I've done something stupid...

  • click on my MichaelAtOz label, there is a link to email me.

Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above.

The TPP is no simple “trade agreement.”  Fight it! http://www.ourfairdeal.org/  time is running out!

Sent from: http://forum.openscad.org/


OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

hmmm just add the clips and ink it in a block to cut it out well there are some slight things missing but yeah I can add that, it's for my wall mount LOL need to cut the batteries out of the block for printing, also I wanted to make two mounts that can get the contacts thinking about running a printer off two of these batteries :p thanks that is a great start. terramir On Wed, Jun 12, 2019 at 11:15 PM MichaelAtOz <oz.at.michael@gmail.com> wrote: > > As long as you don't want it for commercial use, you can use my one: > > https://www.thingiverse.com/thing:70938 > > > > > > > > > > ----- > Admin - email* me if you need anything, or if I've done something stupid... > > * click on my MichaelAtOz label, there is a link to email me. > > Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above. > > The TPP is no simple “trade agreement.” Fight it! http://www.ourfairdeal.org/ time is running out! > -- > Sent from: http://forum.openscad.org/ > > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
M
MichaelAtOz
Thu, Jun 13, 2019 7:28 AM

Also https://www.thingiverse.com/thing:82868


Admin - email* me if you need anything, or if I've done something stupid...

  • click on my MichaelAtOz label, there is a link to email me.

Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above.

The TPP is no simple “trade agreement.”  Fight it! http://www.ourfairdeal.org/  time is running out!

Sent from: http://forum.openscad.org/

Also https://www.thingiverse.com/thing:82868 ----- Admin - email* me if you need anything, or if I've done something stupid... * click on my MichaelAtOz label, there is a link to email me. Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above. The TPP is no simple “trade agreement.” Fight it! http://www.ourfairdeal.org/ time is running out! -- Sent from: http://forum.openscad.org/