Skip to content
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

Prevent stacking #310

Open
UdoW opened this issue May 25, 2021 · 7 comments
Open

Prevent stacking #310

UdoW opened this issue May 25, 2021 · 7 comments

Comments

@UdoW
Copy link
Contributor

UdoW commented May 25, 2021

How could I prevent stacking of boxes?

I have some boxes which I want to mark so that no other box may be stacked on top of it. How could I do this?

@skjolber
Copy link
Owner

You cannot currently do that. There is a 2.x branch which will account for that kind of constraints, but it is pretty far from complete.

@UdoW
Copy link
Contributor Author

UdoW commented May 25, 2021

How could I test this feature? Are there some examples or documentation?

@UdoW
Copy link
Contributor Author

UdoW commented May 25, 2021

How can I test out this branch? What are the Maven coordinates?

Or should I build the branch for myself?

@skjolber
Copy link
Owner

There is no snapshot published yet, so look at the code branch. The model is still being worked on - packaging does not really work yet. But if you want, see if the model encompasses your requirements.

@skjolber
Copy link
Owner

skjolber commented Jan 9, 2022

@UdoW could you try the new StackConstraint class?

@UdoW
Copy link
Contributor Author

UdoW commented Feb 10, 2022

@skjolber , I tried to use the version 2 of your framework. I have now more questions than before:

  1. How do I find out which elements got placed after I ran the packager?
  2. How do I find out what the placed position of the elments are after I ran the packager?
  3. How could I find out how big a Container is after I created one? Previously I could ask the Container class for the dimensions.
  4. How is Placement2D different to Placement3D?

For me, a lot of documentation is missing on how to use everything.

@skjolber
Copy link
Owner

Hi,

  1. Get the Stack from the Container.
  2. The Stack contains a list of placements (and the orientation of the Container when stacking)
  3. Dimensions (++) now live in the so-called StackValue class. Try using getStackValues().
  4. 2D vs 3D? So 2D is somewhat simpler / faster.

Feel free to suggest improvements to the docs, also this implementation currently has no tree-like structure to manage complex stacking constraints (like max weight).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants