All Discussions Tagged 'Polylines' - Grasshopper2024-03-29T09:28:07Zhttps://www.grasshopper3d.com/group/turtle/forum/topic/listForTag?tag=Polylines&feed=yes&xn_auth=noPython Closed Polylines to Turtle to Planktontag:www.grasshopper3d.com,2015-07-07:2985220:Topic:13216512015-07-07T14:28:44.005ZMarko Tomicichttps://www.grasshopper3d.com/profile/MarkoTomicic692
<p>Hi Pac,</p>
<p></p>
<p>I'd like to use Python with Turtle.dll and Plankton.dll. Could you please explain how to get to a plankton mesh from a selection of closed polylines. I realize it's not much, but this is what I have:</p>
<p></p>
<p><span style="font-family: 'courier new', courier;">import rhinoscriptsyntax as rs</span><span style="font-family: 'courier new', courier;"><br></br></span></p>
<p><span style="font-family: 'courier new', courier;">import clr…</span><br></br></p>
<p>Hi Pac,</p>
<p></p>
<p>I'd like to use Python with Turtle.dll and Plankton.dll. Could you please explain how to get to a plankton mesh from a selection of closed polylines. I realize it's not much, but this is what I have:</p>
<p></p>
<p><span style="font-family: 'courier new', courier;">import rhinoscriptsyntax as rs</span><span style="font-family: 'courier new', courier;"><br/></span></p>
<p><span style="font-family: 'courier new', courier;">import clr</span><br/><span style="font-family: 'courier new', courier;">clr.AddReferenceToFileAndPath(r"C:\Plankton.dll")</span><br/><span style="font-family: 'courier new', courier;">clr.AddReferenceToFileAndPath(r"C:\PlanktonGh.dll")</span><br/><span style="font-family: 'courier new', courier;">clr.AddReferenceToFileAndPath(r"C:\Turtle.dll")</span><br/><span style="font-family: 'courier new', courier;">import Plankton as pl</span><br/><span style="font-family: 'courier new', courier;">import PlanktonGh</span> <br/><span style="font-family: 'courier new', courier;">import Turtle as tu</span></p>
<p></p>
<p><span style="font-family: 'courier new', courier;">def main():</span><br/><span style="font-family: 'courier new', courier;"> # Get objects</span><br/><span style="font-family: 'courier new', courier;"> crvs = rs.GetObjects("Select closed polylines", rs.filter.curve)</span><br/> <br/><span style="font-family: 'courier new', courier;"> #Here I'd like to make a turtle mesh and further convert it to plankton</span></p>
<p></p>
<p><span style="font-family: 'courier new', courier;">main()</span></p>