-
Notifications
You must be signed in to change notification settings - Fork 105
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
why merge function throw GeometryException ? #31
Comments
If you followed the code, you can see that it throws if clipper.AddPath return false. Ask clipper why he does that. |
This is my typesetting implementation part int Length = 1500;
|
Hi! I did a quick check with my tests for the library when the bin box has been specified with a center. It should work, I'm sorry to say but I don't know what the issue might be for your case. |
Ou, I see now what your problem is. You where expecting the boxes to be aligned beside each other and not in that tetris shape. The library is not specially intended for aligning a few parts nicely, but to fit many (potentially different) parts into the specified region as tightly as possible. |
Thank you very much, according to your guidance, I successfully obtained my expected layout graphics. |
Hi, I found a problem when using it, when I set the item |
This is intentional. In general, the packed items may not fit into a single bin only. If this happens, more virtual bins are allocated and the nesting continues in the new bins. The binId is an output property after the nesting and tells you the virtual bin index in which the Item is positioned. Zero means that the item is in the first bin. If the binId() returns less than zero, it means the item could not be nested for some reason (e. g. it was too big to fit into a bin). It may be confusing that this property can be written before the packing. I guess there is no use for that currently, and should be made read only. I will consider that. |
Okay, I understand what you mean. But when I used it again, I found that |
I followed the code given in the case and tested it with my own data. An exception was thrown in the place of the meger function. Why?
The text was updated successfully, but these errors were encountered: