Comments (4)
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.
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.
Can you share code?
from pgs.
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)
- The function `shapeIntersections(PShape, PShape)` does not exist. HOT 2
- Intermittent "Invalid number of points in LinearRing" when using `PGS_ShapeBoolean.subtract()` HOT 3
- Not working with `P2D` HOT 2
- Examples using the 'Illustrations' HOT 2
- Expected a different result from `PGS_ShapeBoolean.union()` HOT 3
- Investigate JTS OffsetCurve class HOT 1
- `PGS_Processing.slice()` returns nullpointer exception in `P2D` render mode HOT 4
- `PShape.draw(PGraphics)` not working with shapes created by PGS HOT 3
- please expose `PGS_Contour.offsetCurves(...)` method HOT 7
- Conversion: handle multi-contour/shape PShapes HOT 1
- Readme request: link gifs to source code of each HOT 2
- Shape loses its fill styling with successive subtracts HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pgs.