get_edge_midpoint#

Modeler2D.get_edge_midpoint(partID)[source]#

Retrieve the midpoint coordinates of a given edge ID or edge name.

Parameters:
partIDint or str

Object ID or object name.

Returns:
list

List of midpoint coordinates. If the edge is not a segment with two vertices, an empty list is returned.