Product Documentation
Virtuoso Layout Suite SKILL Reference
Product Version IC23.1, November 2023

leModifyCorner

leModifyCorner( 
d_figId
l_selArray
g_chamfer
x_distance
[ x_sides ]
) 
=> t / nil

Description

Rounds or cuts off selected corners of the rectangle or polygon specified by d_figID.

Arguments

d_figId

The database ID of the polygon or rectangle to modify.

l_selArray

A list of Boolean values indicating whether each vertex in the shape can be modified. The Boolean values must match the number and order of vertices in the shape. (Use d_shapeId~>Points to obtain the vertices of the shape.)

g_chamfer

A Boolean value specifying whether you want to create a chamfer or a rounded corner. Valid Value: t (chamfer) or nil (round) Valid Values: any positive floating value up to half the length of the longest adjacent line segment

x_distance

The distance from the vertex to begin modifying the corner. The distance used is half the length of the shortest line segment adjacent to the corner or the value supplied for x_distance, whichever is shorter.

x_sides

The number of sides to use when converting a corner to a curve. Default Value: 20 Valid Values: any positive integer

Value Returned

t

The corner is modified.

nil

The corner is not modified.

Example

leModifyCorner( figId list(t nil nil nil nil nil) nil 1.0) 

where

figId~>points are:

((10.15 5.77)
(13.49 5.77)
(13.49 1.39)
(16.92 1.39)
(16.92 -0.48)
(10.15 -0.48)
)

In the example, the second argument is a list of six booleans. The vertex for which you have specified t in the second argument will be converted to chamfers.

Interactive Function

Enter this function with only the window ID argument; the system prompts you to select the corners to modify. If you do not specify w_windowId, the current window is used.

leHiModifyCorner( [ w_windowId ] ) => t / nil


Return to top
 ⠀
X