cellcomplex.property_topomesh.topological_operations.topomesh_split_edge

cellcomplex.property_topomesh.topological_operations.topomesh_split_edge(topomesh, eid, split_adjacent_faces=True, verbose=False, debug=False, loglevel=0)[source]

Perform an edge split operation on a PropertyTopomesh

The edge split operation creates a new vertex in the middle of the splitted edge, and creates two new edges to link the middle vertex to the opposite vertices of the adjacent triangles. If the adjacent faces are not splitted, the mesh is no longer triangular. On the other hand, if the mesh is polygonal the splitting of the faces is not unique.

>>>  •---•       •---•
>>>  |\  |       |\ /|
>>>  | \ |  -->  | • |
>>>  |  \|       |/ \|
>>>  •---•       •---•
Parameters
  • topomesh (cellcomplex.property_topomesh.PropertyTopomesh) – The structure on which to perform the operation

  • eid (unsigned int) – The ID of the edge element to split

  • split_adjacent_faces (bool) – Whether to split the adjacent face elements

Returns

Return type

None

Note

The PropertyTopomesh passed as argument is updated.

Warning

If the PropertyTopomesh must is a triangular topomesh the split_adjacent_faces argument should be True