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

geIsPolygonReentrant

geIsPolygonReentrant( 
d_cellview 
l_points 
)
=> t / nil

Description

Determines whether a polygon is self-intersecting.

In a self-intersecting polygon, one part of the polygon overlaps another part of the polygon. Self-touching is not considered self-intersecting.

Arguments

d_cellview

Database ID of the cellview containing the polygon to check.

l_points

List of polygon points.

Value Returned

t

The polygon is self-intersecting.

nil

The polygon is not self-intersecting.

Examples

The following example returns nil. The polygon is self-touching, but not self-intersecting.

geIsPolygonReentrant( geGetEditCellView( ) list( 0:0 10:0 10:5 5:5 5:0 0:5 ) )

The following example returns t. The polygon is self-intersecting.

geIsPolygonReentrant( geGetEditCellView( ) list( 0:0 10:0
    10:5 5:5 5:-5 0:-5 ) )

Related Topics

Utility Functions


Return to top
 ⠀
X