SurfaceMesh#

class ansys.health.heart.objects.SurfaceMesh(var_inp: pyvista.PolyData | numpy.ndarray | list | str | pathlib.Path = None, name: str = None, triangles: numpy.ndarray = None, nodes: numpy.ndarray = None, id: int = None, **kwargs)#

Bases: pyvista.PolyData

Surface class.

Overview#

force_normals_inwards

Force the cell ordering of the closed surface such that normals point inward.

nodes

Node coordinates.

triangles

Triangular faces of the surface num_faces x 3.

triangles_global

Global triangle IDs.

boundary_edges

Boundary edges of self.

boundary_edges_global

Global point IDs of boundary edges.

node_ids_triangles

Local node IDs sorted by earliest occurrence.

global_node_ids_triangles

Global node IDs from point data.

name

Name of the surface.

id

ID of the surface.

Import detail#

from ansys.health.heart.objects import SurfaceMesh

Property detail#

property SurfaceMesh.nodes#

Node coordinates.

property SurfaceMesh.triangles#

Triangular faces of the surface num_faces x 3.

property SurfaceMesh.triangles_global#

Global triangle IDs.

Returns:
Tries to use point_data["_global-point-ids"] to retrieve
triangle definitions in global IDs.
property SurfaceMesh.boundary_edges#

Boundary edges of self.

property SurfaceMesh.boundary_edges_global#

Global point IDs of boundary edges.

property SurfaceMesh.node_ids_triangles: numpy.ndarray#

Local node IDs sorted by earliest occurrence.

property SurfaceMesh.global_node_ids_triangles#

Global node IDs from point data.

Attribute detail#

SurfaceMesh.name = None#

Name of the surface.

SurfaceMesh.id: int = None#

ID of the surface.

Method detail#

SurfaceMesh.force_normals_inwards()#

Force the cell ordering of the closed surface such that normals point inward.