ccCreatePolyCurve
ccCreatePolyCurve(l_segments[ ?close { t | nil } ] [ ?smoothnessS_smoothness] ) =>o_polyCurve/ nil
Description
(Virtuoso Photonics Option) Creates a ccPolyCurve object from a list of specified polyCurve segments.
Arguments
Value Returned
Examples
ccCreatePolyCurve(list(list(ccCreateCurve("cos(t)" "sin(t)" - 3.14159265:3.14159265) list(0:0 0)))
?close t
)
=> cc@0x269c83f0
ccCreatePolyCurve(list(list(ccCreateCurve("t" "1" 0:1) list((0:0) 0))
list(ccCreateCurve("t" "1" 2:3) list((0:0) 0)))
?smoothness 'G0
)
=> *Error* (CC-200014): Cannot create PolyCurve: required smoothness is G0, but smoothness between segments 0 and 1 is discontinuous: point (1, 1) != (2, 1).
Related Topics
Curvy Core Mathematical Object Creation Functions
ccGetFacetCorners
ccGetFacetCorners(o_shape g_facet) =>l_corners/ nil
Description
Retrieves the corner points of the facet snapped to the manufacturing grid of the shape containing the facet.
Arguments
Examples
c = ccCreateCurve("20*cos(t)" "10*sin(t)" -pi/4:pi/3)
=> cc@0xb3f1648e
path = ccCreatePath(cv "waveguide" list(c) ?defaultWidth 1)
=> cc@0x343b3b00
ccGetFacetCorners(path path->beginFacet)
=> ((13.95 -6.6) (14.35 -7.5))
ccGetFacetCorners(path "begin")
=> ((13.95 -6.6) (14.35 -7.5))
)
Return to top