Bug in command IsInRegion

Peter. shared this problem 10 years ago
Answered

Helo!


I found a problem with command IsInregion.

I have Windows xp and Java 6.0.27


You can reproduce the bug this way:


1) Draw these points: A(1,5), B(1,1), C(3,1), D(4,3), E(3,5)


2) Draw poligon1(A, B, C, D, E)


3) Draw a point: F(3,3)


4) Write this command: f=IsInregion(F, poligon1)


Point "F" is inside poligon1, BUT the result of last command is "false".

If you move point "D" or point "F", the result changes "true".


That's all


Peter

Comments (3)

photo
1

Bug confirmed!


The command returns erronously false to every F such that y(F) = 3 and x(F) in (1, 4).


Best regards, Humberto.

photo
1

And it returns in many similar situations.

As far as I see, it depends on the relation of points and not on the own cordinates of these points.


Peter


Good work!

photo
1

Please try 3.9.350.0

© 2022 International GeoGebra Institute