ccCreatePie
ccCreatePie(d_cellviewId l_lpp[ ?anglen_angle] [ ?startRadiusn_startRadius] [ ?lengthn_length] [ ?endWidthn_endWidth] [ ?endLengthn_endLength] [ ?offsetl_offset] [ ?rotationn_rotation] [ ?genFigs { t | nil } ] ) =>o_surface/ nil
Description
(Virtuoso Photonics Option) Creates a pie slice figure bounded by outer circle and optionally by an inner circle, two radiuses at given angles, and optionally by an outer capping of given length. The function generates different figures based on the input.
When the startRadius is nil, the pie shape that is generated is a true pie shape, with the length being the radius.
When the startRadius is larger than 0.0, a donut shape is generated, with the inner part radius determined by the value, while the length is used to represent the thickness of the donut.
When endWidth is specified, a termination is generated, caping the coupler by a shape that is conceptually the union of a rectangle and the last pie shape, with the inner-curved radius as specified. In this case, endWidth must be smaller than the arc defined by sum of radius and length and larger than the arc from radius.
If rotation or offset is specified, the resulting the object undergoes corresponding transformation.
Arguments
Value Returned
Examples
ccCreatePie(cv "waveguide" ?angle 45 ?startRadius 2 ?length 5 ?genFigs nil)
=> cc@0x269c83e0
ccCreatePie(cv "waveguide" ?length 5 ?endLength 4)
=> *** ERROR *** end length is too small. It must be at least 5 to generate the cap.
Related Topics
Curvy Core Shape Creation Functions
Return to top