Giter Club home page Giter Club logo

pyclipr's People

Contributors

drlukeparry avatar yishimichael avatar

Stargazers

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

Watchers

 avatar  avatar

pyclipr's Issues

Issue with polygon merging

Hi,

I am having issue with polygons merging.

If a create a bunch of polygons as:

# Make a bunch of rectangles
tot = []
tot.append(np.array([[  -5., -100.],
                     [   5., -100.],
                     [   5.,  100.],
                     [  -5.,  100.]]))

tot.append(np.array([[  45., -100.],
                     [  55., -100.],
                     [  55.,  100.],
                     [  45.,  100.]]))

tot.append(np.array([[-100.,   -5.],
                     [ 100.,   -5.],
                     [ 100.,    5.],
                     [-100.,    5.]]))

tot.append(np.array([[-100.,   45.],
                     [ 100.,   45.],
                     [ 100.,   55.],
                     [-100.,   55.]]))

I obtain this:
image

If I "merge" the polygons to have only one left as:

# Execute the  merge
pc = pyclipr.Clipper()
pc.scaleFactor = int(1000)

pc.addPaths(tot, pyclipr.Subject)

tot = pc.execute(pyclipr.Union,
                pyclipr.FillRule.EvenOdd)

I get this:
image

You can remark the holes at the intersections of the polygons.
I was expected something like this:
image

Which is something I get by using Klayout and click on: edit -> selection -> merge
image

If you can help me to get the same result as with Klayout that would be really helpful.

Scoped Enumerations for EndType and JoinType

For the prevention of name pollution of enums when importing pyclipr and preventing collision of some enum values, , the enumerations for EndType and JoinType used in offsetting operations are to be not exported into the global-scope.

Ask for python 3.12 support on pypi

Hi,

I'm currently working on a python repository about graphics rendering, and I'd like to include Clipper2 as a third party dependency. I encountered an error when running pip install pyclipr. It seemed that a distribution for python 3.12 is missing (which is the latest python version). So I manually compiled the source code following readme and it worked for me.

Whenever it's convenient, could you please make a release so that a distribution for python 3.12 is available via pypi? This will make it easier for other users using python 3.12 to install pyclipr as well. Thanks in advance!

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.