MCPcopy Create free account
hub / github.com/PyMesh/PyMesh / chain_edges

Function chain_edges

python/pymesh/meshutils/edge_utils.py:4–9  ·  view source on GitHub ↗

Given a #E by 2 edge matrix. Return a list of edge chain/loops.

(edges)

Source from the content-addressed store, hash-verified

2import numpy as np
3
4def chain_edges(edges):
5 """ Given a #E by 2 edge matrix. Return a list of edge chain/loops.
6 """
7 if not isinstance(edges, np.ndarray):
8 edges = np.array(edges, dtype=int)
9 return PyMesh.chain_edges(edges)

Callers 8

test_single_edgeMethod · 0.90
test_two_edgesMethod · 0.90
test_loopMethod · 0.90
test_double_chainMethod · 0.90
is_vertex_manifoldMethod · 0.85
init_boundary_loopsMethod · 0.85
is_vertex_manifoldMethod · 0.85
TEST_FFunction · 0.85

Calls 1

chain_edgesMethod · 0.80

Tested by 5

test_single_edgeMethod · 0.72
test_two_edgesMethod · 0.72
test_loopMethod · 0.72
test_double_chainMethod · 0.72
TEST_FFunction · 0.68