Hello,
That is a good thing. If in small dose, just e-mail your code to me
This email address is being protected from spambots. You need JavaScript enabled to view it..
If you think you can contribute much more, we can create a branch from the main trunk for you, so yo ucan commit changes and use that version as your own until your changes are validated by the consortium and merged back to the main trunk.
With respect to finding edges and a few other things, we have much improved these processes since v6p2 (coming for v6p3) and for example for edges we now call on the matplotlib cpp get_cpp_triangulation function. Here is the new code with only 2 lines if you have matplotlib.tri installed. Of course, we'd be happy to take in any improvements.
def getEdgesSLF(IKLE,MESHX,MESHY):
try:
from matplotlib.tri import Triangulation
edges = Triangulation(MESHX,MESHY,IKLE).get_cpp_triangulation().get_edges()
except:
#print '... you are in bad luck !'
#print ' ~> without matplotlib based on python 2.7, this operation takes ages'
edges = []
ibar = 0; pbar = ProgressBar(maxval=len(IKLE)).start()
for e in IKLE:
pbar.update(ibar); ibar += 1
if [e[0],e[1]] not in edges: edges.append([e[1],e[0]])
if [e[1],e[2]] not in edges: edges.append([e[2],e[1]])
if [e[2],e[0]] not in edges: edges.append([e[0],e[2]])
pbar.finish()
return edges
Hope this helps,
Sébastien.