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

ccReversePolyCurve

ccReversePolyCurve(
o_polyCurve
)
=> o_polyCurve2 / nil

Description

(Virtuoso Photonics Option) Returns a reversed copy of the given polyCurve, which is the polyCurve with the same geometry but in the opposite direction, which is from the end of the original polyCurve to its beginning.
This function can be used to turn positive-closed polyCurves into negative polyCurves, and negative-closed polyCurves into positive polyCurves.

Arguments

o_polyCurve

ID of a ccPolyCurve object.

Value Returned

o_polyCurve2

ID of the reversed ccPolyCurve object.

nil

An error occurred.

Example

rpc = ccReversePolyCurve(ccCreatePolyCurve(ccCreateCurve("t" "0" 0:1)))
=> cc@0x269c83f0
caar(rpc~>segments)~>??
=> (cc@0x7a0766dd objType "ccCurve" xExpr "t" yExpr "0" range (1.0 0.0))

Related Topics

Curvy Core Transformations Functions


Return to top
 ⠀
X