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
Pérez Albà McNeel Europe presents Rhino 5.0, Matus Nedecký (flying architecture) and Fabio Palvelli (3D Dreaming) show VRAY for Rhino and rendering services for architecture. We also show the new Wacom Cintiq 22 HD touch.
There are 2 events, the first at 15:00 and the second at 18:30. Places are limited to 30 people each.
As a special event you can switch between the events at a basic coffee seminar "Coffee - from the plant to the cup" part. Coffee Museum in Austrian society and economy museum was founded by Edmund Mayr, who injected together with Arch Wilhelm Holzbauer, the increase of the flak tower in Esterhazy Park. His passion for collecting are also due to the many exhibits that he has collected from all over the world. Additionally Mag. Just shows a quick roundup of "100 Years of Life and Living in Vienna" and how the inventions of Dr. Carl Auer von Welsbach changed the world significantly.
program: 15:00 to 15:45 Presentation software Autodesk Maya 2014 (group 1)
15:45 -. 16:00 Tour "100 years of life and living in Vienna / Dr Carl Auer von Welsbach in the Agricultural Museum (Group 1)
16:00 to 16:45 Presentation software Rhino 5.0 and VRAY (group 1)
5:00 p.m. to 6:15 p.m. basic coffee seminar "Coffee - from the plant to the cup" with Mr Edmund Mayr
18:30 to 19:15 Presentation software Autodesk Maya 2014 (Group 2)
19:15 -. 19:30 Tour "100 years of life and living in Vienna / Dr Carl Auer von Welsbach in the Agricultural Museum (Group 1)
19:30 to 20:15 Presentation software Rhino 5.0 and VRAY (Group 2)
20:15 finger found, drinks and "Come Together"
22:00 End of the event
Participation is FREE, due to the limited number of places but registration is required. To register for the event, we ask you to select the following options:
Online Registration 15:00 http://www.kkkc.at/component/seminar/?task=3&cid=5
Online Registration 18:30 http://www.kkkc.at/component/seminar/?task=3&cid=6
or by email: office@kkkc.at
or Tel: 01-545 78 25…
x and min values for x,y,z and calculate energy for each optionand collect these results in excel sheet ...
option No. x y z Annual coiling demand(by DIva)
1 10 10 10
2 10 15 20
3 11 10 19
4 12 14 17
5 15 16 15
6 16 11 14
7 18 12 12
.
.
etc
Regards ...
hossam
Hossam.wefki@gmail.com…
another example could be:
index 3 value 6
index 4 value 6
index 5 value 6
flipped and branched:
branch 6 index 0 value 3
branch 6 index 1 value 4
branch 6 index 2 value 5
Added by Ante Ljubas at 12:50pm on October 22, 2010