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

Bug in intriangle #37

Open
natschil opened this issue Sep 16, 2020 · 3 comments
Open

Bug in intriangle #37

natschil opened this issue Sep 16, 2020 · 3 comments

Comments

@natschil
Copy link

The following code incorrectly returns 2, which according to the documentation means that the point is in the triangle:

using GeometricalPredicates

a = Point(1.1, 1.1)
b = Point(1.1,1.3)
c = Point2D(1.1, 1.4)

mytriangle = Primitive(a, b, c)
intriangle(mytriangle, Point(1.5, 1.8))
@natschil
Copy link
Author

natschil commented Sep 16, 2020

I am referring to the part in the documentation where it says "1 + 1 = 2 means the test point is in front of a, exactly on the triangle". On the other hand, another part of the documentation says that 2 means that it "cannot tell", but as far as I can tell this is referring to incircle and not intriangle.

@jstarczewski
Copy link

@natschil As far as I can see, it is impossible to create a triangle from points you have mentioned above.

@natschil
Copy link
Author

Depending on your definition, any three points define a triangle.

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

2 participants