get_triangle_area#

static GeometryOperators.get_triangle_area(v1: list, v2: list, v3: list) float#

Evaluate the area of a triangle defined by its three vertices.

Parameters:
v1List

List of [x, y, z] coordinates for the first vertex.

v2List

List of [x, y, z] coordinates for the second vertex.

v3List

List of [x, y, z] coordinates for the third vertex.

Returns:
float

Area of the triangle.

Examples

>>> from ansys.aedt.core.modeler.geometry_operators import GeometryOperators
>>> obj = GeometryOperators()
>>> obj.get_triangle_area(v1=[0, 0, 0], v2=[10, 0, 0], v3=[0, 10, 0])