-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Description
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:
from pynest2d import *
volume = Box(2000, 2000)
config = NfpConfig()
config.accuracy = 1.0
# config.alignment = NfpConfig.Alignment.BOTTOM_LEFT
# config.alignment = NfpConfig.Alignment.BOTTOM_RIGHT
# config.alignment = NfpConfig.Alignment.CENTER
# config.alignment = NfpConfig.Alignment.DONT_ALIGN
config.alignment = NfpConfig.Alignment.TOP_LEFT
# config.alignment = NfpConfig.Alignment.TOP_RIGHT
# config.starting_point = NfpConfig.Alignment.BOTTOM_LEFT
# config.starting_point = NfpConfig.Alignment.BOTTOM_RIGHT
# config.starting_point = NfpConfig.Alignment.CENTER
# config.starting_point = NfpConfig.Alignment.DONT_ALIGN
config.starting_point = NfpConfig.Alignment.TOP_LEFT
# config.starting_point = NfpConfig.Alignment.TOP_RIGHT
spacing = 1
num_bins = nest(List_Items, volume, spacing, config)Had tried all options of alignment, starting_point, get some strange result:

Metadata
Metadata
Assignees
Labels
No labels