PRO-BIM Logo

Czy współrzędne linii lub punktu mogą być kluczami słownika?

Tak, ale trzeba robić to ostrożnie. Surowe wartości zmiennoprzecinkowe bywają niestabilne i powodują pozorne „braki dopasowań”.

Coordinates as keys cover

Kiedy to ma sens?

Gdy nie masz stabilnego ID, a geometria jest głównym nośnikiem tożsamości elementu.

Główne ryzyko

Różnice zaokrągleń (floating-point) powodują, że punkt pozornie ten sam ma inny zapis liczbowy.

Coordinate keying placeholder

Jak to robić bezpiecznie

To podejście działa szczególnie dobrze w procesach porównawczych między iteracjami modelu.

Can Point/Line Coordinates Be Used as Dictionary Keys?

Yes, but carefully. Raw floating-point values are often unstable and can create false mismatches.

Coordinates as keys cover

When this works

When you do not have a stable ID and geometry itself represents identity.

Main risk

Floating-point precision may produce slightly different numeric representations.

Coordinate keying placeholder

Safe implementation

This pattern is very useful in model comparison pipelines.