The Mesh class is a light proxy to CMesh.
Input and output is handled by the MeshIO class and subclasses.
Make a deep copy of the mesh.
Parameters: | name : str
|
---|
Create a graph of mesh connectivity.
Returns: | graph : csr_matrix
|
---|
Create a mesh from mesh IO data.
Read a mesh from a file.
Parameters: | filename : string or function or MeshIO instance or Mesh instance
io : *MeshIO instance
prefix_dir : str
omit_facets : bool
|
---|
Create a mesh corresponding to cells, or, if is_surface is True, to facets, of a given region.
Get the rectangular cell-vertex connectivity corresponding to desc. If ret_cells is True, the corresponding cells are returned as well.
Transform coordinates of the mesh by the given transformation matrix.
Parameters: | mtx_t : array
ref_coors : array, optional
|
---|
Write mesh + optional results in out to a file.
Parameters: | filename : str, optional
io : MeshIO instance or ‘auto’, optional
out : dict, optional
float_format : str, optional
**kwargs : dict, optional
|
---|
Find a mapping between common coordinates in x1 and x2, such that x1[cmap[:,0]] == x2[cmap[:,1]]
Detect and attempt fixing double nodes in a mesh.
The double nodes are nodes having the same coordinates w.r.t. precision given by eps.
Can miss the minimum, but is enough for our purposes.