Comments (2)
/usr/ports/pobj/pynest2d-4.8.0-python3/build-amd64-python3/src/sippynest2dpart3.cpp:283:30: error: no member named 'isDisallowedArea' in 'libnest2d::_ItemClipperLib::Polygon'
sipRes = sipCpp->isDisallowedArea();
~~~~~~ ^
/usr/ports/pobj/pynest2d-4.8.0-python3/build-amd64-python3/src/sippynest2dpart3.cpp:356:21: error: no member named 'markAsDisallowedAreaInBin' in 'libnest2d::_ItemClipperLib::Polygon'
sipCpp->markAsDisallowedAreaInBin(a0);
These two are the real errors you're encountering and it's not anything to do with the SIP version but rather the libnest2d version.
When we developed those Python bindings for usage in Cura we also added a feature to libnest2d: Disallowed areas. This is something that Cura kind of needs in order to work properly. It has locations on the build plate where models are not allowed to be positioned, but models shouldn't be positioned next to those locations either (they should start aligned in the middle). We made a pull request to add this: tamasmeszaros/libnest2d#18 However this pull request is not merged due to foreseen issues.
The solution, for now, is to use Ultimaker's version of libnest2d with the feature added, rather than the mainline version: https://github.com/Ultimaker/libnest2d/tree/CURA-7754_add_disallowed_areas
from pynest2d.
/usr/ports/pobj/pynest2d-4.8.0-python3/build-amd64-python3/src/sippynest2dpart3.cpp:283:30: error: no member named 'isDisallowedArea' in 'libnest2d::_ItemClipperLib::Polygon' sipRes = sipCpp->isDisallowedArea(); ~~~~~~ ^ /usr/ports/pobj/pynest2d-4.8.0-python3/build-amd64-python3/src/sippynest2dpart3.cpp:356:21: error: no member named 'markAsDisallowedAreaInBin' in 'libnest2d::_ItemClipperLib::Polygon' sipCpp->markAsDisallowedAreaInBin(a0);
These two are the real errors you're encountering and it's not anything to do with the SIP version but rather the libnest2d version.
When we developed those Python bindings for usage in Cura we also added a feature to libnest2d: Disallowed areas. This is something that Cura kind of needs in order to work properly. It has locations on the build plate where models are not allowed to be positioned, but models shouldn't be positioned next to those locations either (they should start aligned in the middle). We made a pull request to add this: tamasmeszaros/libnest2d#18 However this pull request is not merged due to foreseen issues.
The solution, for now, is to use Ultimaker's version of libnest2d with the feature added, rather than the mainline version: https://github.com/Ultimaker/libnest2d/tree/CURA-7754_add_disallowed_areas
It works! Thanks for your help!
Have a good week!
from pynest2d.
Related Issues (13)
- Action Required: Fix WhiteSource Configuration File - .whitesource
- Cannot compile 4.13-beta HOT 2
- Shape mirrored after applying `.transformedShape()` after nest HOT 1
- Drop in favor of markfink/nest2D (LGPL now!) HOT 1
- Overlapped polygons output HOT 2
- Error and can't Install & Build pynest2d
- [Doubt] - Using BottomLeftConfig HOT 2
- Can't build mac m1 HOT 1
- cmake error at cmakelist.txt:5 (find_package)
- Nesting result in a circle but not a rectangle HOT 8
- Built on Linux, how to use in venv HOT 3
- Tag release for libnest2d HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pynest2d.