Point3d

class py3dm.Point3d(x: float, y: float, z: float)

Python bindings for the openNURBS ON_3dPoint class.

__add__(other: Point3d) Point3d
__eq__(other: object) bool
__mul__(value: float) Point3d
__ne__(other: object) bool
__truediv__(value: float) Point3d
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