Hi Frank,

I just committed a new version that hopefully solves your problem.

I added basic unit tests, but have not added a test for the __hash__  
issue you identified.
It would be great to have your feedback on this actually, a method for  
asserting that hashing works properly would be *really* great ;')

Cheers,

-jelle


On Apr 23, 2009, at 6:02 PM, Frank Conradie wrote:

> Hi guys, have you had some time to look at this strange  
> TopoDS_Iterator issue yet? I'm not sure if I explained it very well,  
> so here is another attempt at explaining the weird behaviour:
>
> 1. I use TopoDS_Iterator to collect all faces of a shell into a  
> Python set, as well as collect the hash of each face into a set.
> 2. I then use TopoDS_Iterator again to iterate through the same  
> shell's faces.
>     2.1. While doing this 2nd iteration, I assert:
>             2.1.1. that hash(face) is in the set of hashes I  
> collected in (1) - this works (as expected)
>             2.2.2. that face is in the set of faces I collected in  
> (1) - this assertion FAILS (unexpected)
>
> I don't really understand this at all, as the hash of an object  
> should supposedly be used to determine set membership.


_______________________________________________
Pythonocc-users mailing list
Pythonocc-users@gna.org
https://mail.gna.org/listinfo/pythonocc-users

Reply via email to