This could be 1 idea to consider cell connection to edge(s). However, it mixed up edge both side connection not separately. We’ll need more consideration.
you can access cell information node / edge related.
you can count cell number of each edge
for e in g.edges: print "cells:", len(e.cells)
you can calc cell’s area of each edge
for e in g.edges: print e for c in e.cells: print "cell area:", rs.CurveArea(c)[0]
as well as nodes
for n in g.nodes: print n print "cell area:", rs.CurveArea(n.cell)[0]
Comments are closed.