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

Wrong answer of "contains point" of polygon with radius #62

Open
tinchodias opened this issue Apr 4, 2024 · 0 comments
Open

Wrong answer of "contains point" of polygon with radius #62

tinchodias opened this issue Apr 4, 2024 · 0 comments

Comments

@tinchodias
Copy link
Contributor

The orange polygon, that has rounded corners, shouldn't highlight (the gray triangle is just a visual reference).

Screen.Recording.2024-04-04.at.12.33.31.mov

Reproduce with:

c := RSCanvas new.

triangleCorners := { 0 @ -50. 200 @ 0. -200 @ 0 }.

reference := RSPolygon new
		points: triangleCorners;
		color: Color lightGray;
		yourself.
c add: reference.

polygon := RSPolygon new
		points: triangleCorners;
		color: Color orange;
		yourself.
polygon cornerRadii: 20.
polygon @ (RSHighlightable new highlightColor: Color blue).
c add: polygon.

c open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant