openvoronoi: changed filtering

12 views
Skip to first unread message

andyw

unread,
Feb 9, 2012, 8:51:08 AM2/9/12
to openc...@googlegroups.com
Hi all,
Previously filters were applied to the voronoi-diagram with the slightly strange syntax:

vd = ovd.VoronoiDiagram()
# insert sites...
ovd.PolygonInterior( vd.getGraph(), True )

I thought this wasn't very intuitive, and it lead to boilerplate-wrappers in the filters. So I now changed this to:
vd = ovd.VoronoiDiagram()
# insert sites...
pi_filter = ovd.PolygonInterior( True )
vd.filter_graph(pi_filter)

Hopefully this is clearer & better. I changed most python example-scripts and cpp-examples so they work again.

Anders
PS. I've played around with some ideas for "HSM"-style pocketing path-generation. So stay tuned for the first ever (?) open-source HSM-pocketing path demonstration in the near future...
Reply all
Reply to author
Forward
0 new messages