Conversation
The labels can be aligned to the bin or to the division. If you add divider walls it becomes clear. Thanks for the PR. |
|
Ah, I see it now. I was not treating width as gridfinity units, so things always spanned the entire width. I'll need at least a commit to fix that, and I might tinker with the "*chamber" alignments. |
modules/module_gridfinity_cup.scad
Outdated
| sliding_lid_lip_enabled); | ||
| sliding_lid_lip_enabled, | ||
| slidingLidExposesLabel = sliding_lid_exposes_label, | ||
| labelSettings = label_settings); |
There was a problem hiding this comment.
This wont work with the latest code, due to how and where the SlidingLidSettings is created.
It's prob not ideal to add the label_settings to the slidingLidSetings anyway, as it creates a dependency issue.
My suggestion would be to pass label_settings, as a parameter to the function that needs it.
|
I think to do this correctly, we need to use similar logic to create the label holes positions as what is used for the label positions. First we would create the divider locations. Then we need to replicate the logic in Alternatively, we could only support bin aligned labels which might will cover most cases needed and is a lot simpler. One other thought, I added locking nubs to the lid, this might need to be repositioned, when there is a label cutout. |
|
For the last hour or so, I've been noodling with something along similar lines. Instead of trying to make that explicit extra cutout for the label(s) in Subtracting out the label footprints does leave a nagging problem for multi-chamber cups. The chamber dividers would be left covered by the lid. Since they are pretty narrow, that's kind of undesirable. But, as you noted, the current code structure makes all of complicated. It might be counterproductive for me to try to refactor all of that myself. (It would be pretty awesome if there were an IDE that had reliable refactoring for OpenSCAD files.) |
I did a commit that moves it as suggested. I'm not sure I'll be able to move forward on the alternate strategy (the label footprint) due to the large amount of refactoring and code churn that would be involved. |
|
I figured out a way to refactor things that isn't too brutal. I've got it working locally and will likely push the commit on Wednesday after some more testing. |





This is a full or partial fix for issue #132, depending on your point of view. It adds an option to provide a cutout that exactly matches a back wall label. Labels on other walls are not addressed. I was unclear on what label alignments "leftchamber", "centerchamber", and "rightchamber" did, so I treated them all the same as "center".
Here's an example of a 1x1 cup with a full-width standard sized pred label:
Here is a 20mm wide normal label with center alignment:
Here it is with left alignment:
And here with right alignment: