gustaf.create.faces.to_quad#

gustaf.create.faces.to_quad(tri)[source]#

In case current mesh is triangle surface mesh, it splits triangle faces into three quad faces by inserting another vertices in the middle of each triangle face. Warning: mesh quality could be bad!

(new) Quad Face

Ref: (node_ind), face_ind

         (2)
         /                     / 2                 (5)/\   /\(4)
      /  \ /                   / 0  |(6)                 /_____|___1_              (0)   (3)    (1)

face_ind | node_ind
---------|----------
0        | 0 3 6 5
1        | 1 4 6 3
2        | 2 5 6 4
Parameters:

None

Returns:

quad_mesh – Only if current mesh is triangle surface mesh. Otherwise, None.

Return type:

Mesh