Not really convinced.
Although I have limited access to QCAD/CAM using a trial version ...
I still see the "Align" strategy lists results with fewer placed parts higher in the list.
One thing that throws me off is that nesting starts with calculating xxxx NFPs (No-Fit Polygon).
The value of xxxx varies: 7528, 4887, 5099, 4928, 5593 .... And that every time I start over new with the downloaded file.
As far as I know:
- An NFP is something between two shapes and most of the basic NFP algorithms only use polygons.
- The NFP from shape A around shape B and that of B around A are identical but rotated 180 degrees.
- We can thus base the number of NFPs to be defined on combinations rather than on permutations.
And then I would presume that the combinations of 2 from N parts must be even and a fixed value ...
I know that a selection of multiple drawing entities is ordered at random but that should not make a difference for the number of combinations.
And then I see several nesting algorithms sorting parts based on size.
QCAD reports 64 parts, some have holes and many of these are polylines with bulging segments.
In 7 of the 16 holes the smallest parts (B2") can't be fitted with a margin of 12.
Holes can be treated as extra free space, as extra sheets what results in 12-19 sheets.
But then it should be even more complicated than plain combinatoric, pre-aligning is turned off but Rotations = 4.
Meaning that each part may be rotated 3 times 90 degree independent of all other and that would influence the NFP for any combination.
But C(64x4, 2) = 32640 and that makes no sense ...?!
Once a single piece is placed in a trial the free area changes what would influence the placement of all others.
Something as 'inner NFPs'.
@ jbergen:
The calculation time suffers mostly from quite complicated and especially from curved shapes.
For example: 'STERN' has 397 vertices and the NFP with a simple shape like 'CASE' has already 419 vertices.
Let's take C(64 ,2) = 2016 times an average of 200 vertices and we are talking about over 400k vertices.
There are segments less than 1.8mm long for an overall size of 4.4 meter.
Is there a sound reason why the parts are described in such fine details?
See App.Prefs. .. Modify .. Explode for the preferences of the Explode (
XP) method.
May I remark that the larger parts 'B2' are not closed polylines, the gaps are just over 0.20... large (See near red start marker).
Some parts are not fully symmetrical.
These curved polylines probably originate from splines and then the orientation may matter when exploding to polylines.
This is because bi-arc fitting is not preformed optimal, QCAD halts refining when it meets the tolerance condition.
I would mirror the resulting polylines from one half and merge them together.
I also note that there are already 3 text entities on the bottom sheet.
Wondering why the panels are 1.6 shorter and 0.8 narrower than standard imperial size panel.
The sheet size accuracy would not matter with a 12 units margin or is there another reason ...
I took the liberty to use 2-3 of your shapes for another test:
https://www.qcad.org/rsforum/viewtopic. ... 489#p43489
Regards,
CVH