pyblenderSDIC.meshes.TriangleMesh3D.calculate_intersect_shape_functions#

TriangleMesh3D.calculate_intersect_shape_functions(intersect_points: IntersectPoints) ndarray[source]#

Compute the shape function values at intersection points.

This method computes the shape function values at the intersection points using the barycentric coordinates and the triangle indices contained in the given IntersectPoints object.

The shape function values are computed as follows:

\[\begin{split}S = \begin{bmatrix} 1 - u - v \\ u \\ v \end{bmatrix}\end{split}\]

Where \(u\) and \(v\) are the barycentric coordinates of the intersection points.

Parameters:

intersect_points (IntersectPoints) – An object containing barycentric coordinates and triangle indices.

Returns:

An array of shape (…, 3) containing the shape function values at the intersection points. Points with no intersection are returned as [nan, nan, nan].

Return type:

numpy.ndarray