ccTromboneConnector
ccTromboneConnector(
l_legs
n_rmin
n_gamma
)
=> l_connector / nil
Description
(Virtuoso Photonics Option) Creates a trombone-shaped connector that consists of five legs of given lengths, smoothly connected by waypoint connectors with the given gamma ratio and the minimum curvature radius.
Arguments
|
l_legs
|
(n_l1 n_l2 n_l3 n_l4 n_l5)
List of five length values for the legs of the trombone.
|
|
n_rmin
|
Minimally allowed curvature radius.
|
|
n_gamma
|
A numeric value between 0 and 1, indicating a ratio of the circular bending angle to the overall bending angle.
-
When the value is
1, each turn of trombone consists of a single circular arc. -
When the value is
0, each turn of trombone consists of two clothoids.
|
Value Returned
|
l_connector
|
list(nil 'connector o_polyCurve 'message t_message)
The resulting connector (ccPolyCurve ID) and a message string.
where,
-
o_polyCurve is the resulting ccPolyCurve connector. If
o_polyCurve = nil, the connector cannot be implemented. -
t_message is a string holding the debug printouts and error messages.
|
|
nil
|
An error occurred, the connector cannot be implemented.
|
Example
ccTromboneConnector('(50 50 50 50 50) 12 0)
=> (nil connector cc@0xc7e73ea2 message "Length=221.267246 MinRadius=12.000000")
Related Topics
Curvy Core Connector Functions
Return to top