跳到主要内容

IDP.Math.KGeomFace2d interface

二维面的接口类

The interface of a geometry face 2d.

Signature:

export interface KGeomFace2d 

Methods

Method

Description

area()

获得面积。

Get area

containsPoint(point, bIncludeOn)

判断输入点是否位于面上。

Whether the input point is in the face2d.

getContour()

获得外轮廓。

Get contour loop.

getHoles()

获得内轮廓。

Get hole loops

isPositive()

检查外轮廓是否逆时针。

Check whether face2d's contour is counter-clockwise.

isValid()

检查该面是否有效,其中每一个内外轮廓均需都有效, 外轮廓包围所有内轮廓,所有内轮廓不相交。 外轮廓与内轮廓反向。

Whether the face2d is valid, including: - Each contour and hole is valid - Contour contains all holes and holes are not overlapped. - Contour and holes have opposite direction.