跳到主要内容

IDP.Math.KGeomLib.createGeomFace2d() method

通过内轮廓和外轮廓创建面。 注意:需要保证内轮廓与外轮廓方向相反。

Create a face2d by contour and holes. NOTE: the caller need to make sure the contour and holes have opposite ccw direction

Signature:

createGeomFace2d(contour: KGeomLoop2d, holes?: KGeomLoop2d[]): KGeomFace2d;

Links: createGeomFace2d(contour: KGeomLoop2d, holes?: KGeomLoop2d[]): KGeomFace2d;

Parameters

Parameter

Type

Description

contour

KGeomLoop2d

面的外轮廓。

The contour (outer loop) of the face

holes

KGeomLoop2d[]

(Optional) 面的内轮廓。

The holes (inner loops) of the face.

Returns:

KGeomFace2d

返回二维面对象。

Return a face2d object.