find_closest_edges#

Modeler3D.find_closest_edges(start_obj, end_obj, port_direction=0)[source]#

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

Parameters:
start_objstr

Name of the starting object.

end_objstr

Name of the ending object.

port_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.