mymesh.mesh.mesh.Contour#
- mesh.Contour(scalars, threshold, threshold_direction=1, method=None, Type='surf')[source]#
Contour the mesh to extract an isosurface based on nodal scalar values.
- Parameters:
scalars (str or array_like) – Values to be used for thresholding, either a string indicating an entry in NodeData or ElemData, or an array_like of values.
threshold (int, float) – Isosurface level that defines the boundary
threshold_direction (signed int) – If threshold_direction is negative (default), values less than or equal to the threshold will be considered “inside” the mesh and the opposite if threshold_direction is positive, by default 1.
method (str, optional) – Method to be used for contouring. This option not currently implemented.
Type (str, optional) – Specfies the mesh type (‘surf’ or ‘vol’) to produce by contouring, by default ‘surf’.
- Returns:
M – Contoured mesh
- Return type: