In Meshes.jl we have an implementation of == for Point that simply fallsback to isapprox:
By reading the docs of isequal, I learned that we also need to define hash(::Point, h) so that the isequal behaves properly in Set and Dict, etc.
How should I define the hash function for Point in this context of geometric processing? How do you usually implement hash in general?
Very educative thread @jar thanks for sharing. We will probably refactor some ideas in Meshes.jl accordingly.
Last updated: Nov 22 2024 at 04:41 UTC