Ets_Shape_Polygon_Create()
Note: Requires OPNET Development Kit
Abstract
Creates a new polygon shape.
Syntax
Ets_Shape_Polygon_Create (line_width, line_style, line_color, smooth, section_lptr)
| Argument | Type | Description |
|---|---|---|
line_width |
int |
The width of the lines, in pixels. |
line_style |
EtsT_Shape_Line_Style |
The style of the lines, either EtsC_Shape_Line_Solid or EtsC_Shape_Line_None (invisible). |
line_color |
EtsT_Color |
The color of the lines. See Shape Colors for details. |
smooth |
EtsT_Boolean |
Specifies whether or not the line segment joints should be smoothed. |
section_lptr |
PrgT_List * |
Pointer to a list of line segments that make up the polygon. |
Return Type
EtsT_Shape_Handle
A handle to the new shape.
Header
ets_api_shapeset.h
Details
A polygon is a collection of unconnected line segments, as defined by the section list. Each element of that list defines a single segment using the EtsT_Shape_Line_Section data type, as described in Shape Data Types.