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 EIndex PNVertices, const E3dVertexSize PVertexSize, uint8_t** PTmpBufferP, EIndex* PTmpBufferSizeP, const EBool PDoConvex)

Arguments
PVertices The array of Vertices this Polygon is indexing in its VertexNodes PNVertices The number of Vertices in PVertices (for index range-checking) PVertexSize The size of each Vertex in bytes PPolygon Pointer to the E3dPolygon structure 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-2025 By Gabor Nagy