Product Documentation
Virtuoso Parameterized Cell SKILL Reference
Product Version IC23.1, August 2023

pcGrowPoints

pcGrowPoints(
l_pointList
xf_margin
) 
=> l_incrementedPointList / nil

Description

Increase or decrease the size of a manhattan polygon by the specified margin. The system adds xf_margin to each coordinate in the list and returns a list of the coordinates of the resulting polygon.

Arguments

l_pointList

List of coordinates defining the original manhattan polygon, in either of the following formats:

'( ( x1 y1 ) ( x2 y2 ) ... ( xn yn ) )
( x1:y1  x2:y2 ... xn:xy )

xf_margin

Positive or negative integer or floating-point number used to increment or decrement the points of the original manhattan polygon.

Valid Values: integer or floating-point number

Value Returned

l_incrementedPointList

  

List of coordinates defining the incremented manhattan polygon, in either of the following formats:

'( ( x1 y1 ) ( x2 y2 ) ... ( xn yn ) )
( x1:y1  x2:y2 ... xn:xy )

nil

The function did not complete successfully.

Examples

origPoints = '( 4.0:1.0 5.0:1.0 5.0:2.5 6.5:2.5 6.5:-0.5 4.0:-0.5 )
pcGrowPoints( origPoints 10 ) 
    =>((-6.0 11.0) 
        (-5.0 11.0) 
        (-5.0 12.5) 
        (16.5 12.5) 
        (16.5 -10.5) 
        (-6.0 -10.5) 
    )

Increments each point of the original manhattan polygon by 10 and returns a list of the points of the incremented polygon.


Return to top
 ⠀
X