FEM: meshtools, fix node count in newly add mesh type method, regressin wass added in ff5509f855

This commit is contained in:
Bernd Hahnebach
2021-07-30 16:08:46 +02:00
parent 83723fef44
commit 3962c347ac

View File

@@ -2248,9 +2248,9 @@ def get_femmesh_eletype(
FreeCAD.Console.PrintError("no tria, no quad\n")
return "None"
elif is_edge_femmesh(femmesh):
if elem_length == 3:
if elem_length == 2:
return "seg2"
elif elem_length == 6:
elif elem_length == 3:
return "seg3"
else:
FreeCAD.Console.PrintError("Seg with neither 2 nor 3 nodes.\n")