Notifications
Clear all

[Closed] getNumEdges on Mesh

Hi, how to get the number of edges from the mesh object? I see this function only for poly object.

4 Replies

for a trimesh

numedges = $.numfaces * 3 

Thanks, it works but it’s kind of weird. When 2 triangles share 1 edge, this mutual edge is 2 diffrent edges in fact?

they don’t share an edge in a trimesh every face has 3 edges so theres two edges between between every face. You can prove this to yourself by repeatedly picking the “same” edge and looking at the info result in the modify panel as you do so.

$.edges.count

or

$.mesh.edges.count