edge_by_point#

Rect3dLayout.edge_by_point(point: list[float | int])#

Return the index of the closest edge to the specified point.

Parameters:
pointlist of float or int

Coordinates of the point as [x, y].

Returns:
int

Index of the closest edge in self.edges.

Examples

>>> from ansys.aedt.core.modeler.pcb.object_3d_layout import Geometries3DLayout
>>> obj = Geometries3DLayout()
>>> obj.edge_by_point(point=[0, 0, 0])