Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NFP Error when one of side is equal to one of side of bin #94

Open
nikopeikrishvili opened this issue Oct 15, 2020 · 0 comments
Open

NFP Error when one of side is equal to one of side of bin #94

nikopeikrishvili opened this issue Oct 15, 2020 · 0 comments

Comments

@nikopeikrishvili
Copy link

nikopeikrishvili commented Oct 15, 2020

Hello I have bin 4'X8'
and a couple of one rectangle 4'X5
spacing: 0.125
rotation: 4
when I run the script I am getting NFP Error
here are a some debug of A and B shapes

A: 0 0 95.875 47.875 geometryutil.js:1399 B: -0.0625 -0.0625 60.0625 48.0625 geometryutil.js:1400 X : 60.0625--0.0625 > 95.875-0 = 60.125 > 95.875 geometryutil.js:1404 Y : 48.0625--0.0625 > 47.875-0 = 48.125 > 47.875

this is resut from noFitPolygonRectangle function,
function returns null becouse of : 48.125 > 47.875
if(maxBy-minBy > maxAy-minAy){ return null; }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant