--- trunk/doc/cookbook/heatrefraction_mesher001.py 2009/08/05 22:42:36 2588 +++ trunk/doc/cookbook/heatrefraction_mesher001.py 2009/08/05 23:06:35 2589 @@ -30,11 +30,16 @@ #import numpy as n from math import * +# routine to find consecutive coordinates of a loop in pycad def loopcoords(loop): + # return all construction points of input temp = loop.getConstructionPoints() + #create a numpy array for xyz components or construction points coords = np.zeros([len(temp),3],float) + #place construction points in array for i in range(0,len(temp)): coords[i,:]=temp[i].getCoordinates() + #return a numpy array return coords # Overall Domain