find_closest_edges#
- Modeler2D.find_closest_edges(start_object, end_object, direction=0)[source]#
Retrieve the two closest edges that are not perpendicular for two objects.
- Parameters:
- start_object
str
Name of the starting object.
- end_object
str
Name of the ending object.
- direction
str
,optional
Direction of the port to which to give edges precedence when more than two couples are at the same distance. For example, for a coax or microstrip, precedence is given to the edges that are on the given axis direction, such as
"XNeg"
. Options are"XNeg"
,"XPos"
,"YNeg"
,"YPos`"
,"ZNeg"
, and"ZPos"
. The default is0
.
- start_object
- Returns:
list
List with two edges if present.