PointView

class py3dm.PointView

Tiny wrapper to read-only access Point (ON_Point) objects.

__eq__(other: object) bool
__ne__(other: object) bool
property obj_uuid: uuid.UUID
property x: float
property y: float
property z: float
distance_to(point: Point3d) float

Returns the distance between the two points.

is_coincident(point: Point3d) bool

In openNURBS points within ON_ZERO_TOLERANCE are generally considered to be the same.

Returns:

is_coindentTrue if for each coordinate pair |a - b| <= ON_ZERO_TOLERANCE or |a - b| <= (abs(a) + abs(b)) * ON_RELATIVE_TOLERANCE.

Return type:

bool

Notes

ON_ZERO_TOLERANCE is set to 2.3283064365386962890625e-10

ON_RELATIVE_TOLERANCE is set to 2.27373675443232059478759765625e-13

is_valid(text_log: TextLog | None = None) bool

Returns False if any coordinate is infinite, a nan, or ON_UNSET_VALUE.