Product Documentation
Virtuoso Studio Design Environment SKILL Reference
Product Version IC23.1, November 2023

geClosePolygon

geClosePolygon( 
d_cellview 
l_points 
t_snapMode 
)
=> l_pointsPolygon / nil 

Description

Returns a list of points that describe a closed polygon if a polygon could be made from the specified points. Otherwise, returns nil.

Arguments

d_cellview

Database ID of the cellview to contain the polygon.

l_points

List of points used to create the polygon.

t_snapMode

Specifies how the cursor snaps when a polygon is created. For example, some possible snap modes are orthogonal, diagonal, or L90YFirst.

Value Returned

l_pointsPolygon

Returns a list of points that describe a resulting closed polygon.

nil

Returns nil when a closed polygon could not be created.

Examples

geClosePolygon(geGetEditCellView() list(0:5 1:6 1:6) "orthogonal")
=> ((1.0 6.0)
      (1.0 5.0)
      (0.0 5.0)
    )

Related Topics

Utility Functions

Return to top
 ⠀
X