Giter VIP home page Giter VIP logo

Comments (7)

Pomax avatar Pomax commented on September 13, 2024

agreed, making as enhancement, although I've been unhappy with the code that's been in place on bezierinfo for quite a while now. I need to find some time to actually write a better implementation, but that time's hard to come by.

from bezierjs.

jarek-foksa avatar jarek-foksa commented on September 13, 2024

@Pomax What is wrong with the existing implementation you have done in Processing? Does it fail with some edge cases?

from bezierjs.

Pomax avatar Pomax commented on September 13, 2024

yeah, it doesn't deal with colinear overlap, or point incidence (e.g. two shapes overlapping on the same hull point). It forms ... rather weird things

from bezierjs.

jarek-foksa avatar jarek-foksa commented on September 13, 2024

What do you think about VectorBoolean library that is used by Sketch.app? The library was initially written in Objective-C, but there is a Swift port which should be rather easy to port to JavaScript.

I was also thinking about porting the new intersection graph from 2Geom. Both VectorBoolean and 2Geom implementations look solid, but I find the 2Geom C++ code much harder to understand.

from bezierjs.

Pomax avatar Pomax commented on September 13, 2024

honestly at this point I'm using paper.js for shape operations, as it has pretty well implemented boolean operation support. (see http://paperjs.org/reference/compoundpath/#unite-path etc).

Example of use in another project: https://github.com/Pomax/quick-glyph-maker/blob/gh-pages/utils.js#L29

from bezierjs.

jarek-foksa avatar jarek-foksa commented on September 13, 2024

@Pomax Thanks for hint, I wasn't aware of the recent improvements to Paper.js, it looks like it can handle almost all edge cases now.

from bezierjs.

Pomax avatar Pomax commented on September 13, 2024

closing as I'm using paper.js for this myself.

from bezierjs.

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.