Closed tredecimguttatus closed 4 weeks ago
Hey thanks for the report, cases where polylines only touch are well defined (as seen in this case), sometime it is what is wanted, other times it is not, it really depends on the use case. In this example how would you expect the result to be different? Not having them be joined together in the OR
case?
I guess they should be connected together.
In my code, OR operation give this result:
{
"name": "res[0]",
"isClosed": true,
"Area": 0,
"vertexes": [
[52.5000000000000000000000000, 9.0000000000000000000000000, 0.0000000000000000000000000],
[7.5000000000000000000000000, 9.0000000000000000000000000, 0.0000000000000000000000000]
]
}
{
"name": "res[1]",
"isClosed": true,
"Area": 284.137,
"vertexes": [
[7.5000000000000000000000000, 9.0000000000000000000000000, 1.0000000000000000000000000],
[7.5000000000000000000000000, 6.0000000000000000000000000, 0.0000000000000000000000000],
[52.5000000000000000000000000, 6.0000000000000000000000000, 1.0000000000000000000000000],
[52.5000000000000000000000000, 9.0000000000000000000000000, 1.0000000000000000000000000],
[52.5000000000000000000000000, 12.0000000000000000000000000, 0.0000000000000000000000000],
[7.5000000000000000000000000, 12.0000000000000000000000000, 1.0000000000000000000000000]
]
}
I was talking about vector res[0]. It can be filtered out very easy, so for me it is not a problem.
I will close this issue, as far it was just info
Hello!
I've checked some corner cases i guess that result for 2 vectors that share border (not actually invalid, but) could be more precise.
Vectors:
Test code:
I would say it is valid result, but in some cases that not what user would expect.
Best regards, Andrei.