These are three approximately collinear points, but they pass the collinear check and crash in another code. You can see the points and distance in picture.Is this a bug in occ7.4?
I believe checking colinearity by gp::Resolution() is wrong.
If you take your points and build two gp_Dir directions - P1 -> P2 and P2 -> P3, and after it calculate Dot of dir1 and dir2 you will get exactly 1.0, which shows you complete parallel )
Sun, 08/21/2022 - 11:49
Hello Zhang Fang,
I believe checking colinearity by
gp::Resolution()
is wrong. If you take your points and build twogp_Dir
directions - P1 -> P2 and P2 -> P3, and after it calculate Dot of dir1 and dir2 you will get exactly 1.0, which shows you complete parallel )Double variable can store 15-17 digits, but not more. So, while you calculate Dot, you are loosing some data less the 17 minus power.
I would advise you to be oriented on
Precision::Confusion()
Thanks. With respects, Eugene.
Mon, 08/22/2022 - 10:22
Hello Eugene Zaliznyak.
Thank you for your reply.
I plan to download the latest version of the library to test.