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:
- v1
List List of
[x, y, z]coordinates for the first vertex.- v2
List List of
[x, y, z]coordinates for the second vertex.- v3
List List of
[x, y, z]coordinates for the third vertex.
- v1
- Returns:
floatArea 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])