Skip to content

Conversation

@glenn20
Copy link

@glenn20 glenn20 commented Jan 5, 2026

This PR adds support for a thin stacking lip style (eg. see the thin lip style at https://gridfinitygenerator.com).

The thin stacking lip style modifies the bottom section of the stacking lip profile to create a more streamlined appearance and feel, while reducing the ability to stack bins securely compared to the standard stacking lip. I find the thin lip style more useful and aesthetically pleasing for simple desk drawer oranisers.

This option can be toggled on or off via a new property (StackingLipThinStyle) in the Gridfinity feature settings. The option is disabled by default.

This PR consists of 4 separate commits:

  1. feature/fix: Adjust scoop creation to account for stacking lip abscence.
    • Adjust the positioning of the scoop when the stacking lip is disabled, ensuring it aligns flush with the bin walls. This is a minor bug fix for the existing scoop generation code.
  2. feature: Add option for a thin stacking lip style.
    • Implements the core functionality of this PR to generate an optional thin stacking lip style.
  3. fix: Adjust position of scoop and shelf for thin stacking lip style.
    • Corrects the position of the shelf and scoop when the thin stacking lip style is enabled.
  4. refactor: Consolidate stacking lip offset calculation into a helper function.
    • A minor refactor to improve code consolidation and readability.

I have not created any automated tests for this PR, but I have extensively tested and printed test objects with various combinations with scoops and shelves enabled/disabled and the various lip styles (off, thin, full).

I am happy to squash or reorganise these commits to suit the needs of the project.

Closes #114
Closes #101
Closes #70

Adjust the positioning of the scoop when the stacking lip is disabled,
ensuring it aligns flush with the bin walls.

Because the scoop is now flush with the bin wall, we also need to trim
the scoop to prevent it from extending beyond the rounded corners of
the bin when no stacking lip is present.
The thin stacking lip style modifies the bottom section of the stacking
lip profile to create a more streamlined appearance, while reducing the
ability to stack bins securely compared to the standard stacking lip.

This option can be toggled on or off via a new property in the
Gridfinity feature settings.
Reduce the width of the shelf and adjust the scoop position when the
thin stacking lip style is selected, ensuring consistent alignment.
…unction.

Consolidate the calculation of the stacking lip offset into a dedicated
`_stacking_lip_offset()` helper function (adjacent to the
`_stacking_lip_profile()` function). This function computes the width of
the stacking lip relative to the inside wall. This is used
in `make_label_shelf()` and `make_scoop()` to ensure consistent
calculations and improve code readability.
@glenn20
Copy link
Author

glenn20 commented Jan 5, 2026

Oh, and I'd like to express my thanks and admiration for the work to provide this exceedingly useful addon for freecad.

To illustrate the impacts of the proposed changes....

The original "thick-lipped" stacking lip style vs the new "thin-lipped" style:

Screenshot from 2026-01-05 19-26-20 Screenshot from 2026-01-05 19-26-40

Showing the new location of the scoop when the stacking lip is disabled:

Screenshot from 2026-01-05 21-00-51

The new scoop positions for the "thick-lipped" style and the new "thin-lipped" style:

Screenshot from 2026-01-05 20-54-15 Screenshot from 2026-01-05 20-59-00

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant