跳到主要内容

KSurface.getClosestPoint() method

获得面上距离传入点最近的一点,以指定容差。

Get the closest point on surface for the input point with specified tolerance.

Signature:

getClosestPoint(point: KPoint3d, tolerance?: number): KPoint3d;

Links: getClosestPoint(point: KPoint3d, tolerance?: number): KPoint3d;

Parameters

Parameter

Type

Description

point

KPoint3d

输入点。

The input point.

tolerance

number

(Optional) 指定容差,默认值为1e-6。

The specified tolerance.The default value is 1e-6.

Returns:

KPoint3d

最近点。

The closest point.