HC_Compute_Polygon_Plane

bool HC_Compute_Polygon_Plane(int count, Point const points[], char const *hand, Plane *out_plane)
bool HC_Compute_Polygon_Plane(int count, Point const points, char const hand, Plane out_plane)

Compute_Polygon_Plane() is similar to Compute_Polygon_Normal() . The first three values are the polygon normal itself; the addition of the fourth value allows you to write the equation of the plane of the polygon in the form ax + by + cz* + d = 0. If no plane can be found, false is returned and out_plane is unchanged.

HC_Compute_Coordinates, HC_Compute_Polygon_Normal, HC_Compute_Transform, HC_Set_Modelling_Matrix, HC_Show_Device_Info, HC_Show_Polygon, HC_Show_Shell.

Parameters

count: Number of xyz triplets in points

points: As in Insert_Polygon() , xyz triplets to specify the 3D vertices of the polygon. Must be coplanar.

hand: The definition order of the polygon - “left” or “right”.

out_plane: Plane equation parameters (a,b,c,d ). Returned to the caller.

Returns

success