chrisidefix / cgal-bindings

Automatically exported from code.google.com/p/cgal-bindings
Boost Software License 1.0
0 stars 0 forks source link

Alternate implementation of __hash__ function for triangulation handles #10

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Re: 
http://groups.google.com/group/cgal-bindings-discuss/browse_thread/thread/3ae011
0f79b708fb

As requested, an issue item has been created. For convenience, a fork 
demonstrating how this would work is available on github 
https://github.com/AndrewWalker/cgal-bindings.

The first change involved Adding a python specific __hash__ implementation for 
the Face_handle and Vertex_handle classes that facilitates using instances of 
these classes in python sets and dictionaries.

A second change was to add python polygonal triangulation example code. The 
code for this patch is based on the C++ CGAL documentation, in the chapter "2D 
Triangulations", under the heading "Example: Triangulating a Polygonal Domain", 
with minor language specific alterations, and the addition of plotting, where 
it is available.

Original issue reported on code.google.com by walker...@gmail.com on 5 Apr 2012 at 12:21

GoogleCodeExporter commented 9 years ago

Original comment by sloriot...@gmail.com on 18 Apr 2012 at 8:45