test_self_intersection_xldtest_self_intersection_xldTestSelfIntersectionXldTestSelfIntersectionXldtest_self_intersection_xld (算子)

名称

test_self_intersection_xldtest_self_intersection_xldTestSelfIntersectionXldTestSelfIntersectionXldtest_self_intersection_xld — 测试 XLD 轮廓或多边形的自相交。

签名

test_self_intersection_xld(XLD : : CloseXLD : DoesIntersect)

Herror test_self_intersection_xld(const Hobject XLD, const char* CloseXLD, Hlong* DoesIntersect)

Herror T_test_self_intersection_xld(const Hobject XLD, const Htuple CloseXLD, Htuple* DoesIntersect)

void TestSelfIntersectionXld(const HObject& XLD, const HTuple& CloseXLD, HTuple* DoesIntersect)

HTuple HXLD::TestSelfIntersectionXld(const HString& CloseXLD) const

HTuple HXLD::TestSelfIntersectionXld(const char* CloseXLD) const

HTuple HXLD::TestSelfIntersectionXld(const wchar_t* CloseXLD) const   ( Windows only)

static void HOperatorSet.TestSelfIntersectionXld(HObject XLD, HTuple closeXLD, out HTuple doesIntersect)

HTuple HXLD.TestSelfIntersectionXld(string closeXLD)

def test_self_intersection_xld(xld: HObject, close_xld: str) -> Sequence[int]

def test_self_intersection_xld_s(xld: HObject, close_xld: str) -> int

描述

test_self_intersection_xldtest_self_intersection_xldTestSelfIntersectionXldTestSelfIntersectionXldTestSelfIntersectionXldtest_self_intersection_xld tests whether the input contours or polygons in XLDXLDXLDXLDXLDxld intersect or touch themselves. The output array DoesIntersectDoesIntersectDoesIntersectDoesIntersectdoesIntersectdoes_intersect contains a 1 if the corresponding input contour or polygon intersects or touches itself and 0 otherwise.

If the input parameter CloseXLDCloseXLDCloseXLDCloseXLDcloseXLDclose_xld is set to 'true'"true""true""true""true""true", open contours or polygons are closed before the check is performed by simply connecting the first and the last contour or polygon point with a line segment.

注意

A contour or polygon touches itself if a contour or polygon point lies exactly on a contour or polygon segment. However, whether a point lies exactly on a contour or polygon segment or not can practically not be decided because of numerical reasons.

执行信息

参数

XLDXLDXLDXLDXLDxld (输入对象)  xld(-array) objectHXLDHObjectHXLDHobject

Input contours or polygons.

CloseXLDCloseXLDCloseXLDCloseXLDcloseXLDclose_xld (输入控制)  string HTuplestrHTupleHtuple (string) (string) (HString) (char*)

Should the input contours or polygons be closed first?

默认值: 'true' "true" "true" "true" "true" "true"

值列表: 'false'"false""false""false""false""false", 'true'"true""true""true""true""true"

DoesIntersectDoesIntersectDoesIntersectDoesIntersectdoesIntersectdoes_intersect (输出控制)  number(-array) HTupleSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)

1 for contours or polygons with self intersection and 0 otherwise.

模块

基础