Replies: 2 comments 3 replies
-
Some thoughts...
It's fairly possible and I'd try that first to check whether it is a problem with precision. For instance, the internal An alternative is the skeleton algorithm itself cannot handle the "very small, near zero length" geometries you are attempting to process, even at float-like precision (assuming they are valid geometries). Another alternative is that after subtraction, some polygon's widths get collapsed to zero, so a skeleton is impossible (this could make sense given offsetting seems to help a bit). Also, you shouldn't need to use clipper2 alongside PGS/JTS. Instead of using clipper2 to offset, you can use geom.buffer() (this is what And if you can create a minimal reproducible example, that would be handy -- I could poke around with things too. |
Beta Was this translation helpful? Give feedback.
-
Yes apparently it does and it is about the skeleton faces and not the source polygon. The only pattern I could recognize is that more complex polygons are more prone to artifacts. Polygons with holes are such a category. In my geometries there are always exactly same polygons that skeletonize right. That's why I initially thought that this is a rounding error.
For my experience there are 2 kind "triggers" of artifacts. One appears on skeletonized polygons without holes and usually can be fixed with small offset values. The other one is most apparent on multi-hole source polygons (so complex that can scramble the skeletonized faces). This one might has to do with the complexity of the source polygon and is not easily fixed, as a result and moves around on offset width change, and one other same initial polygon inherits the artifact!
For what is worth I have created a github repository with the experimental double precision versions of processing4 and pgs. I cannot say if is useful for you: GitHub - istinnstudio/processing4-double: This is a rough modification of processing4 core in order to support double precision coordinates
|
|
|
| | |
|
|
|
| |
GitHub - istinnstudio/processing4-double: This is a rough modification o...
This is a rough modification of processing4 core in order to support double precision coordinates - istinnstudio...
|
|
|
Στις Παρασκευή 3 Ιανουαρίου 2025 στις 04:11:20 μ.μ. EET, ο χρήστης Michael Carleton ***@***.***> έγραψε:
The first error means your Java2D shapes don't form polygons (they are an unclosed string of vertices).
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
A user writes...
Beta Was this translation helpful? Give feedback.
All reactions