gustaf.utils.connec.subdivide_edges#

gustaf.utils.connec.subdivide_edges(edges)[source]#

Subdivide edges. We assume that mid point is newly added points.

Subdivided Edges

Edges (Lines)

Ref: (node_ids), edge_ids

(0)      (2)      (1)
 *--------*--------*

edge_ids | node_ids
---------|----------
0        | 0 2
1        | 2 1
Parameters:

edges ((n, 2) np.ndarray)

Returns:

subdivided_edges

Return type:

(n * 2, 2) np.ndarray