always result in an odd number of intersections and I should be able to call the events in order.
My question is: How do I sort these to draw new lines from pt(0) to pt(1) then from pt(2) to pt(3) until the end of the intersection array ( (X-1) to (X) ) for each of the sets of intersections? I'm very familiar with Rhinoscript and know how this would work in that interface but I'm struggling to find the functions in GHopper.
Thx All!
DH
…
een shot and there are two pull down menus of PT. The left if clicked shows the older version and works fine, but when the right menu is clicked the software freezes and crashes.
In my PC, Rhino 5 32 bit and 64 bit are installed and Rhino 4 as well. Just for your info.
Thanks.
…
Then used 'Cull i (Cull Index)' to ignore the four roof sections without floors below them.
But ran into trouble with the deck level labeled "Fläche Decke", because the number of deck surfaces is far less than the number of roof sections.
So for now, I added 'List Item' selectors for the roof ("Fläche Dach") and "Fläche Tribüne" surfaces, i=11 to match the stadium section used previously.
Note I ignored a 'Line' created using two point parameters, 'Pt Dach L' and 'Pt Dach R', and used an edge of the surface instead (yellow group). That edge will not be i=0 for all roof sections, though, so the correct edge must be selected somehow... The same thing should be done with another line parameter, 'Ln Boden Stütze', that is the edge of the 'Fläche Boden' surface. (P.S. One of these lines could be used with 'Sort Along Curve (AlongCrv )', if sorting is necessary - though I suspect it is not.)
It looks to me, though, that if you fix your Rhino model so the number of surfaces are the same for each stadium section, this GH code can easily handle them all at once.…
ss than the size of the collectionit usually appears when i try working with lists of points. it's pretty hard to learn, with this getting in the way all the time..here, for example i tried going through one of andy payne's tutorials : Dim i As Integer Dim j As Integer Dim grid As New ArrayList For i = 0 To pts.count() - 1 Step gs Dim Row As New List (Of on3dpoint) For j = i To i + gs - 1 Dim pt As on3dpoint pt = pts(j) row.Add(pt) Next grid.Add(row) Next Dim mid_pt As New list(Of On3dPoint) For i = 0 To grid.Count() - 1 Dim row0 As List(Of On3dPoint) row0 = grid(i - 1) Dim row1 As List(Of on3dpoint) row1 = grid(i) For j = 1 To row0.count() - 1 Dim mid_p As New On3dPoint mid_p = (Row0(j - 1) + Row0(j) + Row1(i - 1) + Row1(i)) / 4 mid_pt.add(mid_p) Next Next a = mid_ptthanks for your time…
inition loaded.
It supports to be like this:
0-20 : true
from 21 : false
but this is what I get:
0-1 : true
2-10 : false
11-20 : true
from 21 : false
I have no clue what is happening to value 2-10?
Even trying component ‘expression’ the problem still the same.
Does anyone know where the problem is?
…
ización de estructuras, panelización de superficies, gestión y conexión con tablas de datos, automatización de dibujo, programación visual … Adjuntamos el temario del cuso. El contenido del curso ha sido revisado y ampliado, gracias a la experiencia de nuestros anteriores. Está orientado a profesionales y estudiantes de arquitectura y diseño en general.
Será impartido por dos Authorized Rhino Trainers en Madrid, en la calle Bailén. Tiene un formato intensivo de 18 horas; el horario es: viernes, de 17 a 21; sábado, de 10 a 14 y de 16 a 20; y domingo, de 11 a 14 y de 16 a 19. El número de asistentes está limitado a un máximo de 8 personas.…
Added by Miguel Vidal at 11:11am on December 17, 2009
f that brep. So:
2- closest_pt is the point that is on the brep and happens to be closest to your test point (pt).
3- Component index is the index of the face or edge of that brep that the test point happens to be closest to.
4- s and t are the u and v coordinate of the surface that the test point is on.
6- A normal to a surface is a vector. I always initialize my values before passing them to a function.
This function takes few parameters. It uses some of them as input and assign new values to output parameters.
The input is the test point (pt), and the rest are outputs. That means if you check closest_pt, ci, s, t and normal after the function is executed, you'll see all of them have new values calculated inside the "brep.ClosestPoint(...)" including the "normal" which is what you need in this case.
Hope this is helpful.…
Added by Rajaa Issa at 12:05pm on October 30, 2012
Tools plugin for Rhino 5.0 (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!
-
-------------------
New in this release:
-------------------
- Added ptSubGrid component to extract sub grids using start and end indices in x and y directions.
- Added ptTrim component to trim a grid against a brep face.- Update ptCellulate component to output a tree of wires where each branch has 4 line segments. Previously it output all edges as one list.- Added PanelUtility tab that currently has 3 components: - Pull edges from line edges. - Extract iso edges from line edges. - Extract shortest path edges from line edges.- Fixed divide curve by chord distance component. It had a bug that flipped the order of points when reference is near max domain of the curve.- Updated many of the icon images.- Added new examples and tutorials. Please get the latest PT-GH Examples.
…
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!…