Arc from 2 points and a radius - Grasshopper2024-03-29T08:07:33Zhttps://www.grasshopper3d.com/forum/topics/arc-from-2-points-and-a-radius?commentId=2985220%3AComment%3A202122&feed=yes&xn_auth=noSorry for my English! How to…tag:www.grasshopper3d.com,2015-10-21:2985220:Comment:13827692015-10-21T05:43:26.509ZBlurp _ Dnahttps://www.grasshopper3d.com/profile/Dna
<p><span id="result_box" lang="en" xml:lang="en"><span class="hps">Sorry for my English!</span><br></br> <span class="hps">How</span> <span class="hps">to make the</span> <span class="hps">length of the arc</span> <span class="hps">was</span> <span class="hps">as</span> <span class="hps">variable?</span> <span class="hps">And</span> <span class="hps">the radius</span> <span class="hps">is calculated</span> <span class="hps">within the program</span><span>?</span> <span class="hps">Maybe…</span></span></p>
<p><span id="result_box" lang="en" xml:lang="en"><span class="hps">Sorry for my English!</span><br/> <span class="hps">How</span> <span class="hps">to make the</span> <span class="hps">length of the arc</span> <span class="hps">was</span> <span class="hps">as</span> <span class="hps">variable?</span> <span class="hps">And</span> <span class="hps">the radius</span> <span class="hps">is calculated</span> <span class="hps">within the program</span><span>?</span> <span class="hps">Maybe</span> <span class="hps">dichotomy.</span><br/> <span class="hps">I'm</span> <span class="hps">not a programmer</span><span>,</span> <span class="hps">I would be very grateful</span> <span class="hps">if</span> <span class="hps">someone</span> <span class="hps">can help</span> <span class="hps">me.</span><br/> <span class="hps">I could</span> <span class="hps">do it</span> <span class="hps">with the help of</span> <span class="hps">the Galapagos</span><span>,</span> <span class="hps alt-edited">but better</span> <span class="hps">a modified</span> <span class="hps">script</span> <span class="hps">as</span> <span class="hps">did</span> <span class="hps">Santiago Diaz (<a href="http://www.grasshopper3d.com/forum/attachment/download?id=2985220%3AUploadedFile%3A202229">arc2ptVB_(with plane).ghx -</a> Awesome!!).</span></span></p> Great! Thanks Caglar.
I added…tag:www.grasshopper3d.com,2011-03-25:2985220:Comment:2022302011-03-25T19:00:41.361ZSantiago Diazhttps://www.grasshopper3d.com/profile/SantiagoDiaz
<p>Great! Thanks Caglar.</p>
<p>I added the plane input, to replace your default Z vector for rotation.</p>
<p>The actual type hint is a vector3d, since only the Z of the plane is required.</p>
<p> </p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2768646736?profile=original" target="_self"><img src="http://storage.ning.com/topology/rest/1.0/file/get/2768646736?profile=original" width="698" class="align-full"/></a></p>
<p> </p>
<p>Thanks again for your help!</p>
<p>Great! Thanks Caglar.</p>
<p>I added the plane input, to replace your default Z vector for rotation.</p>
<p>The actual type hint is a vector3d, since only the Z of the plane is required.</p>
<p> </p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2768646736?profile=original" target="_self"><img src="http://storage.ning.com/topology/rest/1.0/file/get/2768646736?profile=original" width="698" class="align-full"/></a></p>
<p> </p>
<p>Thanks again for your help!</p> Hello Santiago,
Here is the V…tag:www.grasshopper3d.com,2011-03-25:2985220:Comment:2021292011-03-25T15:24:42.605ZCaglarhttps://www.grasshopper3d.com/profile/Caglar
<p>Hello Santiago,</p>
<p>Here is the VB component.<a target="_self" href="http://storage.ning.com/topology/rest/1.0/file/get/2768646824?profile=original"><img width="721" class="align-center" src="http://storage.ning.com/topology/rest/1.0/file/get/2768646824?profile=RESIZE_1024x1024" width="721"/></a></p>
<p>Hello Santiago,</p>
<p>Here is the VB component.<a target="_self" href="http://storage.ning.com/topology/rest/1.0/file/get/2768646824?profile=original"><img width="721" class="align-center" src="http://storage.ning.com/topology/rest/1.0/file/get/2768646824?profile=RESIZE_1024x1024" width="721"/></a></p> Hi Caglar,
Thanks for the sol…tag:www.grasshopper3d.com,2011-03-25:2985220:Comment:2019802011-03-25T14:27:18.280ZSantiago Diazhttps://www.grasshopper3d.com/profile/SantiagoDiaz
<p>Hi Caglar,</p>
<p>Thanks for the solution.</p>
<p>In order to choose from the 2 possible solutions, I can either reverse the vector being rotated, or I can change the quadratic equation to its negative solution.</p>
<p>I'll use this criteria as well to write the component, and post in the VB.net and C# corner, unless someone beats me to it! Hopefully I'll find time to write it today.</p>
<p> </p>
<p>Thanks again, you guys are awesome.</p>
<p>Hi Caglar,</p>
<p>Thanks for the solution.</p>
<p>In order to choose from the 2 possible solutions, I can either reverse the vector being rotated, or I can change the quadratic equation to its negative solution.</p>
<p>I'll use this criteria as well to write the component, and post in the VB.net and C# corner, unless someone beats me to it! Hopefully I'll find time to write it today.</p>
<p> </p>
<p>Thanks again, you guys are awesome.</p> Thanks Danny,
It looks like t…tag:www.grasshopper3d.com,2011-03-25:2985220:Comment:2021242011-03-25T14:18:23.308ZSantiago Diazhttps://www.grasshopper3d.com/profile/SantiagoDiaz
<p>Thanks Danny,</p>
<p>It looks like the solution is not simple after all.</p>
<p>I can work with this, but I'd really like to write a VB.net component for it.</p>
<p>This gives me ideas of some secondary outputs for the component.</p>
<p>Thanks Danny,</p>
<p>It looks like the solution is not simple after all.</p>
<p>I can work with this, but I'd really like to write a VB.net component for it.</p>
<p>This gives me ideas of some secondary outputs for the component.</p> Hi Dave,
I also know the plan…tag:www.grasshopper3d.com,2011-03-25:2985220:Comment:2021222011-03-25T14:16:13.275ZSantiago Diazhttps://www.grasshopper3d.com/profile/SantiagoDiaz
<p>Hi Dave,</p>
<p>I also know the plane orientation. That should reduce all possibilities to 2 arcs.</p>
<p>A boolean input such as "positive/negative" would allow me to choose one of the 2 2d solutions.</p>
<p>For the purpose of learning, I'll work on a VB.net component that achieves this, and post it in the VB.net and C# corner.</p>
<p>Hi Dave,</p>
<p>I also know the plane orientation. That should reduce all possibilities to 2 arcs.</p>
<p>A boolean input such as "positive/negative" would allow me to choose one of the 2 2d solutions.</p>
<p>For the purpose of learning, I'll work on a VB.net component that achieves this, and post it in the VB.net and C# corner.</p> This is another approach.To e…tag:www.grasshopper3d.com,2011-03-25:2985220:Comment:2019732011-03-25T13:41:17.459ZCaglarhttps://www.grasshopper3d.com/profile/Caglar
<p>This is another approach.To explain it briefly:</p>
<p style="text-align: center;"><a href="http://storage.ning.com/topology/rest/1.0/file/get/2768646592?profile=original" target="_self"></a><a href="http://storage.ning.com/topology/rest/1.0/file/get/2768646747?profile=original" target="_self"><img class="align-center" src="http://storage.ning.com/topology/rest/1.0/file/get/2768646747?profile=original" width="300"></img></a> <br></br><em> </em></p>
<p><em>x</em> is how much we move point <em>C</em> perpendicular to <em>AB</em>.</p>
<p><em>OCA</em> is always a right triangle. Hence, from the Pytagorean…</p>
<p>This is another approach.To explain it briefly:</p>
<p style="text-align: center;"><a target="_self" href="http://storage.ning.com/topology/rest/1.0/file/get/2768646592?profile=original"></a><a target="_self" href="http://storage.ning.com/topology/rest/1.0/file/get/2768646747?profile=original"><img class="align-center" src="http://storage.ning.com/topology/rest/1.0/file/get/2768646747?profile=original" width="300"/></a><br/><em> </em></p>
<p><em>x</em> is how much we move point <em>C</em> perpendicular to <em>AB</em>.</p>
<p><em>OCA</em> is always a right triangle. Hence, from the Pytagorean theorem;</p>
<p><em>r² = (r-x)² + y²</em></p>
<p><em>x = r - sqrt(r²-y²)</em></p>
<p> </p>
<p><em><a target="_self" href="http://storage.ning.com/topology/rest/1.0/file/get/2768647192?profile=original"></a><a target="_self" href="http://storage.ning.com/topology/rest/1.0/file/get/2768647457?profile=original"><img width="721" class="align-center" src="http://storage.ning.com/topology/rest/1.0/file/get/2768647457?profile=RESIZE_1024x1024" width="721"/></a><br/><br/><br/></em></p> Here's an attempt that takes…tag:www.grasshopper3d.com,2011-03-25:2985220:Comment:2012022011-03-25T11:23:39.805ZDanny Boyeshttps://www.grasshopper3d.com/profile/DannyBoyes
<p>Here's an attempt that takes your Start Pt, End Pt and a Radius (plus you need to choose a direction option). Then it creates a pt for your centre. After doing this it then creates a Third input pt for the GH Arcs Component.</p>
<p><a target="_self" href="http://storage.ning.com/topology/rest/1.0/file/get/2768644730?profile=original"><img class="align-full" width="721" src="http://storage.ning.com/topology/rest/1.0/file/get/2768644730?profile=RESIZE_1024x1024"/></a></p>
<p>Here's an attempt that takes your Start Pt, End Pt and a Radius (plus you need to choose a direction option). Then it creates a pt for your centre. After doing this it then creates a Third input pt for the GH Arcs Component.</p>
<p><a target="_self" href="http://storage.ning.com/topology/rest/1.0/file/get/2768644730?profile=original"><img class="align-full" width="721" src="http://storage.ning.com/topology/rest/1.0/file/get/2768644730?profile=RESIZE_1024x1024"/></a></p> Hi Santiago,
two points and…tag:www.grasshopper3d.com,2011-03-25:2985220:Comment:2016342011-03-25T08:36:03.408ZDavid Ruttenhttps://www.grasshopper3d.com/profile/DavidRutten
<p>Hi Santiago,</p>
<p> </p>
<p>two points and a radius define an infinite number of arcs in 3D, and two possible arcs in 2D. You're going to have to specify some additional information. What else do you know about these arcs?</p>
<p> </p>
<p>--</p>
<p>David Rutten</p>
<p>david@mcneel.com</p>
<p>Poprad, Slovakia</p>
<p>Hi Santiago,</p>
<p> </p>
<p>two points and a radius define an infinite number of arcs in 3D, and two possible arcs in 2D. You're going to have to specify some additional information. What else do you know about these arcs?</p>
<p> </p>
<p>--</p>
<p>David Rutten</p>
<p>david@mcneel.com</p>
<p>Poprad, Slovakia</p>