find_closest_edges#

Modeler2D.find_closest_edges(start_object, end_object, direction=0)#

Retrieve the two closest edges that are not perpendicular for two objects.

Parameters:
start_objectstr

Name of the starting object.

end_objectstr

Name of the ending object.

directionstr, 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 is 0.

Returns:
list

List with two edges if present.