get_bodynames_from_position

Primitives3D.get_bodynames_from_position(position, units=None)

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.

Returns
list

List of object names.

References

>>> oEditor.GetBodyNamesByPosition