Adds a polygon normal vector to the body data object.
GSErrCode ACAPI_Body_AddPolyNormal ( void* bodyData, const API_Vector3D& normal, Int32& index );
- [in] The body data object to add the normal vector to.
- [in] The normal vector to add.
- [out] The index of the created normal vector, can be used later to create polygons.
- The function has completed with success.
- The passed parameter is
- The vector length is 0;
For other common API errors see the API Errors document.
This function is used to add a normal vector to a body data object.
A normal vector can be used for multiple polygons and can be passed with positive and negative direction too.
The normal vector is perpendicular to the polygon plane and points the direction you want to see the polygon from. (In case of a complete body, the normal vectors point ot of the body)
The returned index can be used to create polygons with the ACAPI_Body_AddPolygon function.
See the example of the ACAPI_Body_AddPolygon function.
- Version: API 16 or later
- Header: ACAPinc.h