PHASTA / vtkpytools

Internal tools for using VTK
https://fluid.colorado.edu/wiki/index.php/VTKpytools
BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

Feat: Add quad/tri mesh capability for form2DGrid #35

Closed jrwrigh closed 3 years ago

jrwrigh commented 3 years ago

Allow form2DGrid to intake quad/tri meshes. Determining the whether the grid is mixed is done via the connectivity_array. If:

  1. connectivity_array has 4 IDs per element and
  2. the last two node IDs are identical for at least one element, will assume that the mesh is a quad/tri mixed mesh,

then the mesh will be considered a mixed quad/tri type.

Triangle elements are denoted by having their last node IDs repeated (ie. 1, 2, 3, 3), while quads do not.