PathEngine home previous: iRenderGeometry::addLineSequence()next: iRenderGeometry::hasRefs()
Contents, API Reference, Interfaces, iRenderGeometry, addPolygon

iRenderGeometry::addPolygon()

Description

Adds a 3D polygon.

Syntax

void addPolygon(float const * points_Buffer, uint32_t points_BufferEntries);

Parameters

points_Buffer, points_BufferEntries (See Passing Arrays.) X,Y,Z values for each point in the fan, for at least 3 points. (Array size must be a multiple of 3, and greater than or equal to 9.)

Remarks

The points passed in should form an approximately convex polygon, with points all sharing a plane in 3D.

Winding order is clockwise, i.e. when points in a polygon appear in clockwise order around the polygon as seen from the camera, the polygon is considered to be facing the camera.

C# Mapping

void addPolygon(float[] points);

Java Mapping

void addPolygon(float[] points);

Documentation for PathEngine release 6.04 - Copyright © 2002-2024 PathEnginenext: iRenderGeometry::hasRefs()