jasonrhansen / cut-optimizer-2d-server

Cut Optimizer 2D Server
Other
1 stars 3 forks source link

Documentation #1

Open vmario89 opened 3 years ago

vmario89 commented 3 years ago

Dear Jason, thanks for providing all those git repos. Actually i am looking to find some docs to get some infos about the installation. What should we do to run your cut optimizer with a GUI or from shell? i saw a lot of different libs/repos at your site.

So far i was able to do

git clone https://github.com/jasonrhansen/cut-optimizer-2d-server.git
cd cut-optimizer-2d-server
cargo build
cd ./target/debug/
/cut-optimizer-2d-server -v #launch on port 3030 with some verbose infos
#sudo dnf install -y nodejs
git clone https://github.com/jasonrhansen/cut-optimizer-2d-ng
cd cut-optimizer-2d-ng/
#npm install -g @angular/cli
npm install #install required node packages
ng build #then build with Angular CLI
ng serve #server online -> http://localhost:4200/

grafik

is there some PDF export or SVG export? how to start the GUI without prefilled data?

what are ...

... for?

some thoughts on it also:

thanks and best regards, Mario

jasonrhansen commented 3 years ago

Hi Mario,

Unfortunately cut-optimizer-2d-ng is more of a prototype/demo than a full-fledged application. I haven't built a real native or web app around it other than this.

However, the core library cut-optimizer-2d that it depends on to perform the cut optimization is production ready and could be used to build out such an application.

There is a program written by someone else called freecut that uses cut-optimizer-2d, but I haven't used it myself. It looks like it can be used to export PDFs. Maybe you should give it a try.

cut-optimizer-2d-web is just a thin wrapper around the library that allows it to be compiled to WebAssembly so it can run in a web browser client side and used from JavaScript. This could be used as an alternative to running the optimizer on a server.