dppdppd / The-Boardgame-Insert-Toolkit

This OpenSCAD library was created to make it easy to create board game inserts with lids for either horizontal or vertical storage, without any programming required.
293 stars 39 forks source link

Feature request: Specify/limit finger cut-out depth #41

Open MrTeamaker opened 2 years ago

MrTeamaker commented 2 years ago

Hi,

As a user of the library, I would like to be able to specify (or limit) the perpendicular size of the finger cut-out, so that I can prevent it from interacting with other box components in the same box.

Currently there's a parameter to adjust theheight and width of the cutout, however there's no way to adjust how much of the box is cut-out perpendiculary (the room into which the fingers need to fit). This is causing me issues as I have some adjacent box elements (of different sizes) and their respective cut-outs are interferring with each other.

I tried to find the right place in the library file where to at least adjust this parameter, and tracked it down to perp_size, however that in itself was not sufficient as it's having a different effect in each direction.

I'd be happy to help but would need to understand a bit more about the thinking behind how the cut-outs (and their margins) are used/calculated.

dppdppd commented 2 years ago

Can you post an example of the interference?

MrTeamaker commented 2 years ago

See sample code attached (please change file extension to .scad, would only let me upload .txt). SampleBox.txt

Box components 1 & 2 have finger cut-outs, box 3 doesn't, yet it's wall along the +x axis has been cut-out by the cut-out from box 2. It would be great if I could specify the perpendicular limit of the cut-out so that I could limit it to e.g. 6mm in which case it wouldn't interfere with the neighbouring compartment, but still cut through the wall I need.

image

Interestingly, once the CMP_CUTOUT_HEIGHT_PCT goes over 74% then the issue disappears. I assume that this is related to 75% of the height actually being 100% of the compartment depth. Also, I recall a comment in the library file that the perpendicular depth is limited to 3cm, however that does not seem to work. It's more likely though that this comment was referring to something else.

image

pkensler commented 2 years ago

I experience this issue frequently. See photo - only the one compartment on the left has a cutout (green) but the finger cutout extends to the right (the "notch" you see circled in red Screenshot 2022-08-15 172247 )