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

ccGetFacetOrigin

ccGetFacetOrigin(
o_shapeg_facet
)
=> l_origin / nil

Description

Retrieves the origin point of the facet snapped to the manufacturing grid of the shape containing the facet.

Arguments

o_shape

ID of a ccShape object.

g_facet

o_facet | t_facetName | l_facetOrigin

where:

  • o_facet is ID of a ccFacet object.
  • t_facetName is the name of the facet.
  • l_facetOrigin is the origin point of the facet represented by (n_x n_y).

Value Returned

l_origin

The snapped origin point of the facet.

nil

An error occurred.

Examples

curve = ccCreateCurve("20*cos(t)" "10*sin(t)" -pi/4:pi/3)
> cc@0xb3f1648e
path = ccCreatePath(cv "waveguide" list(curve) ?defaultWidth 1)
> cc@0x343b3b00
ccGetFacetOrigin(path path->beginFacet)
> (14.15 -7.05)
ccGetFacetOrigin(path "begin")
> (14.15 -7.05)
ccGetFacetOrigin(path '(14.14214 -7.071068))
> (14.15 -7.05)

Return to top
 ⠀
X