Code Monkey home page Code Monkey logo

Comments (4)

elmotec avatar elmotec commented on May 13, 2024

Thanks for the feedback. The documentation was an easy fix. The packing not so much but I manage to improve it a little. I added some of the test cases from the Huang paper (whose algorithm is not fully implemented) to get a sense of how far we are and though it's not as bad as your screenshot anymore we are still between 10% and 25% worse.

The screenshot below is the output with the new algorithm. I will release an update today.

Figure_1

from circlify.

elmotec avatar elmotec commented on May 13, 2024

Closing with release v0.13

from circlify.

dreammirror000 avatar dreammirror000 commented on May 13, 2024

Thank you again for your work.
This code may be mainly used for infographics, however, its potentiel application in engineering is huge, among then, the conception of electrical harness. Keep up the work. I would gladly share other recommandation if you want.

from circlify.

elmotec avatar elmotec commented on May 13, 2024

Thanks. To be honest, I have not been able to reproduce exactly the A1.5 algorithm and I settled for a heuristic that gives decent enough results (at least 83% of the density results in the paper) relatively quickly. The cost of the configuration to be minimized is the sum of the distance to the other circles weighted by the radius of that other circle so we try to place smaller circles close to the big ones. I imagine that for design purposes a more expensive approach based on combinatorial problems theory would give better results but much more slowly.

It's just a hobby and I don't have too much time for it but feel free to send feedback or PRs.

from circlify.

Related Issues (11)

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.