mymesh.utils.DeleteDegenerateElements#
- mymesh.utils.DeleteDegenerateElements(NodeCoords, NodeConn, tol=1e-12, angletol=0.001, strict=False)[source]#
Deletes degenerate elements from a mesh. TODO: Currently only valid for triangles. :param NodeCoords: List of nodal coordinates. :type NodeCoords: list :param NodeConn: List of nodal connectivities. :type NodeConn: list :param angletol: Tolerance value for determining what constitutes a degenerate element, by default 1e-3. Degenerate elements will be those who have an angle greater than or equal to 180-180*angletol (default 179.82 degrees) :type angletol: float, optional
- Returns:
NodeCoords (list) – List of nodal coordinates.
NodeConn (list) – List of nodal connectivities.