owing code is weird:
Dim newOBJ As New Object
newOBJ = OBJ
There's no point in declaring a new instance of a class if you immediately afterwards assign it a different instance. Because you do not actually make a copy of your OBJ, you keep on transforming the same one over and over.
This is how I'd write it:
Private Sub RunScript(ByVal geometry As GeometryBase, ByVal iterations As Integer, ByRef A As Object) Dim result As New List(Of GeometryBase) For k As Int32 = 0 To iterations Dim duplicate As GeometryBase = geometry.Duplicate() duplicate.Transform(Transform.Translation(k, 0, 0)) result.Add(duplicate) Next A = result End Sub
--
David Rutten
david@mcneel.com
Poprad, Slovakia…
d=[] for k in range(steps): kd.append(f(size*(i-m)/m,size*(j-m)/m,size*(k-m)/m)) kj.append(kd) ki.append(kj) return ki from math import cos,exp,atan2 def lobes(x,y,z): try: theta = atan2(x,y) # sin t = o except: theta = 0 try: phi = atan2(z,y) except: phi = 0 r = x*x+y*y+z*z ct=cos(PARAMETER_A * theta) cp=cos(PARAMETER_B * phi) return ct*ct*cp*cp*exp(-r/10) def main(): data = readdata(lobes,10,40)
...…
was looking at factorials in Levenshtein distance as you recommended, but as I understand its a P NP problem which is way above my second year architecture student pay grade. And apparently the tries are memory hungry so he continues with some DAWG's MANNNN
code: https://gist.github.com/smhanov/94230b422c2100ae4218
article: http://stevehanov.ca/blog/index.php?id=115
It's more complex but sounds like it has its benefits, such as showing the index of matches in the "dictionary" so it would be easier for me to retrieve it later. Because I am matching these stings up but I would need same results in a whole other identical beginning structure tree aka I could just dispatch the indexes. Anyway here is the file with all the values to give more insight!…
Arduino micro-controller, the internet and beyond. It allows near real-time data flow between the digital and physical worlds, and will read/write data to/from internet feeds, remote sensors and more. It also includes a Pachube reader.
Firefly Developers:
Jason K Johnson [Future-Cities-Lab; CCA - San Francisco, CA]
Andy Payne [LIFT Architects; Harvard GSD - Cambridge, MA]…