Translate curves with VB? - Grasshopper2024-03-28T18:19:37Zhttps://www.grasshopper3d.com/forum/topics/translate-curves-with-vb?commentId=2985220%3AComment%3A1655208&feed=yes&xn_auth=noIt returns a boolean, and the…tag:www.grasshopper3d.com,2016-12-10:2985220:Comment:16554932016-12-10T21:56:13.885ZDavid Ruttenhttps://www.grasshopper3d.com/profile/DavidRutten
<p>It returns a boolean, and the aLine is actually changed. So yes, this is the correct way to write this. If you <em>don't</em> want to change aLine and instead get another line, then the syntax should be:</p>
<p></p>
<p>Line aLine = ...;</p>
<p>Line bLine = aLine; // Lines are structs, so this copies the line.</p>
<p>bLine.Transform(Transform.Translate(vect));</p>
<p></p>
<p></p>
<p>It returns a boolean, and the aLine is actually changed. So yes, this is the correct way to write this. If you <em>don't</em> want to change aLine and instead get another line, then the syntax should be:</p>
<p></p>
<p>Line aLine = ...;</p>
<p>Line bLine = aLine; // Lines are structs, so this copies the line.</p>
<p>bLine.Transform(Transform.Translate(vect));</p>
<p></p>
<p></p> question.
in C#
if i have a…tag:www.grasshopper3d.com,2016-12-10:2985220:Comment:16552082016-12-10T20:45:25.103ZMario Lhttps://www.grasshopper3d.com/profile/MarioL
<p>question.</p>
<p>in C#</p>
<p></p>
<p>if i have a Line called "aLine" and i want to translate it along a Vector called "vect"</p>
<p>would i write it as such?</p>
<p></p>
<p>aLine.Transform(Transform.Translate(vect)); ?</p>
<p></p>
<p>because this is just returning a boolean true value?</p>
<p></p>
<p>question.</p>
<p>in C#</p>
<p></p>
<p>if i have a Line called "aLine" and i want to translate it along a Vector called "vect"</p>
<p>would i write it as such?</p>
<p></p>
<p>aLine.Transform(Transform.Translate(vect)); ?</p>
<p></p>
<p>because this is just returning a boolean true value?</p>
<p></p> That works great. Thank you D…tag:www.grasshopper3d.com,2011-06-03:2985220:Comment:2630742011-06-03T13:32:23.782ZJonatan Schumacherhttps://www.grasshopper3d.com/profile/JonatanSchumacher
That works great. Thank you David.
That works great. Thank you David. crv.Transform(Transform.Trans…tag:www.grasshopper3d.com,2011-06-02:2985220:Comment:2620642011-06-02T20:55:50.177ZDavid Ruttenhttps://www.grasshopper3d.com/profile/DavidRutten
<p>crv.Transform(Transform.Translation(ZDir))</p>
<p> </p>
<p>--</p>
<p>David Rutten</p>
<p>david@mcneel.com</p>
<p>Poprad, Slovakia</p>
<p>crv.Transform(Transform.Translation(ZDir))</p>
<p> </p>
<p>--</p>
<p>David Rutten</p>
<p>david@mcneel.com</p>
<p>Poprad, Slovakia</p>