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

Sample Code does not work at all #41

Open
SneakyPeaky opened this issue Aug 31, 2021 · 2 comments
Open

Sample Code does not work at all #41

SneakyPeaky opened this issue Aug 31, 2021 · 2 comments

Comments

@SneakyPeaky
Copy link

I tried running the sample code from the main page but it did not move any polygons and moved all of them in separate bins. Can you advice?
2021-08-31_124245_2

@dougalharris
Copy link

Hi,
I have the same issue.
I get no rotations or translations either when trying to get the output (always zero)...

// Retrieve resulting geometries
for (Item& r : input) {
	auto polygon = r.transformedShape();
	auto rotation=r.rotation();
	auto translation=r.translation();
}

thanks.

@dougalharris
Copy link

Ok figured out what was happening in my instance, had to define a threading type via a preprocessor definition, i used:
LIBNEST2D_THREADING_std
fixed the issue.
Cheers.

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

2 participants