Geometry.Matrix.GetHashCode() not working as it should?

Hi guys,

I am having an issue trying to access Matrix.Geometry.GetHashCode() on a C# script component. Not sure what’s happening and wondering if some one might have a clue?

I get “error: column index out of range (line: 0)” from the output.

Script is only:

private void RunScript(System.Object x, object y, ref object A)
    int hsh = x.GetHashCode();
    A = hsh;
  } (6.9 KB)

Yep, it’s a bug for matrices which have more rows than columns. I fixed it for Rhino 7 and 8 now.

Thanks David. Glad it’s solved :slight_smile:

1 Like