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

ccGetPathEdge

ccGetPathEdge(
o_path
S_side 
)
=> o_edge / nil

Description

(Virtuoso Photonics Option) Creates a new ccPolyCurve that is either the left or the right edge of the boundary of the specified path.

Arguments

o_path

ID of a ccPath object.

S_side

Side of the boundary.

Valid values: 'left and 'right

Value Returned

o_edge

ID of a ccPolyCurve object forming the specified edge of the boundary.

nil

The operation failed.

Example

path = ccCreatePath(cv "waveguide"
                     list(list(ccCreateCurve("t" "0" 0:10)
                          list(0:0 0) "sqrt(t)"))))
=> cc@0x262f8170
caar(ccGetPathEdge(path 'left)~>segments)~>??
(cc@0x28f45441 objType "ccCurve" xExpr "t" yExpr "(0.5*sqrt(t))" range (0.0 10.0))
caar(ccGetPathEdge(path 'right)~>segments)~>??
(cc@0xe9c99bef objType "ccCurve" xExpr "t" yExpr "((-0.5)*sqrt(t))" range (0.0 10.0))

Related Topics

Curvy Core Shape Object Attribute Query Functions


Return to top
 ⠀
X