edges
edges(F, return_boundary_indices=False, return_interior_indices=False, return_nonmanifold_indices=False)
Given a triangle mesh with face indices F, returns all unique unoriented edges as indices into the vertex array. There is no particular ordering convention for edges. Boundary edges are guaranteed to be oriented as in F.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
F |
(m,3) numpy int array
|
face index list of a triangle mesh |
required |
return_boundary_indices |
bool, optional (default False)
|
whether to return a list of indices into E denoting the boundary edges |
False
|
return_interior_indices |
bool, optional (default False)
|
whether to return a list of indices into E denoting the interior edges |
False
|
return_nonmanifold_indices |
bool, optional (default False)
|
whether to return a list of indices into E denoting the nonmanifold edges |
False
|
Returns:
Name | Type | Description |
---|---|---|
E |
(e,2) numpy int array
|
indices of edges into the vertex array |
boundary_indices |
if requested, (b,) numpy int array
|
list of indices into E of boundary edges |
interior_indices |
if requested, (i,) numpy int array
|
list of indices into E of interior edges |
nonmanifold_indices |
if requested, (nm,) numpy int array
|
list of indices into E of nonmanifold edges |
Examples:
TODO
Source code in src/gpytoolbox/edges.py
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 |
|