ate it in GhPython
In Python I tried to use For loop, but it divides all the curves 10 times. Seems that there is a problem in data matching.
Here is the code:
import rhinoscriptsyntax as rs
ptList = []
for i in range(1,10): pt = rs.DivideCurve(crv, i)
print (i)
ptList.append(pt)
a = pt
Here is the screenshot of GH scrypt and the result I want.
Thanks!…
t As New List (Of On3dPoint)
For i As Int32 = 0 To spanNum
Dim pt As New On3dPoint
pt = inCrv.PointAt(spanVec(i))
arrPt.Add(pt)
Next
'collect midpoints
Dim arrMidPt As New List (Of On3dPoint)
For i As Int32 = 0 To spanNum - 1
Dim nVec As New On3dVector(arrPt(i + 1) - arrPt(i))
nVec = nVec / 2
Dim mPt As New On3dPoint(nVec + arrPt(i))
arrMidPt.Add(mPt)
Next
'removes end vertex if closed
If (inCrv.IsClosed) Then
arrPt.RemoveAt(spanNum)
End If
A = arrPt
B = arrMidPt
End Sub…
translation) then you can do something like this:
Dim pt As New Point3d(2,4,8)
pt.Transform(Transform.Translation(1,-6,0))
--
David Rutten
david@mcneel.com
Poprad, Slovakia…
Added by David Rutten at 2:55pm on October 22, 2011
u are wellcome!
P.S.: in Construction planes, I just created 3 reference Plane.All those have the same (Origin Pt) == the centroid of the base of the Geometry(TUBE).
i am happy to be helpful.:)
32 or 64 depending on your system).
3- Download PT-GH Add-on
4- Get the latest PT-GH_Examples file with updated components.
Look forward to your feedback
Enjoy!
Rajaa Issa
Robert McNeel & Associates
-------------------
New in this release:
-------------------
- Installer error for Win32 is now fixed.
- Added ptOrient component to orient 2d and 3d objects to a grid.
- Added new sub grid component.
- Added new convert to diamond grid.
- Added new wrap grid component.
- Added components to output NURBS faces, borders and flat faces in a tree structure using a base grid.
- Fixed bake grid component bug.
- Many other minor bug fixes.
…
searching for each curve which of those point are contain inside of the curve. The script doesn't throw an error but i can not get the point for each curve..from it... help more than welcome..thanks!
RunScript(ByVal listpt As List(Of Point3d), ByVal crv As List(Of Curve), ByRef A As Object
Dim ptarr As New List(Of List(Of Point3d))
For j As int32 = 0 To crv.count - 1
Dim ptlist As New List(Of Point3d)
For i As int32 = 0 To listpt.count - 1
Dim crvtemp As Curve = crv.item(j)
Dim pt As New Point3d pt = listpt.item(i)
If crvtemp.Contains(pt) = PointContainment.Inside Then ptlist.add(pt)
End If
Next
ptarr.Add(ptlist)
Next
A = ptarr
thankssssssssss…
up to date library.
1-Download the latest PanelingTools Plugin.
http://v5.rhino3d.com/page/panelingtools-downloads
2-Download and save PT-GH Add-on in GH plugin folder (%appdata%\Grasshopper\Libraries).
http://download.rhino3d.com/Rhino/5.0/PT_GH/
Let me know if this works for you.
Rajaa
…