-
Notifications
You must be signed in to change notification settings - Fork 362
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
StorageShelf and UniversalBox do not work with Edgetype "t" - Triangle for handle #406
Comments
tested on your https://www.festi.info/boxes.py/ server... |
That is known issue |
If in universalbox.py line 78 So maybe someone with deeper knowledge about the need of this adjustment should have a look... |
if just comment this line, then the height of the layout is calculated incorrectly I suggest this option.
on line 78 |
I see the easiest way to solve the issue, is just ignore the height of the Triangle handle, but keep considering the height of other |
this sounds like an easy solution. Guess I have been overthinking this issue. |
Guys I must appologise - I was to tired to get this sorted out yesterday, I should have stopped programming earlier. Now, after a few hours of sleep, I guess I figured it out: The problem is that the default values of most generators specify an OUTSIDE hight of 100mm. The default heigt of the Triange on the other hand is 150mm. This can't fit, so the height computes negative and this destorts the output. I propose following 2 steps:
|
I like this idea, to change default On first pic, parameters for So we have 2 completely different boxes turned out, I think we need to change
|
For me, these pictures seems to be OK. From my understanding, the "outside" parameter, as described here: https://florianfesti.github.io/boxes/html/usermanual.html#outside, works as follows:
But please correct me if I am wrong... |
I really don't like such a strong difference in layouts. Anyway, Logic should be standard for all layouts You're right. |
Yeah, this issue is more complicated than it looks at first glance. If now reduced the default height of the triangle to 50 which makes the issue go away for the default values. But it does not address the underlying issues: There is no check for values that mess up the generators. This is to some extend by design. Weird values may be useful e.g. for creating a lid from a box with a stackable edge at the bottom and zero height. But this made into more of a problem by not telling the users the results of the Guess |
Tested with default settings, just top_edge parameter set to "t"
TypeTray seems to work fine...
The text was updated successfully, but these errors were encountered: