tion and the points array that follow. I was used to the Rhino.EvaluateSurface(Strobj, ArrParam) to pick pints on a surface.
Then I understand that points are identified with var pt and added with function pt_list.Add(pt) . But can't understand the whole syntax. This code is supposed to create hexagons!
Dim lines As New List(Of OnPolyline)()
'Point Culling
Dim ptArr As New On3dPointArray()
Dim pt_list As New List(Of On3dPoint)
For i As Int32 = 0 To u - 2 Step 2
For j As Int32 = 0 To v - 3 Step 4
ptArr.Append(arrPt(i + 1, j).x, arrPt(i + 1, j).y, arrPt(i + 1, j).z)
ptArr.Append(arrPt(i + 2, j + 1).x, arrPt(i + 2, j + 1).y, arrPt(i + 2, j + 1).z)
ptArr.Append(arrPt(i + 2, j + 2).x, arrPt(i + 2, j + 2).y, arrPt(i + 2, j + 2).z)
ptArr.Append(arrPt(i + 1, j + 3).x, arrPt(i + 1, j + 3).y, arrPt(i + 1, j + 3).z)
ptArr.Append(arrPt(i, j + 2).x, arrPt(i, j + 2).y, arrPt(i, j + 2).z)
ptArr.Append(arrPt(i, j + 1).x, arrPt(i, j + 1).y, arrPt(i, j + 1).z)
ptArr.Append(arrPt(i + 1, j).x, arrPt(i + 1, j).y, arrPt(i + 1, j).z)
Dim pline As New OnPolyline(ptArr)
lines.Add(pline)
Dim pt As New On3dPoint((arrPt(i + 1, j).x + arrPt(i + 1, j + 3).x) / 2, (arrPt(i + 1, j).y + arrPt(i + 1, j + 3).y) / 2, (arrPt(i + 1, j).z + arrPt(i + 1, j + 3).z) / 2)
pt_list.Add(pt)
ptArr.destroy
Next
Next…
Added by Jon Malkovich at 7:16pm on November 3, 2009
Is there any way to get a list of 3 values (xRotation, yRotation, zRotation) representing the rotations of a plane around the x, y and z axis (Euler angles) in Python?
Hello everyone
my problem is that I want to group all the points having same x and z coordinates...
so in order to have an x group composed by 6 columns and the z by 9 lines
Thank you very much
lue addition
2. the t-domain: a curve or surface point could be described by their parametrical values
so a curve starts at the t-value 0 and ends with 1 if it is reparameterized (otherwise the t-domain is set by their length) for surface which need a second value it is described through their u,v values (x,y,z = u,v,w values of the domain)
3+4.i get the multiplicator which i need to calculate the t values for the new points
5. look @2
6. most of the time it is better to work with the parametrical values of a curve (t-value)
according your ghx it could be set up much easier but i didn't want to change the whole file to screw you completely…
one at the start and end will not join and I don't know why. Could it be because every arc is create with 3 vector point (construct point function) and the other 2 are create with an end-function?
If you look at the images I attached, you can see that first one does not join. When I simplify the point by turning the x-y-z-value into full numbers (without decimals) it still does not join. But when I use a note panel and fill in the exact same x-y-z-values as the simplified ones, it does join. But I need those values to be variable, so this is not an option.
Does some one know why this happen or what I can do to get what I want? I can also work with N(0) and N(2), but I don't know how to turn that into one tree. I hope some one can explain me how to solve this problem.
I thank you in advance
…