跳到主要内容

IDP.Math.KGeomLib.curveIntersectSurface() method

曲线与曲面求交。

Get the intersection of a curve and a surface.

Signature:

curveIntersectSurface(curve: KCurve3d, surface: KSurface, tolerance?: number): KCurveSurfaceIntersectRet[];

Links: curveIntersectSurface(curve: KCurve3d, surface: KSurface, tolerance?: number): KCurveSurfaceIntersectRet[];

Parameters

Parameter

Type

Description

curve

KCurve3d

求交的曲线。

The curve to intersect.

surface

KSurface

求交的曲面。

The surface to intersect.

tolerance

number

(Optional) 特定容差,默认值是1e-6。

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

Returns:

KCurveSurfaceIntersectRet[]

返回是一个KCurveSurfaceIntersectRet数组,包含交点信息或者交线信息或重合信息。

The array of KCurveSurfaceIntersectRet include intersect type, intersection point or curve.