normal_triangle
- compas.geometry.normal_triangle(triangle, unitized=True)[source]
Compute the normal vector of a triangle.
- Parameters
triangle ([point, point, point] |
compas.geometry.Polygon
) – A list of triangle point coordinates.unitized (bool, optional) – If True, unitize the normal vector.
- Returns
[float, float, float] – The normal vector.
- Raises
AssertionError – If the triangle does not have three vertices.