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

ccGenFigs

ccGenFigs(
o_shape
[ ?attach { t | nil } ]
[ ?snapToMFG { t | nil } ] 
[ ?accuracy { n_accuracy | nil } ]
)
=> l_figs / nil

Description

(Virtuoso Photonics Option) Generates geometry for the specified ccShape and optionally attaches it to the originating ccShape.

This attachment is accessible through the ccShape~>"figs" accessor.

Arguments

o_shape

ID of a ccShape object.

?attach { t | nil }

Specifies whether to attach the resulting figures to the originating ccShape.

The default value t specifies that the resulting figures are attached to the originating ccShape.

?snapToMFG { t | nil }

Specifies whether to snap the output figures to the manufacturing grid.

The default value t specifies that the output figures are snapped to the manufacturing grid.

?accuracy { n_accuracy | nil }

Discretization accuracy for retrieving the accuracy from the manufacturing grid.

The default value nil specifies that using the step of the manufacturing grid as the discretization accuracy value.

Value Returned

l_figs

List of database figure IDs.

nil

The operation failed.

Example

line = ccCreateLine(cv "waveguide"
                    ccCreatePolyCurve(list(ccCreateCurve("t" "0" -1:1)
                    ccCreateCurve("cos(t)" "sin(t)" 0:3.14159265))
                    ?close t
)
=> cc@0x269c83f0

figs = ccGenFigs(line)
=> (db:0x2166d79a)
(car figs)~>objType
=> "line"
(car figs)~>nPoints
=> 10

Related Topics

Curvy Core Shape Geometry Functions


Return to top
 ⠀
X