Category Graphics and model display, Object ProGraphics

Function ProGraphicsPolygonDraw


Description
Draws filled or unfilled polygons in the window.

NOTE:

This function is intended primarily to clear areas in Creo Parametric windows. It does not affect any Creo Parametric interface.

Replacement in Object TOOLKIT: pfcDisplay::DrawPolygon2D
Synopsis
#include <ProGraphic.h>
ProErrorProGraphicsPolygonDraw(
ProPoint2d* point_array
/* (In)
An array of X and Y coordinates, in logical window coordinates.
*/
int num_points
/* (In)
The number of points in the point array. The maximum size of the array is 100 points.
*/
ProColortype fill_color
/* (In)
The fill color.
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully drew the polygon.
PRO_TK_LINE_TOO_LONGYou specified more than 100 points.

Manual References:

  1. Pro/DEVELOP to Creo Toolkit Function Mapping: Equivalent Pro/DEVELOP Functions
  2. User Interface: Basic Graphics: Displaying Graphics

Sample Code References:

  1. pt_examples ( TestDrawTbl.c )
  2. pt_examples ( TestDrawTbl.c )
  3. pt_examples ( TestDrawTbl.c )
  4. pt_examples ( TestDrawTbl.c )
  5. pt_examples ( TestGraphics.c )