paulmcz 发表于 2022-7-6 09:44:40

“陷阱”(如果有的话)是无意的。我只是说凸出值,收集的列表中的最后两个(凸出值)必须都为0。不是最后两条多段线线段。

BlackBox 发表于 2022-7-6 09:47:17

 
我只是指这样一个事实,即检查偶数索引的凸出值是否为零并不意味着奇数索引的凸出值为非零,可能不是一个“陷阱”,但在处理逻辑表达式时肯定会忽略一些东西。
 

Lee Mac 发表于 2022-7-6 09:51:28

李,事实上事情是可以忽略的,我从自己的经历和测试中很好地理解。有时,我看不到非常明显或基本的东西,甚至对我来说。
 
现在伦敦是凌晨2点,不是吗?你睡觉吗?

irneb 发表于 2022-7-6 09:54:06

 
当你需要他的时候,他的化身在哪里!?哈哈(我的时间上午12:50)
 
别担心。。。他会回来的。

paulmcz 发表于 2022-7-6 09:57:21

Lee Mac 发表于 2022-7-6 10:02:16

I believe Irne has fallen for the 'trap' you noted in post #4 Paul, an XOR of the test for an even index value and straight line flag variable will still allow straight lines when the index is odd. :wink:

paulmcz 发表于 2022-7-6 10:04:28

The 'trap', if any, was unintentional. I was only talking about the bulge values and the last two in collected list (of bulge values) have to be both 0. Not the last two polyline segments.

Lee Mac 发表于 2022-7-6 10:06:47

 
I was just referring to the fact that checking whether the bulge value is zero for even indexes doesn't imply it is non-zero for odd indexes, maybe not a 'trap' but certainly something that could be overlooked when working with the logical expressions.
 

paulmcz 发表于 2022-7-6 10:08:57

Lee, the fact that things can be overlooked, I understand very well from my own experience and testings. Sometimes, I don't see things that are very obvious or elementary, even to me.
 
It is 2AM in London now, isn't it? Do you sleep at all?

BlackBox 发表于 2022-7-6 10:12:38

 
Where's ReMark's avatar when you need him!? LoL (12:50 AM my time)
 
Don't worry... He'll be back.
页: 1 [2]
查看完整版本: 测试多段线