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

ccGetPathCenterLine

ccGetPathCenterLine(
o_path
)
=> o_centerLine / nil

Description

(Virtuoso Photonics Option) Returns the center line of the path as an open ccPolyCurve.

Arguments

o_path

ID of a ccPath object.

Value Returned

o_centerLine

ID of a ccPolyCurve object forming the center line.

nil

An error occurred.

Example

path = ccCreatePath(cv "waveguide"
                    list(list(ccCreateCurve("t" "1" -1:0)
                         list(0:0 0))
                    list(ccCreateCurve("sin(t)" "cos(t)" 0:3.14)
                         list(0:0 0)))
                    ?defaultWidth 0.01
)
=> cc@0x2596b240

ccGetPathCenterLine(path)
=> cc@0x15a2820b

Related Topics

Curvy Core Shape Object Attribute Query Functions


Return to top
 ⠀
X