fixed centering of hindge_conveyor_standarSlideY()
This commit is contained in:
@@ -35,13 +35,15 @@ The arcCompenstate param could present the 'standard' slide recipes
|
|||||||
No image published.
|
No image published.
|
||||||
Not yet mapped for potential uses.
|
Not yet mapped for potential uses.
|
||||||
-------------------------------------------------------------------------- */
|
-------------------------------------------------------------------------- */
|
||||||
hindge_conveyor_standarSlideY(dimSlideY=8, drawPairs=2);
|
hindge_conveyor_standarSlideY(dimSlideY=8, drawPairs=3);
|
||||||
module hindge_conveyor_standarSlideY(dimSlideY, drawPairs) {
|
module hindge_conveyor_standarSlideY(dimSlideY, drawPairs) {
|
||||||
|
|
||||||
minSlideX = wClosedEnd-(1.25*wd); // Minium distance for a functional print
|
minSlideX = wClosedEnd-(1.25*wd); // Minium distance for a functional print
|
||||||
arrayMoveX = (2*wClosedEnd)-(2.5*wd); // moves the stamps in locked pairs
|
arrayMoveX = (2*wClosedEnd)-(2.5*wd); // moves the stamps in locked pairs
|
||||||
|
//centerX = ((0.5*drawPairs)*arrayMoveX)-(wClosedEnd-(1.25*wd));
|
||||||
|
centerX = 0.5*(drawPairs*arrayMoveX)+(wClosedEnd-(1.25*wd));
|
||||||
|
|
||||||
translate([-((0.5*drawPairs)*arrayMoveX), 0, 0]) // move back to center
|
translate([-centerX, 0, 0]) // move back to center
|
||||||
for (i = [1:drawPairs]) { translate([(i*arrayMoveX), 0, 0])
|
for (i = [1:drawPairs]) { translate([(i*arrayMoveX), 0, 0])
|
||||||
hinged_conveyor_sided(slideX=minSlideX, slideY=dimSegmentY[dimSlideY]);
|
hinged_conveyor_sided(slideX=minSlideX, slideY=dimSegmentY[dimSlideY]);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user