get_edge_midpoint#

Modeler3D.get_edge_midpoint(assignment)#

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

Parameters:
assignmentint 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.