Parametric Translation - Grasshopper2024-03-29T07:06:48Zhttps://www.grasshopper3d.com/forum/topics/how-to-move-a-list-of-breps?commentId=2985220%3AComment%3A734198&feed=yes&xn_auth=noDear David,
This is my last t…tag:www.grasshopper3d.com,2013-04-07:2985220:Comment:8253582013-04-07T08:44:04.412ZBehnood Eghbalihttps://www.grasshopper3d.com/profile/behnoodi
<p>Dear David,</p>
<p>This is my last try. This definition supposed to be working. I dont' know what to do. please help! :( thx</p>
<p>Dear David,</p>
<p>This is my last try. This definition supposed to be working. I dont' know what to do. please help! :( thx</p> Thank you! :) I appreciate yo…tag:www.grasshopper3d.com,2012-11-26:2985220:Comment:7357192012-11-26T17:06:32.035ZBehnood Eghbalihttps://www.grasshopper3d.com/profile/behnoodi
<p>Thank you! :) I appreciate your help.</p>
<p>Thank you! :) I appreciate your help.</p> You could achieve the same us…tag:www.grasshopper3d.com,2012-11-26:2985220:Comment:7356642012-11-26T15:45:21.306ZDavid Ruttenhttps://www.grasshopper3d.com/profile/DavidRutten
<p>You could achieve the same using Mass Addition btw. and hooking up a Move component to the Pr output.</p>
<p></p>
<p>--</p>
<p>David Rutten</p>
<p>david@mcneel.com</p>
<p>Poprad, Slovakia</p>
<p>You could achieve the same using Mass Addition btw. and hooking up a Move component to the Pr output.</p>
<p></p>
<p>--</p>
<p>David Rutten</p>
<p>david@mcneel.com</p>
<p>Poprad, Slovakia</p> Yes, I think I need Iteration…tag:www.grasshopper3d.com,2012-11-26:2985220:Comment:7353562012-11-26T13:46:24.866ZBehnood Eghbalihttps://www.grasshopper3d.com/profile/behnoodi
<p>Yes, I think I need Iteration. Thank you so much. ;)</p>
<p>Yes, I think I need Iteration. Thank you so much. ;)</p> Dear David,This is the whole…tag:www.grasshopper3d.com,2012-11-26:2985220:Comment:7354342012-11-26T13:43:56.815ZBehnood Eghbalihttps://www.grasshopper3d.com/profile/behnoodi
<p>Dear David,<br/>This is the whole idea:</p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2768771370?profile=original" target="_self"><img width="721" class="align-full" src="http://storage.ning.com/topology/rest/1.0/file/get/2768771370?profile=RESIZE_1024x1024" width="721"/></a></p>
<p>Dear David,<br/>This is the whole idea:</p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2768771370?profile=original" target="_self"><img width="721" class="align-full" src="http://storage.ning.com/topology/rest/1.0/file/get/2768771370?profile=RESIZE_1024x1024" width="721"/></a></p> So where does the curve come…tag:www.grasshopper3d.com,2012-11-26:2985220:Comment:7353282012-11-26T10:44:13.792ZDavid Ruttenhttps://www.grasshopper3d.com/profile/DavidRutten
<p>So where does the curve come in? Your code does not mention any curves, only a list of vectors, which are inputted and therefore known ahead of time.</p>
<p> </p>
<p>I also don't see the need to both iterate <em>and </em>recurse. Surely if you have a list of vectors all you need is iteration?</p>
<p> </p>
<p><code>Private Sub RunScript(ByVal G As GeometryBase, ByVal v As List(Of Vector3d), ByRef A As Object) <br></br> Dim geometry As New List(Of GeometryBase)<br></br> For i As Integer = 0 To…</code></p>
<p>So where does the curve come in? Your code does not mention any curves, only a list of vectors, which are inputted and therefore known ahead of time.</p>
<p> </p>
<p>I also don't see the need to both iterate <em>and </em>recurse. Surely if you have a list of vectors all you need is iteration?</p>
<p> </p>
<p><code>Private Sub RunScript(ByVal G As GeometryBase, ByVal v As List(Of Vector3d), ByRef A As Object) <br/> Dim geometry As New List(Of GeometryBase)<br/> For i As Integer = 0 To v.Count - 1<br/> 'Duplicate the geometry because you kept<br/> 'transforming the same one over and over.<br/> G = G.Duplicate()<br/> G.Translate(v(i))<br/> geometry.Add(G)<br/> Next<br/> A = geometry<br/>End Sub</code></p>
<p> </p>
<p>--</p>
<p>David Rutten</p>
<p>david@mcneel.com</p>
<p>Poprad, Slovakia</p> Please Help! :(tag:www.grasshopper3d.com,2012-11-26:2985220:Comment:7352372012-11-26T05:52:28.603ZBehnood Eghbalihttps://www.grasshopper3d.com/profile/behnoodi
<p>Please Help! :(</p>
<p>Please Help! :(</p> Here's the idea,
First we got…tag:www.grasshopper3d.com,2012-11-25:2985220:Comment:7346252012-11-25T07:38:29.907ZBehnood Eghbalihttps://www.grasshopper3d.com/profile/behnoodi
<p>Here's the idea,</p>
<p>First we got one box(green box) and a list of tangent vectors. The idea is moving this box by its own tangent vector on the curve.(white box) and this "new" box generates the next one by its own tangent vector on the curve... and this happens to the last item. Here's the algorithm<a href="http://storage.ning.com/topology/rest/1.0/file/get/2768770720?profile=original" target="_self"></a>:</p>
<p>B0 ----> B1</p>
<p>B1 ----> B2</p>
<p>B2 ----> B3</p>
<p>B3…</p>
<p>Here's the idea,</p>
<p>First we got one box(green box) and a list of tangent vectors. The idea is moving this box by its own tangent vector on the curve.(white box) and this "new" box generates the next one by its own tangent vector on the curve... and this happens to the last item. Here's the algorithm<a href="http://storage.ning.com/topology/rest/1.0/file/get/2768770720?profile=original" target="_self"></a>:</p>
<p>B0 ----> B1</p>
<p>B1 ----> B2</p>
<p>B2 ----> B3</p>
<p>B3 ----> B4</p>
<p>...<a href="http://storage.ning.com/topology/rest/1.0/file/get/2768770919?profile=original" target="_self"></a></p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2768770720?profile=original" target="_self"><img width="721" class="align-full" src="http://storage.ning.com/topology/rest/1.0/file/get/2768770720?profile=RESIZE_1024x1024" width="721"/></a></p> you've created a recursive fu…tag:www.grasshopper3d.com,2012-11-24:2985220:Comment:7341982012-11-24T22:09:41.016ZAndrew Heumannhttps://www.grasshopper3d.com/profile/AndrewHeumann
<p>you've created a recursive function with no way out! The subroutine "Translate" calls the subroutine "Translate" which calls the subroutine "Translate" which calls the subroutine "Translate" which calls the subroutine "Translate" which calls the subroutine "Translate" which calls the subroutine "Translate" which calls the subroutine "Translate" which calls the subroutine "Translate" which calls the subroutine "Translate" which calls the subroutine "Translate".... you get the…</p>
<p>you've created a recursive function with no way out! The subroutine "Translate" calls the subroutine "Translate" which calls the subroutine "Translate" which calls the subroutine "Translate" which calls the subroutine "Translate" which calls the subroutine "Translate" which calls the subroutine "Translate" which calls the subroutine "Translate" which calls the subroutine "Translate" which calls the subroutine "Translate" which calls the subroutine "Translate".... you get the picture.</p>
<p>It would be helpful to give an explanation of what you're trying to do so we can make suggestions about how to accomplish it. </p>