JSCut.org

From Wurst-Wasser.net
(Redirected from JsCut)
Jump to navigation Jump to search

About

JSCut.org is a website that lets you create GCODE for your mill.

See: https://jscut.org/


💡 Tipps:
  • If you're creating your own SVG, make sure the pockets are "closed paths", meaning "areas", not open paths. Also use only infill, no stroke!
  • Adding tabs with Inkscape:



ℹ️ JSCut is awesome, but has downsides:
  • Can't create tabs (or won't work at the time of testing)
  • Won't cut open-ended paths, only closed paths. Will close path if open with strange results
  • jscut ignores stroke and follows the actual path not the visible dimensions (Say you (using Inkscape)have a square 100x100mm and stroke 10mm, then jscut will cut 5/5 to 5/95 to 95/95 to 95/5! → Design in Inkscape W/O STROKE (only fill)!

More about JSCut: https://www.youtube.com/watch?v=dVgf0Hf91vA

Since JSCut isn't developed any more, try using it's successor: Laserweb

  • Create SVG with Inkscape
  • Launch https://jscut.org/
  • Open SVG
  • Set units correctly (in my case mm)
  • Set speeds and diameters, material strength and so on...
  • Select object
  • Generate operation
  • Preview
  • Repeat operation-generation for all your objects
  • Download
  • Hope for the best :)

Creating Tabs With JSCut

This is how it should work: https://www.youtube.com/watch?v=lwCatZ6q2Vw

Unfortunately this functionality seems to be broken on [1]

cam-cpp.js is unavailable; tried the following paths:
js/cam-cpp.js
http://api.jscut.org/js/cam-cpp.js
on https://jscut.org

…I installed my own server:

noc:/srv/www/htdocs/jscut # make
cd cpp && em++ cam.cpp hspocket.cpp separateTabs.cpp vEngrave.cpp -I ../../boost_1_56_0 -std=c++11 --memory-init-file 0 -fcolor-diagnostics -Wall -Wextra -Wno-unused-function -Wno-unused-parameter -Wno-unused-variable -Wno-logical-op-parentheses -s 

ASSERTIONS=0 -s ALLOW_MEMORY_GROWTH=1 -s SAFE_HEAP=0 -s DISABLE_EXCEPTION_CATCHING=1 -s FORCE_ALIGNED_MEMORY=1 -s NO_EXIT_RUNTIME=1 -s EXPORTED_FUNCTIONS="['_hspocket', '_separateTabs', '_vPocket']" -o ../js/cam-cpp.js -O3 --llvm-lto 1

/bin/sh: line 1: em++: command not found
make: *** [Makefile:63: default] Error 127
noc:/srv/www/htdocs/jscut # 

Ooookay...

wget https://github.com/emscripten-core/emsdk/archive/refs/heads/main.zip
unzip main.zip
cd emsdk-main/
./emsdk install latest
./emsdk activate latest

Adding this to .bash_profile:

 PATH=$PATH:/root/emsdk-main:/root/emsdk-main/upstream/emscripten:/root/emsdk-main/node/16.20.0_64bit/bin
 EMSDK=/root/emsdk-main
 EMSDK_NODE=/root/emsdk-main/node/16.20.0_64bit/bin/node

Which lead to...

em++: error: --memory-init-file is no longer supported

Then I removed the line from Makefile

em++: error: invalid command line setting `-sFORCE_ALIGNED_MEMORY=1`: forced aligned memory is not supported in fastcomp

Removed it, too.

./cam.h:22:10: fatal error: 'boost/polygon/polygon.hpp' file not found

Which lead to...

wget https://boostorg.jfrog.io/artifactory/main/release/1.84.0/source/boost_1_84_0.tar.gz
tar xzf boost_1_84_0.tar.gz 
mv cpp/boost ../boost_1_56_0

THEN I IT COMPILED! UNBELIEVABLE! And no errors in UI!

But the created gcode seems to be b0rken, so this plan is out of the window.

It's 10 years old and its over. Whats the successor? (LaserWeb4)


See also