Integer = 0 To 9
val *= 2
lst.Add(val)
Next
Since val is a ValueType, when we assign it to the list we actually put a copy of val into the list. Thus, the list contains the following memory layout:
[0] = 2
[1] = 4
[2] = 8
[3] = 16
[4] = 32
[5] = 64
[6] = 128
[7] = 256
[8] = 512
[9] = 1024
Now let's assume we do the same, but with OnLines:
Dim ln As New OnLine(A, B)
Dim lst As New List(Of OnLine)
For i As Integer = 0 To 9
ln.Transform(xform)
lst.Add(ln)
Next
When we declare ln on line 1, it is assigned an address in memory, say "24 Bell Ave." Then we modify that one line over and over, and keep on adding the same address to lst. Thus, the memory layout of lst is now:
[0] = "24 Bell Ave."
[1] = "24 Bell Ave."
[2] = "24 Bell Ave."
[3] = "24 Bell Ave."
[4] = "24 Bell Ave."
[5] = "24 Bell Ave."
[6] = "24 Bell Ave."
[7] = "24 Bell Ave."
[8] = "24 Bell Ave."
[9] = "24 Bell Ave."
To do this properly, we need to create a unique line for every element in lst:
Dim lst As New List(Of OnLine)
For i As Integer = 0 To 9
Dim ln As New OnLine(A, B)
ln.Transform(xform)
lst.Add(ln)
Next
Now, ln is constructed not just once, but whenever the loop runs. And every time it is constructed, a new piece of memory is reserved for it and a new address is created. So now the list memory layout is:
[0] = "24 Bell Ave."
[1] = "12 Pike St."
[2] = "377 The Pines"
[3] = "3670 Woodland Park Ave."
[4] = "99 Zoo Ln."
[5] = "13a District Rd."
[6] = "2 Penny Lane"
[7] = "10 Broadway"
[8] = "225 Franklin Ave."
[9] = "420 Paper St."
--
David Rutten
david@mcneel.com
Poprad, Slovakia…
Added by David Rutten at 6:26am on September 9, 2010
o Grasshopper and Rhino.Schedule: Rhinoceros1. NURBS and Mesh geometries.2. Complex geometries.3. GH to Rhinoceros workflow.Grasshopper1. Introduction to parametric design2. Parameters and components.3. Math and logics.4. 2D and 3D modeling.5. Simple definition6. Application to typical deisgn problems.SoftwareRhino + GrasshopperVenueParametric Support, Hardenbergstrasse 38, BerlinFee[Early Bird] 400 eur + VAT (until 11/11)[Regular] 420 eur + VAT[Student] 300 eurMore:hello@parametric.support…
e
7. True
8. True <-- this one
9. True
10. False
11. True
12. False
13. True
14. True <-- this one
15. True
16. False
17. True
18. False
19. True
20. True <-- this one
21. True
22. False
23. True
24. False
25. True
26. True <-- this one
27. True
28. False
29. True
30. False
31. True
32. True <-- this one
33. True
Any idea how I can solve this?
Thanks!…
know how to solve.
It appears in
11 - Honeybee Energy Modeling - The Laws of Geometry in E+ Part 3: Curved Geometry
where I need to retrieve .idf file,
and shows this message:
1. Solution exception:'hb_EPZoneSurface' object has no attribute 'punchedGeometry'
I've added .gh file at a state where I meet the problem.
Also, I've looked around the forum and found some mention OpeanStudio related problems, mainly one's lack of it. Could it be the source of the problem, because I only followed Installation Instructions and haven't installed OpenStudio.
…
onsecutive points at the same height then your 'Break at discontinuities' component eliminates the middle point completely and then the 'Interpolate Curve' component gives a much bigger bump in the wrong direction. This was enough to get curves to meet from opposite sides.
I fixed this by changing the heights to 1.1 or 2.9, rather than 1.0 and 3.0, but it took a little while to work it out! Sigh.
I attach a new version. But I actually preferred it as it was before. See what you think!
Bob
p.s. in the first list, elements 11, 12, 23 and 24 go from 1 to 3; elements 17 and 18 go from 3 to 1. In the second list, elements 6, 17, 18 and 29 go from 1 to 3; elements 12 and 23 go from 3 to 1. Given the above fix, these can be easily seen.…
Added by Bob Mackay at 10:40pm on November 24, 2015
and Ronnie of StudioMode and David Fano of DesignReform will also be attending.
RSVP has been closed on this event. Space is limited to 50 people. Please attend if you do RSVP.
Agenda -
12:00-1:00 Arrival, informal discussion
1:00 - 1:15 Introductions
1:15 - 2:00 Project presentation 1 (30 minutes + 15 min QA) - David Lee - Clemson - 3D pattern environments using volumetric proxies.
2:00 - 2:45 Project Presentation 2 (30 minutes + 15 min QA) - P. Casey Mahon - Organic Abstractions (30 minutes + 15 min QA)
2:45 - 3:45 David Rutten - New work in GH (30 min QA)
3:45 - 4:30 Sameer Kumar AIA - KPF - Project presentation 3 (30 minutes + 15 min QA)
4:30 - 5:15 Chris Wilkins - Clemson - Urban Renewal and parametric urban development studies in Grasshopper.
5:15 - 6:00 David Rutten - Scripting in GH (15 min QA)
After 6:00 conversations may move down the street for more discussion.
If you would like to present your project at the Cloud please email: scottd@mcneel.com…
} (N=11) {0;1} (N=11) {0;2}(N = 11) {0;3}(N = 11) {0;4}(N = 11)
2. I run the Points that are coming out from the Divide Curve Components through the Path Mapper components with this definition:
{A;B} (i) > {A} (i)
3. I run data coming out from Path Mapper component through:
a) Parameter Viewer component and the result is:
{0} N=11 (data with 1 branches)
b) Point > Panel and the result is:
collection of 11 point (N=11) which is the exactly the same as the collection of point belonging to {0;4} (N = 11).
So, here is the question:
why the collection of points coming out from the Path Mapper {A;B} (i) > {A} (i) component is the same as the collection of points belonging to the curve {0;4}(N = 11) ?
Anyway ... It 's the first time I ask a question here... so I would like to thank you for what you do with your work! Thank you! You are really great!…