ccGenOffsetFig
ccGenOffsetFig(o_path g_lpp?sidet_side[ ?innern_value| ?outern_value|?innern_value| ?outern_value] ) =>o_shape/ nil
Description
(Virtuoso Photonics Option) Creates a new ccShape in the same cellview as the specified path on the specified layer-purpose pair. This shape is constructed by connecting two offsets of the edge of the specified path by using the inner and outer values, respectively, with two facets. The origins of these facets are the same as the origins of the facets of the specified path.
Arguments
Value Returned
Example
Creates a ccPath with a varying discontinuous width.
path = ccCreatePath(
deGetCellView()
"y0"
list(
list(ccCreateCurve("t" "0" -1:0) list(0:0 0) 0.2)
list(ccCreateCurve("t" "0" 0:2) list(0:0 0) "0.2+t/10")
list(ccCreateCurve("t" "0" 0:1) list(2:0 0) 0.3)
)
)
Creates a shape from the left edge of the path offset by 0.1 to the left and the left edge of the path connected with facets:
ccGenFigs(ccGenOffsetFig(path "y1" ?side "left" ?outer 0.1))
Creates a shape from the right edge of the path offset by 0.2 to the left and the right edge of the path offset by 0.3 to the right connected with facets:
ccGenFigs(ccGenOffsetFig(path "y2" ?side "right" ?inner -0.2 ?outer 0.3))
Related Topics
Return to top