- compas.geometry.normal_triangle_xy(triangle, unitized=True)
Compute the normal vector of a triangle assumed to lie in the XY plane.
triangle ([point, point, point] |
compas.geometry.Polygon) – A list of triangle point coordinates. Z-coordinates are ignored.
unitized (bool, optional) – If True, unitize the normal vector.
[float, float, float] – The normal vector, which is a vector perpendicular to the XY plane.
AssertionError – If the triangle does not have three vertices.