get_bodynames_from_position#

Modeler2D.get_bodynames_from_position(position, units=None, include_non_model=True)[source]#

Retrieve the names of the objects that are in contact with a given point.

Parameters:
positionlist

List of [x, y, z] coordinates for the point.

unitsstr, optional

Units, such as "m". The default is None, in which case the model units are used.

include_non_modelbool, optional

Either if include or not non model objects.

Returns:
list

List of object names.

References

>>> oEditor.GetBodyNamesByPosition