cellcomplex.property_topomesh.optimization.topomesh_triangle_split¶
-
cellcomplex.property_topomesh.optimization.topomesh_triangle_split(input_topomesh, verbose=False, debug=False, loglevel=0)[source]¶ Remesh a triangular PropertyTopomesh by spltting all faces into 4
Performs a simple remeshing of a triangular topomesh by inserting a middle vertex on each edge, and splitting each triangle into four identical triangle by linking the middle vertices.
>>> " • • " >>> " / \ / \ " >>> " / \ ---> •---• " >>> " / \ / \ / \ " >>> "•-------• •---•---•"
- Parameters
input_topomesh (
cellcomplex.property_topomesh.PropertyTopomesh) – The initial structure on which to perform the remeshing- Returns
topomesh – The remeshed structure
- Return type
cellcomplex.property_topomesh.PropertyTopomesh
Warning
The PropertyTopomesh must be a triangular topomesh (
cellcomplex.property_topomesh.analysis.is_triangular())