Dalsoo-Bin-Packing icon indicating copy to clipboard operation
Dalsoo-Bin-Packing copied to clipboard

How to run?

Open vikingee opened this issue 5 years ago • 5 comments

How to run this application? Could you give an example?

vikingee avatar May 01 '19 13:05 vikingee

Hi, vikingee

There is TestMultiSheets1b.java as an example. It uses an external library core.jar (https://processing.org) for displaying the 3D shapes.

You can replace the data in double[][][] randompolys; //the input polygons with the data of the polygons that you want to pack.

best Hua

whitegreen avatar May 03 '19 02:05 whitegreen

To input cad drawing, you may use https://github.com/whitegreen/Import-DXF

whitegreen avatar May 03 '19 02:05 whitegreen

I cant get it to run javac -cp '.:processing.core.jar:pack.core.jar' TestMultiSheets1b.java

TestMultiSheets1b.java:9: error: package processing.core does not exist
import processing.core.PApplet;
[ @ Dalsoo-Bin-Packing]$ ls *
dalsoo.jar  LICENSE  multiple.png  README.md  single.png  TestMultiSheets1b.java

pack:
Convex.java  core.jar  M.java  Pack.java  Strip.java

processing:
core.jar

Cfouria avatar Apr 29 '20 22:04 Cfouria

Dear friend, I suppose you need core.jar (a third part library for visualization) to run the example. I uploaded core.jar today.

whitegreen avatar May 11 '20 23:05 whitegreen

thank you! The core.jar I found seems to be different.

Cfouria avatar May 12 '20 02:05 Cfouria