K2 planarize any polygon - Grasshopper2024-03-28T13:24:36Zhttps://www.grasshopper3d.com/forum/topics/k2-planarize-any-polygon?groupUrl=kangaroo&feed=yes&xn_auth=noWhich version of Rhino are yo…tag:www.grasshopper3d.com,2018-05-07:2985220:Comment:19077872018-05-07T12:04:38.768ZDaniel Pikerhttps://www.grasshopper3d.com/profile/DanielPiker
<p>Which version of Rhino are you running? You might need to update to a current service release</p>
<p>Which version of Rhino are you running? You might need to update to a current service release</p> hi daniel.
I am trying to pl…tag:www.grasshopper3d.com,2018-05-07:2985220:Comment:19076612018-05-07T08:38:42.406Zmenachemsheininhttps://www.grasshopper3d.com/profile/menachemsheinin
<p>hi daniel.</p>
<p><span> I am trying to planarize polygons with your C# "Custom panalize", but the pannel is red and i get an eror:</span></p>
<p></p>
<p><span>1. Error (CS1705): Assembly 'KangarooSolver, Version=2.4.2.0, Culture=neutral, PublicKeyToken=null' uses 'RhinoCommon, Version=5.1.30000.13, Culture=neutral, PublicKeyToken=552281e97c755530' which has a higher version than referenced assembly 'RhinoCommon, Version=5.1.30000.4, Culture=neutral,…</span></p>
<p>hi daniel.</p>
<p><span> I am trying to planarize polygons with your C# "Custom panalize", but the pannel is red and i get an eror:</span></p>
<p></p>
<p><span>1. Error (CS1705): Assembly 'KangarooSolver, Version=2.4.2.0, Culture=neutral, PublicKeyToken=null' uses 'RhinoCommon, Version=5.1.30000.13, Culture=neutral, PublicKeyToken=552281e97c755530' which has a higher version than referenced assembly 'RhinoCommon, Version=5.1.30000.4, Culture=neutral, PublicKeyToken=552281e97c755530'</span></p>
<p></p>
<p><span>what does it mean?</span></p> Is it always necessarily poss…tag:www.grasshopper3d.com,2016-11-11:2985220:Comment:16377142016-11-11T22:25:07.549ZJasper Drummhttps://www.grasshopper3d.com/profile/JasperBlack
<p>Is it always necessarily possible to planarize a collection of polygons in this manner? I am using this script in an attempt to planarize the faces of a mesh dual. I'm still unsure if I need to adjust my inputs/weights to kangaroo in some way, or if there is simply no way to planarize my geometry.</p>
<p>Is it always necessarily possible to planarize a collection of polygons in this manner? I am using this script in an attempt to planarize the faces of a mesh dual. I'm still unsure if I need to adjust my inputs/weights to kangaroo in some way, or if there is simply no way to planarize my geometry.</p> Thanks, Daniel. You make this…tag:www.grasshopper3d.com,2016-07-08:2985220:Comment:15623682016-07-08T14:01:07.113ZMathias Gmachlhttps://www.grasshopper3d.com/profile/MathiasGmachl
<p>Thanks, Daniel. You make this look super easy - as always.</p>
<p></p>
<p></p>
<p>Thanks, Daniel. You make this look super easy - as always.</p>
<p></p>
<p></p> Hi Arthur,
I think your speci…tag:www.grasshopper3d.com,2016-06-29:2985220:Comment:15578512016-06-29T21:45:43.118ZDaniel Pikerhttps://www.grasshopper3d.com/profile/DanielPiker
<p>Hi Arthur,</p>
<p>I think your specific example here just happens to be already divided in a way that results in planar panels without needing any optimization!</p>
<p>Hi Arthur,</p>
<p>I think your specific example here just happens to be already divided in a way that results in planar panels without needing any optimization!</p> Daniel
Could you explain me…tag:www.grasshopper3d.com,2016-06-29:2985220:Comment:15572952016-06-29T10:59:31.240ZArthur Larahttps://www.grasshopper3d.com/profile/ArtAgent
<p>Daniel</p>
<p></p>
<p>Could you explain me or give referrals because planarization occurs without the presence of component C #<br></br>What is it for?<br></br>K2 works without it ... in any complex surface!</p>
<p></p>
<p>Thanx in adavance</p>
<p></p>
<p>Art…<a href="http://storage.ning.com/topology/rest/1.0/file/get/2769166354?profile=original" target="_self"><img class="align-full" src="http://storage.ning.com/topology/rest/1.0/file/get/2769166354?profile=RESIZE_1024x1024" width="721"></img></a></p>
<p>Daniel</p>
<p></p>
<p>Could you explain me or give referrals because planarization occurs without the presence of component C #<br/>What is it for?<br/>K2 works without it ... in any complex surface!</p>
<p></p>
<p>Thanx in adavance</p>
<p></p>
<p>Art<a href="http://storage.ning.com/topology/rest/1.0/file/get/2769166354?profile=original" target="_self"><img width="721" src="http://storage.ning.com/topology/rest/1.0/file/get/2769166354?profile=RESIZE_1024x1024" width="721" class="align-full"/></a></p>
<p> </p> Hi Mathias,
Good point - as…tag:www.grasshopper3d.com,2016-06-28:2985220:Comment:15569632016-06-28T19:38:28.146ZDaniel Pikerhttps://www.grasshopper3d.com/profile/DanielPiker
<p>Hi Mathias,</p>
<p></p>
<p>Good point - as you saw, the code for planarizing ngons is in there, but with the component taking a (non ngon) mesh there isn't currently a way to use it without scripting. I'll change this for the next release, either to take lists of vertices, or perhaps to take a Plankton mesh.</p>
<p></p>
<p>However, using an existing goal in a scripted component is much simpler than what you describe, and there is no need to copy-paste all the code. You can simply access it…</p>
<p>Hi Mathias,</p>
<p></p>
<p>Good point - as you saw, the code for planarizing ngons is in there, but with the component taking a (non ngon) mesh there isn't currently a way to use it without scripting. I'll change this for the next release, either to take lists of vertices, or perhaps to take a Plankton mesh.</p>
<p></p>
<p>However, using an existing goal in a scripted component is much simpler than what you describe, and there is no need to copy-paste all the code. You can simply access it via <em>KangarooSolver.Goals</em></p>
<p>Attached is an example of this.</p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2769163054?profile=original" target="_self"><img width="721" src="http://storage.ning.com/topology/rest/1.0/file/get/2769163054?profile=RESIZE_1024x1024" width="721" class="align-full"/></a></p>
<p>Also, in case anyone isn't aware of the handy shortcut, when typing the arguments to a constructor like this, you can press Ctrl+Shift+Space to bring up the required inputs, and cycle through the options using the arrow keys.</p>
<p></p>
<p>What you did with copy-pasting the goal code from github would be the right approach for if you wanted to actually modify the actual calculation method of the goal somehow though.</p>
<p></p>