jerry800416 / 3D-bin-packing

3D Bin Packing improvements based on https://github.com/enzoruiz/3dbinpacking
MIT License
158 stars 44 forks source link

There is no implementation of writing the part number on the item in example 6 #16

Closed mr-135 closed 1 year ago

jerry800416 commented 1 year ago

please read README about How to use. you must set write_num=True

for b in packer :
    painter = Painter(b)
    fig = painter.plotBoxAndItems(
        title=b.partno,
        alpha=0.2,         # set item alpha
        write_num=True,    # open/close write part number 
        fontsize=10        # control write_num fontsize
    )
fig.show() 

It is also recommended to set alpha to 0.2

mr-135 commented 1 year ago

The problem has been solved, thank you very much!

At 2023-06-29 15:03:25, "Shiu Ruei-Chang" @.***> wrote:

please read README about How to use. you must set write_num=True for b in packer : painter = Painter(b) fig = painter.plotBoxAndItems( title=b.partno, alpha=0.2, # set item alpha write_num=True, # open/close write part number fontsize=10 # control write_num fontsize ) fig.show()

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

jerry800416 commented 1 year ago

This issue has been resolved, please reopen if you have other questions.