[Bf-committers] Re: [Bf-blender-cvs] CVS
commit: blender/source/blender/python/api2_2x
Mesh.c blender/source/blender/python/api2_2x/doc Mesh.py
Campbell Barton
cbarton at metavr.com
Sun Dec 17 01:50:13 CET 2006
A the moment edges have a hash function that returns the edge index,
edge.key is the same as (min(ed.v1.index, ed.v2.index),
max(ed.v1.index, ed.v2.index))
Maybe they can be merged, any thaughts?
Martin Poirier wrote:
> --- Campbell Barton <cbarton at metavr.com> wrote:
>
>
>> campbellbarton (Campbell Barton) 2006/12/17 00:46:44
>> CET
>>
>> Modified files:
>> blender/source/blender/python/api2_2x Mesh.c
>> blender/source/blender/python/api2_2x/doc
>> Mesh.py
>>
>> Log:
>> adding ed.key and face.edge_keys
>> avoids a lot of boiler place code in scripts that
>> need to build connectivity.
>>
>
> If your goal was to use those new properties as keys
> for dicts, you should have implemented __hash__ and
> __eq__ instead.
>
> Martin
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at projects.blender.org
> http://projects.blender.org/mailman/listinfo/bf-committers
>
>
--
Campbell J Barton
133 Hope Street
Geelong West, Victoria 3218 Australia
URL: http://www.metavr.com
e-mail: cbarton at metavr.com
phone: AU (03) 5229 0241
More information about the Bf-committers
mailing list