Code Monkey home page Code Monkey logo

Comments (1)

ioannaMitropoulou avatar ioannaMitropoulou commented on June 6, 2024

Ok, I found the problem. B
oth slicers were identifying all paths as closed, so for all paths it was is_closed = True. (For cgal slicer all paths are closed by default, for default slicer it checks the mesh connectivity).

The problem was instead in the order of post-processing operations in the Path + Base_slicer class. First we closed the path by duplicating first pt, then we changed the seam position and orientation. This is a bad idea, because like that we can end up with a duplicate pt in the middle of the path, and other than that the path seems to be open, although it has is_closed = True, and it has been closed. So I believe this could explain both the holes and the mysterious duplicate pts warnings that we have been having.

I will make a PR to master with the fix. Basically I move the closing of the path, from the Path class to the Base_slicer post-processing functions, so that it happens after everything else has happened. This seems to me to solve the problem.

Let me know if u see sth similar again. nice catch!

from compas_slicer.

Related Issues (20)

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.