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.
- unitizedbool, optional
If True, unitize the normal vector.
- triangle[point, point, point] |
- Returns:
- [float, float, float]
The normal vector.
- Raises:
- ValueError
If the triangle does not have three vertices.
See also