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

ccLayerOffset

ccLayerOffset(
g_shapes
n_value
[ ?cellView d_cellView ]
[ ?lpp g_lpp ]
[ ?facetsToCurves { t | nil } ]
) 
=> l_surfaces

Description

(Virtuoso Photonics Option) Returns a list of surfaces derived by merging the areas of the input shapes and offsetting them by the specified offset value. Resulting surfaces can optionally be created in the specified cellview and with the specified layer-purpose pair different from the default layer-purpose pair of the first input shape.

Arguments

g_shapes

o_shape | (o_shape...)

An input shape or a list of input shapes.

n_value

Offset value.

?cellView d_cellView

Database ID of a cellview.

?lpp g_lpp

tx_layer | (tx_layer tx_purpose)

Layer or a layer-purpose pair.

?facetsToCurves t | nil

Specifies whether all input facets are converted to curves before the actual operation.

The default is nil, which means that the input facets are not converted to curves.

Value Returned

l_surfaces

List of resulting surfaces.

Example

c=ccCreateCurve("3*cos(t)" "3*sin(t)" 0:8*atan(1))
> cc@0x36adc1b
s1=ccCreateSurface(cvId "y0" ccCreatePolyCurve(list(c list(0:2 0)) ?close t))
> cc@0x2d609190
s2=ccCreateSurface(cvId "y0" ccCreatePolyCurve(list(c list(-sqrt(3):-1 0)) ?close t))
> cc@0x20480bc0
s3=ccCreateSurface(cvId "y0" ccCreatePolyCurve(list(c list(sqrt(3):-1 0)) ?close t))
> cc@0x29143150
s=ccLayerOffset(list(s1 s2 s3) 0.5)
> (cc@0x2b01d870)

Related Topics

Curvy Core Mathematical Object Functions


Return to top
 ⠀
X