|
[1 introduction] [2 overview] [3 reference] [4 GUI] IndexE3dPolygon_TestTriangulate E3dPolygon_Flatten E3dPolygon_FlattenScaled E3dPolygon_TestTriangulateTest-triangulate a PolygonSyntax Arguments Description Triangulates a Polygon, but it doesn't store the resulting triangles in Polygon structure. This function can be useful to determine whether a Polygon can be triangulated (if not, it is usually considered "degenerate" and could be thrown out, ignored etc.) Return value The number of resulting triangles, or 0 if the triangulation was unsuccessful. See also E3dPolygon_FlattenRotate a Polygon, so it's aligned with the X-Y planeSyntax Arguments Description Aligns the Polygon with the X-Y plane, making it a 2D Polygon. This is useful for many Polygon operations, such as determining Edge intersections, triangulating etc. Return value Pointer to an array of 2DPositions, corresponding to each VertexNode of the Polygon, or NULL in case of an error. This array must be freed by the caller when not used any more. See also E3dPolygon_FlattenScaledScale and rotate a Polygon, so it's aligned with the X-Y planeSyntax Arguments Description Aligns the Polygon with the X-Y plane, making it a 2D Polygon. Before being rotated, the Polygon will be uniformly scaled around its center by PScale. Return value Pointer to an array of 2DPositions, corresponding to each VertexNode of the Polygon, or NULL in case of an error. This array must be freed by the caller when not used any more See also |