Hi Anosh,
The nodes matrix in “untitled.m” has all Z's at 0, while elements are tets (4 nodes).
In a solid geometry, all nodes sit in the same plane, and thus the definition in “untitled.m” is invalid. Please make sure the input data for “geometryFromMesh” is consistent for either 2-D or 3-D case.
For details, refer to the documentation: Create 2-D or 3-D geometry from mesh - MATLAB geometryFromMesh (mathworks.com)
Hope this resolves your issue.
Regards,
Prateek.