-
Notifications
You must be signed in to change notification settings - Fork 15
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
Nesting result in a circle but not a rectangle #28
Comments
After search through Google and Github, I try Ask Claude AI A:
To properly debug, I would start by printing out the bounding box coordinates and enabling visual output to see exactly what is happening. Also try nesting just a few rectangles first to check the baseline behavior. With some targeted debugging and experimentation, you should be able to get the desired rectangular nesting. |
Come across a similar question on libnest2d: Strange "starting_point" behavior in NfpPlacer · Issue #52 · tamasmeszaros/libnest2d |
try nest() with BottomLeft Placer config_rect = BottomLeftConfig()
config_rect.allow_rotations = False
num_bins = nest(List_Items, volume, spacing, config_rect) get this error
help(nest)
:param config: An NfpConfig instance that contains configuration options seems only NfpConfig is supported. |
look into source code of libnest2d, seems BottomLeftPlacer is implemented as well. libnest2d/src/libnest2d.cpp at 359d71fb4e5a951c17228f4be75b432187ca4993 · Ultimaker/libnest2d |
So to use BottomLeftPlacer, seems I have to change some code and build a new pynest2d.pyd pynest2d/python/pynest2d.sip at main · Ultimaker/pynest2d |
I try to Nesting some random Items (100 rectangle of random size), and get this result:
But supposed to get something like this:
I use pynest2d.pyd from UltiMaker Cura 5.4.0.
main part of code related:
Had tried all options of alignment, starting_point, get some strange result:
The text was updated successfully, but these errors were encountered: