跳到主要内容

IDP.Math.KGeomLib.planeIntersectPlane() method

两平面求交。

Get the intersection of two planes.

Signature:

planeIntersectPlane(plane1: KPlane, plane2: KPlane, tolerance?: number): KLine3d | null;

Links: planeIntersectPlane(plane1: KPlane, plane2: KPlane, tolerance?: number): KLine3d | null;

Parameters

Parameter

Type

Description

plane1

KPlane

第一个平面。

The first plane.

plane2

KPlane

第二个平面。

The second plane.

tolerance

number

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

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

Returns:

KLine3d | null

返回一条直线,也有可能返回null(当两个平面不相交时)。

A line where the planes intersect if successful. Returns null if the planes do not intersect.