[Bf-python] Hashing Vectors
Martin Poirier
theeth at yahoo.com
Tue Jul 18 12:00:53 CEST 2006
--- Campbell Barton <cbarton at metavr.com> wrote:
> Hi, There are a few scripts I have that I use a dict
> for vertex
> locations, so as not to double up on locations as an
> example
>
> vert_dict[tuple(vertex.co)]= vertex.index
>
> It would be nicer and faster if the 2,3, or 4
> floats could be hashed,
> any hints as to hashing a vector and possibly a
> matrix type?
Mutables objects can't be used for keys.
Standard python rule.
Martin
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the Bf-python
mailing list