Git Product home page Git Product logo

Comments (4)

micycle1 avatar micycle1 commented on August 23, 2024

Can you certify that the coordinates of the two slice shapes overlap perfectly? I'm guessing this isn't the case somehow. If so, you could put the tiles through PGS_Conversion.roundVertexCoords() first, and see whether that leads to the expected output.

Perhaps after having been sliced, the adjacent slices sometimes have very slight differences in their coordinates -- a small gap which means they cannot be unioned.

from pgs.

puebloDeLaMuerte avatar puebloDeLaMuerte commented on August 23, 2024

Thx for your reply!
Not shure how i would check if the shapes overlap perfectly. I did check for Vertices being very close but not exacly in the same spot, but that doesn't produce meaningful results in cases where the touching corners of one shape don't lie on the corners of the other but instead lie on the connecting lines between two points of the other shape. (Not touching corners, but corners touching the side of another shape).

I did try using PGS_Conversion.roundVertexCoords() which seems to help in some cases, making the non-unision more rare, but not completely go away.

Just thought i'd share my findings - not shure what to try next... thx anyways!

from pgs.

micycle1 avatar micycle1 commented on August 23, 2024

Can you share code?

from pgs.

micycle1 avatar micycle1 commented on August 23, 2024

Closed -- stale.
Further, union() should always reproduce both shapes even if they do not intersect (in this case they become a single group shape having 2 disjoint child shapes).

from pgs.

Related Issues (13)

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.