コード例 #1
0
ファイル: test_mesh.py プロジェクト: Haider-BA/geode
def test_neighbors():
  mesh = SegmentSoup([(0,1),(0,2),(0,2)])
  assert all(mesh.neighbors()==[[1,2],[0],[0]])
コード例 #2
0
def test_neighbors():
    mesh = SegmentSoup([(0, 1), (0, 2), (0, 2)])
    assert all(mesh.neighbors() == [[1, 2], [0], [0]])