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

leSlice

leSlice(
l_points
[ ?isHorizontal g_isHorizontal ]
) 
=> l_bBox /nil

Description

Performs the vertical slicing of a shape.

Arguments

l_points

List of points of any shape.

?isHorizontal g_isHorizontal

Performs the vertical or horizontal slicing of a shape. If this argument is not specified or is specified as nil, the function performs vertical slicing. If this argument is specified as t, the function performs horizontal slicing.

Value Returned

l_bBox

List of boxes formed from the shape after vertical slicing.

nil

The shapes was not sliced.

Example

leSlice(list('(0 0) '(20 0) '(20 20) '(10 20) '(10 10) '(0 10)))

The leSlice function returns the following values:

(((0 0) (10 10)) ((10 0) (20 20)))

Return to top
 ⠀
X