All Discussions Tagged 'Vertices' - Grasshopper2024-03-29T08:21:40Zhttps://www.grasshopper3d.com/forum/topic/listForTag?tag=Vertices&feed=yes&xn_auth=noSort Vertices Clockwisetag:www.grasshopper3d.com,2017-08-24:2985220:Topic:18026992017-08-24T07:56:40.337ZDevang Chauhanhttps://www.grasshopper3d.com/profile/devang
<p>Hi All,</p>
<p></p>
<p>I am trying to sort vertices of surface in clockwise order. I observed that for fresh geometry, brep.DuplicateVertices() provides a list of vertices in some order only. And that is acceptable to me.</p>
<p></p>
<p>However, for surfaces derived from some splitting operation in Rhino, the vertices are not provided in order (Clockwise or counter-clockwise).</p>
<p></p>
<p>Is there a simple way to do that? I read …</p>
<p>Hi All,</p>
<p></p>
<p>I am trying to sort vertices of surface in clockwise order. I observed that for fresh geometry, brep.DuplicateVertices() provides a list of vertices in some order only. And that is acceptable to me.</p>
<p></p>
<p>However, for surfaces derived from some splitting operation in Rhino, the vertices are not provided in order (Clockwise or counter-clockwise).</p>
<p></p>
<p>Is there a simple way to do that? I read <a href="http://www.grasshopper3d.com/forum/topics/sort-a-list-of-points-clockwise" target="_blank">this</a> discussion. But I am not sure if the centroid approach would work for a case like image below.</p>
<p></p>
<p>Thank you!</p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2655058668?profile=original" target="_self"><img src="http://storage.ning.com/topology/rest/1.0/file/get/2655058668?profile=original" width="537" class="align-left"/></a></p> Mesh Topology Vertex List Order Problemtag:www.grasshopper3d.com,2015-04-29:2985220:Topic:12770252015-04-29T20:51:02.440ZLawrence Yunhttps://www.grasshopper3d.com/profile/LawrenceYun524
<p>I was looking for a way find the connectivity of mesh vertices, and I did by using TopologyVertices. The problem for me now is that the TopologyVertices are not listed in the same order as <em>Rhino.Geometry.Mesh.Vertices</em> (or the vertices output of <em>deconstruct mesh</em> in grasshopper) so I am unable to rebuild the mesh from the mesh face list. Essentially, I am looking to deconstruct a mesh, adjust its vertices and then reconstruct it.</p>
<p></p>
<p>I tried reordering the…</p>
<p>I was looking for a way find the connectivity of mesh vertices, and I did by using TopologyVertices. The problem for me now is that the TopologyVertices are not listed in the same order as <em>Rhino.Geometry.Mesh.Vertices</em> (or the vertices output of <em>deconstruct mesh</em> in grasshopper) so I am unable to rebuild the mesh from the mesh face list. Essentially, I am looking to deconstruct a mesh, adjust its vertices and then reconstruct it.</p>
<p></p>
<p>I tried reordering the TopologyVertices by first doing Rhino.Geometry.PointCloud.ClosestPoint(TopologyVertices,myregularmeshvertices[n]) but I am having trouble converting the TopologyVertices into a list of points. Is there a way to convert MeshTopologyVertexList into a regular list of points and then to a PointCloud?</p>
<p></p>
<p>Or even better, is there a way to get TopologyVertices to come out in the correct order to start with?</p>
<p></p>
<p>Thanks,</p>
<p>Lawrence Yun</p> Reordering Verticestag:www.grasshopper3d.com,2015-03-02:2985220:Topic:12349872015-03-02T21:17:13.743ZAndrew Cookhttps://www.grasshopper3d.com/profile/AndrewCook493
<a href="http://storage.ning.com/topology/rest/1.0/file/get/2654894466?profile=original" target="_self"><img class="align-full" src="http://storage.ning.com/topology/rest/1.0/file/get/2654894466?profile=RESIZE_1024x1024" width="750"></img></a><p></p>
<p>Hi,</p>
<p>I'm trying to manipulate a surface's vertices in order to create a second surface to which I surfaced morphed a geometry to. I actually managed to get that to work, for the most part, but the problem here is, is that some of the original vertices from the DeBrep component are out of order messing up the surface created from those vertices. I'm not sure if…</p>
<a href="http://storage.ning.com/topology/rest/1.0/file/get/2654894466?profile=original" target="_self"><img width="750" src="http://storage.ning.com/topology/rest/1.0/file/get/2654894466?profile=RESIZE_1024x1024" width="750" class="align-full"/></a><p></p>
<p>Hi,</p>
<p>I'm trying to manipulate a surface's vertices in order to create a second surface to which I surfaced morphed a geometry to. I actually managed to get that to work, for the most part, but the problem here is, is that some of the original vertices from the DeBrep component are out of order messing up the surface created from those vertices. I'm not sure if I'm explaining this well enough, sorry, but I'll upload the grasshopper and rhino files and I think you'll see what I mean.</p>
<p>Any help would be greatly appreciated!<br/> Thanks in advance,</p>
<p>-Andrew</p> Organizing/ Extracting Mesh Vertices in Liststag:www.grasshopper3d.com,2015-01-22:2985220:Topic:12092832015-01-22T19:58:49.945ZJFighttps://www.grasshopper3d.com/profile/JFig
<p><span style="color: #0000ff;">Hello - I initially posted this in the FAQ section, but figure it may help to post it on the General board too... Thanks - Jerry</span></p>
<p>I would like to ask for some direction on how to systematically organize mesh vertices in the attached examples?</p>
<p>I'm looking to be able to efficiently extract specific vertex numbers from this mesh surface. Since the numbers are not sequential, and are scattered throughout the mesh, across all rows and columns it…</p>
<p><span style="color: #0000ff;">Hello - I initially posted this in the FAQ section, but figure it may help to post it on the General board too... Thanks - Jerry</span></p>
<p>I would like to ask for some direction on how to systematically organize mesh vertices in the attached examples?</p>
<p>I'm looking to be able to efficiently extract specific vertex numbers from this mesh surface. Since the numbers are not sequential, and are scattered throughout the mesh, across all rows and columns it makes it cumbersome to select particular vertices for manipulation.</p>
<p></p>
<p>I'm looking to extrapolate a list of the vertex numbers for further editing, namely moving them in xyz directions.</p>
<p></p>
<p>I have successfully achieved this, but by manually typing in the numbers in a list defining the vertices I would like moved. For reference, I created the mesh in Rhino, not Grasshopper.</p>
<p></p>
<p><strong>Can someone please help me with understanding how to extract these numbers in a more efficient way, without typing each one in?</strong></p>
<p></p>
<p>See attached.</p>
<p></p>
<p>Thanks,</p>
<p>Jerry</p> Overlapped verticestag:www.grasshopper3d.com,2014-02-16:2985220:Topic:10102182014-02-16T19:31:08.408ZKashyap Shahhttps://www.grasshopper3d.com/profile/KashyapShah
<p>Hi.</p>
<p>I divided a surface into curves and then into points (Using the brep components). The points seem to be divided into four groups and I cant list individual points (using the point list component).</p>
<p>I tried the flatten, graft, reverse option but in vain. I even tried grouping the points and then exploding them but that doesn't seem to work either.</p>
<p>I need to extract the points, list them and then triangulate them to form a mesh</p>
<p></p>
<p>Any help…</p>
<p>Hi.</p>
<p>I divided a surface into curves and then into points (Using the brep components). The points seem to be divided into four groups and I cant list individual points (using the point list component).</p>
<p>I tried the flatten, graft, reverse option but in vain. I even tried grouping the points and then exploding them but that doesn't seem to work either.</p>
<p>I need to extract the points, list them and then triangulate them to form a mesh</p>
<p></p>
<p>Any help appreciated</p>
<p>Thank you</p>
<p>Kashyap</p> Difference in vertex index (Weaverbird / Rhino.Geometry)tag:www.grasshopper3d.com,2013-11-01:2985220:Topic:9490092013-11-01T11:20:46.160ZTimo Harboe Nielsenhttps://www.grasshopper3d.com/profile/TimoHarboeNielsen
<p>Hi</p>
<p> </p>
<p>I have been working on a script where the index of the vertices of a mesh is quite vital. In the process I have found a quite weird difference between the Weaverbird vertex component and the Rhino.Geometry.Collections.MeshVertexList.ToPoint3dArray(). The order of the ve<a href="http://storage.ning.com/topology/rest/1.0/file/get/2654824109?profile=original" target="_self"></a>rtices in the two cases are different.</p>
<p>I have made a testcomponent that has the vertices of…</p>
<p>Hi</p>
<p> </p>
<p>I have been working on a script where the index of the vertices of a mesh is quite vital. In the process I have found a quite weird difference between the Weaverbird vertex component and the Rhino.Geometry.Collections.MeshVertexList.ToPoint3dArray(). The order of the ve<a href="http://storage.ning.com/topology/rest/1.0/file/get/2654824109?profile=original" target="_self"></a>rtices in the two cases are different.</p>
<p>I have made a testcomponent that has the vertices of a mesh as output. I then draw a poyline between vertices to show the difference. See picture: Top is Rhino.Geometry. Bottom is WeaverBird. Anyone who knows why this is the case?</p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2654824109?profile=original" target="_self"><img width="500" class="align-center" src="http://storage.ning.com/topology/rest/1.0/file/get/2654824109?profile=RESIZE_1024x1024" width="500"/></a></p>
<p> </p>
<p> </p>
<p>And heres the code</p>
<p> </p>
<p>namespace</p>
<p><font size="2" face="Consolas"><font size="2" face="Consolas">VerticesTest</font></font></p>
<p>{</p>
<p> </p>
<p><font color="#0000FF" size="2" face="Consolas"><font color="#0000FF" size="2" face="Consolas"><font color="#0000FF" size="2" face="Consolas">using</font></font></font> <font size="2" face="Consolas"><font size="2" face="Consolas">System;</font></font></p>
<p> </p>
<p><font color="#0000FF" size="2" face="Consolas"><font color="#0000FF" size="2" face="Consolas"><font color="#0000FF" size="2" face="Consolas">using</font></font></font> <font size="2" face="Consolas"><font size="2" face="Consolas">Grasshopper.Kernel;</font></font></p>
<p> </p>
<p><font color="#0000FF" size="2" face="Consolas"><font color="#0000FF" size="2" face="Consolas"><font color="#0000FF" size="2" face="Consolas">using</font></font></font> <font size="2" face="Consolas"><font size="2" face="Consolas">Rhino;</font></font></p>
<p> </p>
<p><font color="#0000FF" size="2" face="Consolas"><font color="#0000FF" size="2" face="Consolas"><font color="#0000FF" size="2" face="Consolas">using</font></font></font> <font size="2" face="Consolas"><font size="2" face="Consolas">Rhino.Geometry;</font></font></p>
<p> </p>
<p><font color="#0000FF" size="2" face="Consolas"><font color="#0000FF" size="2" face="Consolas"><font color="#0000FF" size="2" face="Consolas">public</font></font></font> <font color="#0000FF" size="2" face="Consolas"><font color="#0000FF" size="2" face="Consolas"><font color="#0000FF" size="2" face="Consolas">class</font></font></font> <font color="#2B91AF" size="2" face="Consolas"><font color="#2B91AF" size="2" face="Consolas"><font color="#2B91AF" size="2" face="Consolas">VerticesTest</font></font></font> <font size="2" face="Consolas"><font size="2" face="Consolas">:</font></font> <font color="#2B91AF" size="2" face="Consolas"><font color="#2B91AF" size="2" face="Consolas"><font color="#2B91AF" size="2" face="Consolas">GH_Component</font></font></font></p>
<p> {</p>
<p> </p>
<p><font color="#0000FF" size="2" face="Consolas"><font color="#0000FF" size="2" face="Consolas"><font color="#0000FF" size="2" face="Consolas">private</font></font></font> <font color="#2B91AF" size="2" face="Consolas"><font color="#2B91AF" size="2" face="Consolas"><font color="#2B91AF" size="2" face="Consolas">Point3d</font></font></font><font size="2" face="Consolas"><font size="2" face="Consolas">[] vertices;</font></font></p>
<p> </p>
<p><font color="#0000FF" size="2" face="Consolas"><font color="#0000FF" size="2" face="Consolas"><font color="#0000FF" size="2" face="Consolas">public</font></font></font> <font size="2" face="Consolas"><font size="2" face="Consolas">VerticesTest()</font></font></p>
<p> :</p>
<p><font color="#0000FF" size="2" face="Consolas"><font color="#0000FF" size="2" face="Consolas"><font color="#0000FF" size="2" face="Consolas">base</font></font></font><font size="2" face="Consolas"><font size="2" face="Consolas">(</font></font><font color="#A31515" size="2" face="Consolas"><font color="#A31515" size="2" face="Consolas"><font color="#A31515" size="2" face="Consolas">"TestMyVertices"</font></font></font><font size="2" face="Consolas"><font size="2" face="Consolas">,</font></font> <font color="#A31515" size="2" face="Consolas"><font color="#A31515" size="2" face="Consolas"><font color="#A31515" size="2" face="Consolas">"VerticesTest"</font></font></font><font size="2" face="Consolas"><font size="2" face="Consolas">,</font></font> <font color="#A31515" size="2" face="Consolas"><font color="#A31515" size="2" face="Consolas"><font color="#A31515" size="2" face="Consolas">"Component made to show the difference between Weaverbirds and Grasshoppers different way of recognizing vertices"</font></font></font><font size="2" face="Consolas"><font size="2" face="Consolas">,</font></font> <font color="#A31515" size="2" face="Consolas"><font color="#A31515" size="2" face="Consolas"><font color="#A31515" size="2" face="Consolas">"Extra"</font></font></font><font size="2" face="Consolas"><font size="2" face="Consolas">,</font></font> <font color="#A31515" size="2" face="Consolas"><font color="#A31515" size="2" face="Consolas"><font color="#A31515" size="2" face="Consolas">"TestStuff"</font></font></font><font size="2" face="Consolas"><font size="2" face="Consolas">)</font></font></p>
<p> {</p>
<p> }</p>
<p> </p>
<p><font color="#0000FF" size="2" face="Consolas"><font color="#0000FF" size="2" face="Consolas"><font color="#0000FF" size="2" face="Consolas">protected</font></font></font> <font color="#0000FF" size="2" face="Consolas"><font color="#0000FF" size="2" face="Consolas"><font color="#0000FF" size="2" face="Consolas">override</font></font></font> <font color="#0000FF" size="2" face="Consolas"><font color="#0000FF" size="2" face="Consolas"><font color="#0000FF" size="2" face="Consolas">void</font></font></font> <font size="2" face="Consolas"><font size="2" face="Consolas">RegisterInputParams(</font></font><font color="#2B91AF" size="2" face="Consolas"><font color="#2B91AF" size="2" face="Consolas"><font color="#2B91AF" size="2" face="Consolas">GH_Component</font></font></font><font size="2" face="Consolas"><font size="2" face="Consolas">.</font></font><font color="#2B91AF" size="2" face="Consolas"><font color="#2B91AF" size="2" face="Consolas"><font color="#2B91AF" size="2" face="Consolas">GH_InputParamManager</font></font></font> <font size="2" face="Consolas"><font size="2" face="Consolas">pManager)</font></font></p>
<p> {</p>
<p> pManager.AddMeshParameter(</p>
<p><font color="#A31515" size="2" face="Consolas"><font color="#A31515" size="2" face="Consolas"><font color="#A31515" size="2" face="Consolas">"Mesh"</font></font></font><font size="2" face="Consolas"><font size="2" face="Consolas">,</font></font> <font color="#A31515" size="2" face="Consolas"><font color="#A31515" size="2" face="Consolas"><font color="#A31515" size="2" face="Consolas">"M"</font></font></font><font size="2" face="Consolas"><font size="2" face="Consolas">,</font></font> <font color="#A31515" size="2" face="Consolas"><font color="#A31515" size="2" face="Consolas"><font color="#A31515" size="2" face="Consolas">"Mesh for test"</font></font></font><font size="2" face="Consolas"><font size="2" face="Consolas">,</font></font> <font color="#2B91AF" size="2" face="Consolas"><font color="#2B91AF" size="2" face="Consolas"><font color="#2B91AF" size="2" face="Consolas">GH_ParamAccess</font></font></font><font size="2" face="Consolas"><font size="2" face="Consolas">.item);</font></font></p>
<p> }</p>
<p> </p>
<p><font color="#0000FF" size="2" face="Consolas"><font color="#0000FF" size="2" face="Consolas"><font color="#0000FF" size="2" face="Consolas">protected</font></font></font> <font color="#0000FF" size="2" face="Consolas"><font color="#0000FF" size="2" face="Consolas"><font color="#0000FF" size="2" face="Consolas">override</font></font></font> <font color="#0000FF" size="2" face="Consolas"><font color="#0000FF" size="2" face="Consolas"><font color="#0000FF" size="2" face="Consolas">void</font></font></font> <font size="2" face="Consolas"><font size="2" face="Consolas">RegisterOutputParams(</font></font><font color="#2B91AF" size="2" face="Consolas"><font color="#2B91AF" size="2" face="Consolas"><font color="#2B91AF" size="2" face="Consolas">GH_Component</font></font></font><font size="2" face="Consolas"><font size="2" face="Consolas">.</font></font><font color="#2B91AF" size="2" face="Consolas"><font color="#2B91AF" size="2" face="Consolas"><font color="#2B91AF" size="2" face="Consolas">GH_OutputParamManager</font></font></font> <font size="2" face="Consolas"><font size="2" face="Consolas">pManager)</font></font></p>
<p> {</p>
<p> pManager.AddPointParameter(</p>
<p><font color="#A31515" size="2" face="Consolas"><font color="#A31515" size="2" face="Consolas"><font color="#A31515" size="2" face="Consolas">"Vertices"</font></font></font><font size="2" face="Consolas"><font size="2" face="Consolas">,</font></font> <font color="#A31515" size="2" face="Consolas"><font color="#A31515" size="2" face="Consolas"><font color="#A31515" size="2" face="Consolas">"V"</font></font></font><font size="2" face="Consolas"><font size="2" face="Consolas">,</font></font> <font color="#A31515" size="2" face="Consolas"><font color="#A31515" size="2" face="Consolas"><font color="#A31515" size="2" face="Consolas">"TestOutputforMeshgeneration"</font></font></font><font size="2" face="Consolas"><font size="2" face="Consolas">,</font></font> <font color="#2B91AF" size="2" face="Consolas"><font color="#2B91AF" size="2" face="Consolas"><font color="#2B91AF" size="2" face="Consolas">GH_ParamAccess</font></font></font><font size="2" face="Consolas"><font size="2" face="Consolas">.list);</font></font></p>
<p> }</p>
<p> </p>
<p> </p>
<p><font color="#0000FF" size="2" face="Consolas"><font color="#0000FF" size="2" face="Consolas"><font color="#0000FF" size="2" face="Consolas">protected</font></font></font> <font color="#0000FF" size="2" face="Consolas"><font color="#0000FF" size="2" face="Consolas"><font color="#0000FF" size="2" face="Consolas">override</font></font></font> <font color="#0000FF" size="2" face="Consolas"><font color="#0000FF" size="2" face="Consolas"><font color="#0000FF" size="2" face="Consolas">void</font></font></font> <font size="2" face="Consolas"><font size="2" face="Consolas">SolveInstance(</font></font><font color="#2B91AF" size="2" face="Consolas"><font color="#2B91AF" size="2" face="Consolas"><font color="#2B91AF" size="2" face="Consolas">IGH_DataAccess</font></font></font> <font size="2" face="Consolas"><font size="2" face="Consolas">DA)</font></font></p>
<p> {</p>
<p> Rhino.Geometry.</p>
<p><font color="#2B91AF" size="2" face="Consolas"><font color="#2B91AF" size="2" face="Consolas"><font color="#2B91AF" size="2" face="Consolas">Mesh</font></font></font> <font size="2" face="Consolas"><font size="2" face="Consolas">mesh =</font></font> <font color="#0000FF" size="2" face="Consolas"><font color="#0000FF" size="2" face="Consolas"><font color="#0000FF" size="2" face="Consolas">null</font></font></font><font size="2" face="Consolas"><font size="2" face="Consolas">;</font></font></p>
<p> </p>
<p><font color="#0000FF" size="2" face="Consolas"><font color="#0000FF" size="2" face="Consolas"><font color="#0000FF" size="2" face="Consolas">if</font></font></font> <font size="2" face="Consolas"><font size="2" face="Consolas">(!DA.GetData(0,</font></font> <font color="#0000FF" size="2" face="Consolas"><font color="#0000FF" size="2" face="Consolas"><font color="#0000FF" size="2" face="Consolas">ref</font></font></font> <font size="2" face="Consolas"><font size="2" face="Consolas">mesh)) {</font></font> <font color="#0000FF" size="2" face="Consolas"><font color="#0000FF" size="2" face="Consolas"><font color="#0000FF" size="2" face="Consolas">return</font></font></font><font size="2" face="Consolas"><font size="2" face="Consolas">; }</font></font></p>
<p> </p>
<p><font color="#0000FF" size="2" face="Consolas"><font color="#0000FF" size="2" face="Consolas"><font color="#0000FF" size="2" face="Consolas">if</font></font></font> <font size="2" face="Consolas"><font size="2" face="Consolas">(!mesh.IsValid) {</font></font> <font color="#0000FF" size="2" face="Consolas"><font color="#0000FF" size="2" face="Consolas"><font color="#0000FF" size="2" face="Consolas">return</font></font></font><font size="2" face="Consolas"><font size="2" face="Consolas">; }</font></font></p>
<p> vertices = mesh.Vertices.ToPoint3dArray();</p>
<p> </p>
<p> DA.SetDataList(0, vertices);</p>
<p> }</p>
<p> </p>
<p> </p>
<p><font color="#0000FF" size="2" face="Consolas"><font color="#0000FF" size="2" face="Consolas"><font color="#0000FF" size="2" face="Consolas">public</font></font></font> <font color="#0000FF" size="2" face="Consolas"><font color="#0000FF" size="2" face="Consolas"><font color="#0000FF" size="2" face="Consolas">override</font></font></font> <font color="#2B91AF" size="2" face="Consolas"><font color="#2B91AF" size="2" face="Consolas"><font color="#2B91AF" size="2" face="Consolas">Guid</font></font></font> <font size="2" face="Consolas"><font size="2" face="Consolas">ComponentGuid</font></font></p>
<p> {</p>
<p> </p>
<p><font color="#0000FF" size="2" face="Consolas"><font color="#0000FF" size="2" face="Consolas"><font color="#0000FF" size="2" face="Consolas">get</font></font></font> <font size="2" face="Consolas"><font size="2" face="Consolas">{</font></font> <font color="#0000FF" size="2" face="Consolas"><font color="#0000FF" size="2" face="Consolas"><font color="#0000FF" size="2" face="Consolas">return</font></font></font> <font color="#0000FF" size="2" face="Consolas"><font color="#0000FF" size="2" face="Consolas"><font color="#0000FF" size="2" face="Consolas">new</font></font></font> <font color="#2B91AF" size="2" face="Consolas"><font color="#2B91AF" size="2" face="Consolas"><font color="#2B91AF" size="2" face="Consolas">Guid</font></font></font><font size="2" face="Consolas"><font size="2" face="Consolas">(</font></font><font color="#A31515" size="2" face="Consolas"><font color="#A31515" size="2" face="Consolas"><font color="#A31515" size="2" face="Consolas">"DA410557-D5CE-4457-914D-F594F64FA978"</font></font></font><font size="2" face="Consolas"><font size="2" face="Consolas">);</font></font></p>
<p> }</p>
<p> }</p>
<p> }</p>
<p>}</p>
<p> </p>
<p> </p> C# Mesh Verticestag:www.grasshopper3d.com,2013-03-05:2985220:Topic:8018662013-03-05T02:54:09.049ZNicolashttps://www.grasshopper3d.com/profile/Nicolas370
<p>It's a very basic question, I know VB and trying to switch to c#, and certain things don't work.</p>
<p></p>
<p>In this case this line of code</p>
<p></p>
<p>Int32[] t = M.Vertices(i).GetConnectedVertices(i);</p>
<p></p>
<p>keeps giving the following error</p>
<p></p>
<p>Rhino.geometry.mesh. vertices cannot be used like a method.</p>
<p></p>
<p>I've tried the equivalent in VB and it works, I wonder what exactly Im doing wrong.</p>
<p></p>
<p></p>
<p>Thanks for any help</p>
<p>It's a very basic question, I know VB and trying to switch to c#, and certain things don't work.</p>
<p></p>
<p>In this case this line of code</p>
<p></p>
<p>Int32[] t = M.Vertices(i).GetConnectedVertices(i);</p>
<p></p>
<p>keeps giving the following error</p>
<p></p>
<p>Rhino.geometry.mesh. vertices cannot be used like a method.</p>
<p></p>
<p>I've tried the equivalent in VB and it works, I wonder what exactly Im doing wrong.</p>
<p></p>
<p></p>
<p>Thanks for any help</p> How do I extract the vertices of a Polysurface?tag:www.grasshopper3d.com,2013-01-15:2985220:Topic:7697832013-01-15T12:56:46.084ZMiguel Rushttps://www.grasshopper3d.com/profile/MiguelRus
<p><span>I'm scripting in python and I'm trying to extract the vertices of the polysurface.</span> Does anyone know command to extract the vertices of a polysurface or a single surfaces? or a way around it?</p>
<p>I know this can be done with the explode component in grasshopper but I need to do it inside the python component.</p>
<p><br/> <span>thanks,</span></p>
<p>M</p>
<p><span>I'm scripting in python and I'm trying to extract the vertices of the polysurface.</span> Does anyone know command to extract the vertices of a polysurface or a single surfaces? or a way around it?</p>
<p>I know this can be done with the explode component in grasshopper but I need to do it inside the python component.</p>
<p><br/> <span>thanks,</span></p>
<p>M</p> Brep alteration using Verticestag:www.grasshopper3d.com,2012-03-13:2985220:Topic:5542682012-03-13T07:15:15.820ZYounggrasshopperhttps://www.grasshopper3d.com/profile/Younggrasshopper
<p>Im trying to alter a brep by moving some of its vertex points, but there are enough that I do not want to manually rebuild the brep. Its there are short cut. IE</p>
<p>I want to alter the shape of the brep in the same way I can alter a mesh by using control points in Rhino. </p>
<p>Im trying to alter a brep by moving some of its vertex points, but there are enough that I do not want to manually rebuild the brep. Its there are short cut. IE</p>
<p>I want to alter the shape of the brep in the same way I can alter a mesh by using control points in Rhino. </p> Mesh Info Conflicttag:www.grasshopper3d.com,2012-02-18:2985220:Topic:5395292012-02-18T03:06:57.432ZAndy VanMaterhttps://www.grasshopper3d.com/profile/AndyVanMater
<p>Can anyone tell me why my mesh edge vertices are not on the same face as they say they are coming from?</p>
<p></p>
<p> </p>
<p>Dim m As mesh = msh</p>
<p>Dim checker As New List(Of point3d)</p>
<p>m.Vertices.CombineIdentical(True, True)</p>
<p>For i As int32 = 0 To 0'm.Faces.Count - 1<br></br> checker.Add(m.Faces.GetFaceCenter(i))<br></br> For j As int32 = 0 To m.TopologyEdges.GetEdgesForFace(i).Length -…</p>
<p>Can anyone tell me why my mesh edge vertices are not on the same face as they say they are coming from?</p>
<p></p>
<p> </p>
<p>Dim m As mesh = msh</p>
<p>Dim checker As New List(Of point3d)</p>
<p>m.Vertices.CombineIdentical(True, True)</p>
<p>For i As int32 = 0 To 0'm.Faces.Count - 1<br/> checker.Add(m.Faces.GetFaceCenter(i))<br/> For j As int32 = 0 To m.TopologyEdges.GetEdgesForFace(i).Length - 1</p>
<p>checker.add(m.Vertices(m.TopologyEdges.GetTopologyVertices(m.TopologyEdges.GetEdgesForFace(i)(j)).I))<br/> checker.add(m.vertices(m.TopologyEdges.GetTopologyVertices(m.TopologyEdges.GetEdgesForFace(i)(j)).J))</p>
<p>Next<br/> Next</p>
<p>a = checker</p>