VTKMeshValidity#

class ansys.dpf.core.vtk_helper.VTKMeshValidity#

Dataclass containing the results of a call to vtk_mesh_is_valid.

valid:

Whether the vtk mesh is valid according to the vtkCellValidator.

message:

Output message.

validity_grid:

A copy of the original grid, with validity fields.

wrong_number_of_points:

List of indexes of elements with the wrong number of points.

intersecting_edges:

List of indexes of elements with intersecting edges.

intersecting_faces:

List of indexes of elements with intersecting faces.

non_contiguous_edges:

List of indexes of elements with non-contiguous edges.

non_convex:

List of indexes of elements with non-convex shape.

inverted_faces:

List of indexes of elements with inverted faces.

Overview#

Import detail#

from ansys.dpf.core.vtk_helper import VTKMeshValidity

Attribute detail#

VTKMeshValidity.valid: bool#
VTKMeshValidity.msg: str#
VTKMeshValidity.grid: pyvista.UnstructuredGrid#
VTKMeshValidity.wrong_number_of_points: numpy.ndarray#
VTKMeshValidity.intersecting_edges: numpy.ndarray#
VTKMeshValidity.intersecting_faces: numpy.ndarray#
VTKMeshValidity.non_contiguous_edges: numpy.ndarray#
VTKMeshValidity.non_convex: numpy.ndarray#
VTKMeshValidity.inverted_faces: numpy.ndarray#