Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5884

Filtering Mesh edges sharing 2 faces - Sandbox Topology, EdgeAdjacency or?

$
0
0

@Federico_Giacomarra wrote:

HI i’m trying to filter the edges of a mesh to get those which share 2 faces. (basically getting the interior edges of a mesh)
I tried with sandbox, MeshTopologyEdgeFilter python command, with no luck.
I’m not sure if the problem is the data structure or the syntax.
here an attempt:

m_e=gh.Sandbox_Topology.MeshTopologyEdge(b)

filter=[]

for i in range(len(m_e[0])):
    filter.append(2)

me_f=gh.Sandbox_Topology.MeshTopologyEdgeFilter(m_e[0],m_e[2],filter)

his gives none as result

I tried also with an iteration and works slighlty better, but i’m not able to filter, and i always get just all the edges.

I guess this can be done in a lot of ways. Also I tried Rhino.Geometry.EdgeAdjacency but I cannot find the right input.

thanks in advance for any help

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 5884

Trending Articles