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

ccCreateFacet

ccCreateFacet(
l_origin
[ ?angle n_angle ]
[ ?radius n_radius ]
[ ?offsets l_offsets ]
[ ?name t_name ]
)
=> o_facet / nil

Description

(Virtuoso Photonics Option) Creates a ccFacet object. A facet is a special type of straight segment that is specified by the origin point, offsets, curvature, and rotation angle. It can be used to implement a smooth stitching between two ccShape objects.

Arguments

l_origin

list(n_x n_y)  

Origin points of the facet specified by n_x and n_y on the X-axis and Y-axis, respectively.

?angle n_angle

Angle between the facet and the positive X-axis.

The default is 0.

?radius n_radius

Curvature radius of the origin point.

The default is 0.

?offsets l_offsets

  

list(n_lhs n_rhs)  

Offsets from the origin point to the endpoints of the facet.

The default is (0:0).

?name t_name

Name of the facet.

The default is "".

Value Returned

o_facet

ID of the resulting ccFacet.

nil

An error occurred.

Example

ccCreateFacet(-2:0 ?offsets 2:2 ?angle 90)
> cc@0x269c83e0

Related Topics

Curvy Core Mathematical Object Creation Functions


Return to top
 ⠀
X