fastest 3D software for linux

Linux 3D
interactive ray-tracing
[1 introduction] [2 overview] [3 reference] [4 GUI]

Index

 E3dPolygon_TriangulateM


E3dPolygon_TriangulateM

Triangulate a Polygon

Syntax
EIndex E3dPolygon_TriangulateM(E3dPolygon* PPolygon, const E3dVertexNodeSize PVertexNodeSize, const E3dVertex* PVertices, const E3dVertexSize PVertexSize, uint8_t** PTmpBufferP, EIndex* PTmpBufferSizeP, const EBool PDoConvex)

Arguments
const E3dVertex* PVertices The array of vertices this Polygon is indexing in its VertexNodes const E3dVertexSize PVertexSize The size of each Vertex in bytes E3dPolygon* PPolygon Pointer to the E3dPolygon structure const EBool PDoConvex Should we try to triangulate convex Polys or just concave ones
Description
Triangulates a Polygon and stores the resulting triangles in the Polygon structure. The Polygon's normal must be correct before calling this function.

Return value
The number of resulting triangles, or an error code if the triangulation was unsuccessful.

See also
E3d_TestTriangulatePolygon, E3dPolygon_TriangulateForRendering, E3dPolygon_UpdateNormal
© 1996-2022 By Gabor Nagy