Hexagonal Grid on Surface with varried UV Domain Divisions [Python Scripting]

#Generate Hexagonal Grid on surface With Varied UV Domain Divisions #Jeremy Luebker 2013.04.10 #jluebker.wordpress.com (jeremy.luebker@gmail.com) import rhinoscriptsyntax as rs class HexGridOnSrf(object): def __init__(self,SRTSRF): self.StrSrf = SRTSRF self.HexGrid() def HexGrid(self): intU = 16 intV = 32 PtMtx = {} HexCrvsV1 = [] HexCrvsV2 = [] HexCrvsU = [] #find surface domain UDomain = rs.SurfaceDomain(self.StrSrf, 0) VDomain = rs.SurfaceDomain(self.StrSrf, 1) #define steps UStep = (UDomain[1] – UDomain[0]) / intU VStep = (VDomain[1] – VDomain[0]) / intV print UDomain print VDomain print UStep, VStep #loop to plot points for i in range(intU + 1): #counting starts at 0 so need to add 1 … Continue reading Hexagonal Grid on Surface with varried UV Domain Divisions [Python Scripting]