Skip to content

Test the performance of adjusting the cutting plane choice in CSG.js

Notifications You must be signed in to change notification settings

AllwineDesigns/csgjs_test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Purpose

Testing performance of adjusting which slicing plane to pick while building the BSP tree in CSG.js

How to test

git clone https://github.com/AllwineDesigns/csgjs_test.git
cd csgjs_test
npm install
cp trees.js node_modules/@jscad/csg/src/trees.js
src/stl_boolean.js -a stl/torus.stl -b stl/sphere.stl -u out.stl

Make adjustments

Change the index that is chosen on line 485 of node_modules/@jscad/csg/src/trees.js to see how it affects performance. The torus and sphere provided show the most dramatic performance improvement that I've seen, but other models often see an improvement as well.

About

Test the performance of adjusting the cutting plane choice in CSG.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published