version 6.0
DR End polygon (area) Longint
| Parameter | Type | Description | |
| area | Longint | 4D Draw area | |
| Function result | Longint | Object ID |
Description
The command DR End polygon completes the polygon in area and returns the object's ID. The new polygon is created with the default line and fill attributes.
Example
The following example creates a complex polygon centered two units down and two units to the right of the upper left corner of the page.
DR START POLYGON (Area) DR SET ORIGIN (Area;2;2;0) For ($i;1;51) DR POLYGON LINE (Area;Sin($i);Cos($i);0) End for $ID := DR End polygon (Area)
See Also
DR POLYGON LINE, DR START POLYGON.