Giter Club home page Giter Club logo

Comments (2)

Ghostkeeper avatar Ghostkeeper commented on June 23, 2024
/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.

erathke avatar erathke commented on June 23, 2024
/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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.