unguiculus / cutlist

Automatically exported from code.google.com/p/cutlist
1 stars 0 forks source link

increase the boardLimit constant, or describe the case in documentation #26

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Make large enough project
2. Try to make a layout
3. Get a messagebox with "no boards left or board limit blah blah..." error

What is the expected output? What do you see instead?
Working layout expected, not the messagebox with "no boards left or board limit 
blah blah..." error.

What version of the product are you using? On what operating system?
4.1.12. Win7 64, sketchup 2014 make

Please provide any additional information below.
The fix is to set "@@boardLimit = 1000" in boards.rb line 105

It takes just 1 minute on old notebook with core-i5-2520 to calculate layout 
for frame of 6x6m "single story+living mansarde" building (about 8 cubic meters 
of wood), so the comment that "this constant is set to 100 due to slow 
calculations" is kind of obsolete. And it works on just one core of the CPU 
btw, there's 4x speedup possibility if sketchup would allow multithreading.

Original issue reported on code.google.com by avam0ns...@gmail.com on 16 Oct 2014 at 10:26