pyxfem.core.mesh_modifications module

module for some basic mesh modification of SMESH

class pyxfem.core.mesh_modifications.MeshHierarchicModification(xy, tris)[source]

Bases: object

A class to store and do basic numbering for hierarchic modification; currently used by levelsetmeshcut

get_new_mesh()[source]

return coordinates of vertices and triangles

get_new_mesh_pushdata(verticesdata_oldmesh, verticesdata_modifyedmesh)[source]

return coordinates of vertices and triangles and data for the new mesh obtained after modifications

parents2sons()[source]

return parent to son data

pyxfem.core.mesh_modifications.duplicate_edges(mesh: SMesh, array_edges_id)[source]

duplicate the edges in array_edges in the mesh and modify connectivity in the mesh accordingly return the modifyed mesh and an array dupedge containing the id of the new edges so that dupedge[i] is the id of the reversed edge array_edges_id[i]

pyxfem.core.mesh_modifications.duplicate_nodes(mesh: SMesh, cut_eid)[source]

duplicate node and update the connectivity so that field is discontinuous across the cut edge : cut_eid

pyxfem.core.mesh_modifications.merge_edges(mesh: SMesh, duplicated_edges, tomerge)[source]

merging the edge