get_faceid_from_position#

Modeler2D.get_faceid_from_position(position, assignment=None, units=None)[source]#

Retrieve a face ID from a position.

Parameters:
positionlist

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

assignmentstr, optional

Name of the object. The default is None, in which case all objects are searched.

unitsstr, optional

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

Returns:
int

Face ID of the first object touching this position.

References

>>> oEditor.GetFaceByPosition