PointTable¶
- class py3dm.PointTable¶
Python wrapper providing access to
ON_Pointobjects stored in anONX_Model.This class offers a convenient interface for adding, retrieving, counting, and iterating over points objects.
PointTabledoes not own the underlying data; it operates on the associatedONX_Modelinstance.- __iter__() collections.abc.Iterator[PointGeometry]¶
- add(x: float, y: float, z: float, obj_attr: None | ObjectAttributes = None) uuid.UUID¶
- add(point: PointGeometry, obj_attr: None | ObjectAttributes = None) uuid.UUID
- add(point: Point3d, obj_attr: None | ObjectAttributes = None) uuid.UUID
Returns the
UUIDof the point in case of successful addition, or an emptyUUIDotherwise. If the point is in the model, then theUUIDis unique for all components in the model and is locked.
- get_by_uuid(object_uuid: uuid.UUID) PointGeometry | None¶
Returns the object with the given
object_uuidorNoneifobject_uuidis not found.