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

ccTransformPolyCurve

ccTransformPolyCurve(
o_polyCurve
l_transform
) 
=> o_polycurve2 | nil

Description

(Virtuoso Photonics Option) Returns a transformed copy of the given ccPolyCurve.

Arguments

o_polycurve

ID of a ccPolyCurve object.

l_transform

((n_offsetX n_offsetY) n_angle )

A transformation object specified by an offset specified by n_offsetX and n_offsetY and a rotation angle n_angle around (0,0).

Value Returned

o_polycurve2

ID of the transformed polyCurve object.

nil

The operation failed.

Example

pc = ccCreatePolyCurve(ccCreateCurve("t" "0" 0:1)) 
=> cc@0xa1d42cee
tpc = ccTransformPolyCurve(pc list(0:0 90))
=> cc@0xe9835dc
pc~>segments
=> ((cc@0x4fe6429d ((0.0 0.0) 0.0)))
tpc~>segments

=> ((cc@0x4fe6429d ((0.0 0.0) 90.0)))

Related Topics

Curvy Core Transformations Functions


Return to top
 ⠀
X