Grasshopper

algorithmic modeling for Rhino

Hi all,

maybe rather simple question, but what would be the quickest way to find faces connected to edges in a mesh in python?

Views: 633

Replies are closed for this discussion.

Replies to This Discussion

Hi Axel,

I think the most direct approach would be to convert your mesh into a graph in order to analyze it and retrieve this type of information. Then it should be easy to collect all the closed polygons from it and check for the neighbors.
I don't have with me any python script that does that but there exist a grasshopper plug-in written by Tobias that does already the job.
If you want to stay within the python environment you can just reference the right component with the ghcomp node-in-code method - see definition attached. A bit hacky and definitely not the quickest way, but that's a start. Hope it helps.

Cheers from Copenhagen!

Paul

Attachments:

Hi Paul!!

I hope everything is fine in Copenhagen?

Thank you for your reply. 

I also found a way now with the TopologyEdges.GetConnectedFaces() command...

Hi Axel,

Perhaps I could help. Can you share your Python code or GH definition?

Thanks,

Devang

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service