3d-bin-container-packing icon indicating copy to clipboard operation
3d-bin-container-packing copied to clipboard

simple javafx visu

Open arminhaaf opened this issue 3 years ago • 6 comments

I implemented a simpe JavaFX Visualization, if you are interested, just integrate it...

arminhaaf avatar Jan 07 '22 16:01 arminhaaf

added a step by step viewer, which show the algorithm by render each placement and the calculated free spaces step by step -> it helped me a lot to understand the algorithm

arminhaaf avatar Jan 08 '22 20:01 arminhaaf

@arminhaaf looks very interesting. I am about to merge a big change into the master branch, so perhaps hold your horses a little bit.

skjolber avatar Jan 09 '22 17:01 skjolber

also added simple bag semantics -> instead using a fixed sized box, a bag may change its dimensions a simple solution for bags could be to change the dimensions for first product and after first level is done -> see the code

arminhaaf avatar Jan 09 '22 17:01 arminhaaf

Bag semantics seems to work now, had some problems to find the correct places to adapt the bag size...

arminhaaf avatar Jan 09 '22 19:01 arminhaaf

@arminhaaf very interesting with the bag logic. The recent v2.x release is a major improvement, do you think you'd be able to migrate the code?

skjolber avatar Jan 21 '22 16:01 skjolber

@skjolber its hard to understand the changes in version 2.0. Maybe you can explain the ideas behind the changes.

I would like to migrate the visualization also...

I need the following code position for simple bag semantics

  • selection of the first item for the target container -> bag has special semantics here
  • switch to the next level -> to adapt the bag to the size of the first level

for the visualisation a callback would be good (this is the callback interface i introduced in version 1:

public interface PackCallback {

default void freeSpacesCalculated(List<Space> pFreeSpaces) {
}

default void placementAdded(Placement pPlacement) {
}

default void levelAdded(Container pContainer, long pNewLevel) {
}

default void packDone() {
}

}

for me its hard to find the relevant code positions in the new version without some help...

arminhaaf avatar Jan 22 '22 20:01 arminhaaf