Grasshopper

algorithmic modeling for Rhino

Question on python script to take vertices and finding their connected neighbors

Hello all,
I am having some trouble with a python script I and a colleague are writing that would take in a mesh and iterate through the all the vertices and get them to recognize their neighbors so as to be able to act on them.  For some reason it seems as though I am getting double the perceived number of connections.
It would be monumentally helpful if you could glance over my code and tell me what might be causing this issue.  
Here is the Grasshopper file with the python script:
Cheers and stay classy,
Chris 

Views: 356

Attachments:

Replies to This Discussion

are your vertices welded?  try Mesh.Weld Method

Solved.

Need to initiate the empty list in the __init__ function.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service