kennetek / gridfinity-rebuilt-openscad

A ground-up rebuild of the stock gridfinity bins in OpenSCAD
Other
1.27k stars 186 forks source link

gridfinityBaseplate: magnet hold alignment not responsive to length parameter #124

Open thejonarnold opened 1 year ago

thejonarnold commented 1 year ago

This might be a user issue, but I have scoured the documentation and can't seem to figure out what I am doing wrong.

It seems like the gridfinityBaseplate generator does not move the magnet holes when the length parameter is changed.

In the image below you can see that the magnets don't quite line up: image

this code produced that image:

use <gridfinity-rebuilt-openscad-main/gridfinity-rebuilt-baseplate.scad>
use <gridfinity-rebuilt-openscad-main/gridfinity-rebuilt-bins.scad>

gridfinityInit(1, 2, height(6), 0, 50) {
        cut(0,0,50,50);
}
gridfinityBase(1,2,50,0,0,1);

translate([50,0,0])
rotate([0,180,0])
gridfinityBaseplate(1,2,50,0,0,2,true,0);

if I change all the 50s in that code to 42s then everything behaves as expected: image showing standard 42 based sizing: image

Thank you for your awesome library! Let me know if I can help in anyway!