Giter Site home page Giter Site logo

swiftclipper's People

Contributors

jarvis-huang avatar lhuanyu avatar literalpie avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

swiftclipper's Issues

Memory leak?

First, thank you so much for this library! It is exactly what I needed for a little project I've been working on.

I believe this library is causing a memory leak in my app. I use the "intersection" functionality pretty heavily, and memory usage goes up over time. Analysis with Instruments and other Xcode tools leaks me to think that there is a strong circular reference between OutPt types, as shown in this image:
image

I believe I was able to eliminate the leak by making next and prev weak (but I did a lot of messy workarounds to prove that out - I probably broke other functionality in the process).

I believe TEdge has a similar issue:
image

Please let me know if you need more information. I can put some time into trying to create a minimal repro if needed.

Possible to do union between "Paths"?

I have two Paths - previousPaths and currentPaths, and I wish to find the intersections between them, as a single Paths. My thought here is that I could potentially find the intersections between currentPaths and each individual Path in previousPaths, which gets me an array of Paths. Now, I wish to unionise them. Perhaps I'm taking the wrong approach, but it's unclear to me how to do this.

Does there needed to be a function added for union(path: Path)?

var intersections = [Paths]()

for path in previousPaths {
	let intersection = currentPaths.intersection(path)
	intersections.append(intersection)
}

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.