Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad mitering produced by Clipper2 #277

Open
andersmelander opened this issue Feb 7, 2024 · 2 comments
Open

Bad mitering produced by Clipper2 #277

andersmelander opened this issue Feb 7, 2024 · 2 comments
Assignees
Labels

Comments

@andersmelander
Copy link
Member

andersmelander commented Feb 7, 2024

It looks as if the miter isn't properly applied when the "inner" edge of a segment intersect the "outer" edge of the other segment:
billede
billede

Originally posted by @andersmelander in #276 (comment)

@andersmelander
Copy link
Member Author

Test case:

var PolyPoints: TArrayOfArrayOfFloatPoint := [ GR32_VectorUtils.BuildPolygonF([
      50, 50,
      200, 60,
      50, 70
    ]) ];

PolyPoints := GR32_Clipper.InflatePaths(PolyPoints, 20, jtMiter, etOpenButt, 4);

billede

Note: The problem only occurs for PolyPoints[0][1].X >= 200.

@andersmelander
Copy link
Member Author

@AngusJohnson Thanks. I'll queue the fix for integration.

@andersmelander andersmelander self-assigned this Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant