IDP.Math.KGeomFace2d interface
二维面的接口类
The interface of a geometry face 2d.
Signature:
export interface KGeomFace2d
Methods
Method | Description |
---|---|
获得面积。 Get area | |
判断输入点是否位于面上。 Whether the input point is in the face2d. | |
获得外轮廓。 Get contour loop. | |
获得内轮廓。 Get hole loops | |
检查外轮廓是否逆时针。 Check whether face2d's contour is counter-clockwise. | |
检查该面是否有效,其中每一个内外轮廓均需都有效, 外轮廓包围所有内轮廓,所有内轮廓不相交。 外轮廓与内轮廓反向。 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. |