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
Value Returned
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