I modified unique to be based on a tolerance,
d = db ~= 0; -->
d = db >= [insert tolerance here, e.g. 1e-6]
this seems to work as intended
d = db ~= 0; -->
d = db >= [insert tolerance here, e.g. 1e-6]
this seems to work as intended