INPOLY: A fast points-in-polygon test

A fast test to determine point inclusion for general polygonal geometries.

https://github.com/dengwirda/inpoly

이 제출물을 팔로우합니다

INPOLY computes the intersection between a set of points and a general polygonal region in the plane, returning the 'inside', 'outside' and 'boundary' status for each vertex. General non-convex and multiply-connected polygonal regions can be handled. INPOLY is intended as a fast replacement for MATLAB's default INPOLYGON routine.

See POLYDEMO to get started with a set of example problems:

polydemo(1); % a simple example
polydemo(2); % multiply-connected domains
polydemo(3); % speed comparison

INPOLY implements a sorted 'crossing-number' test designed to achieve fast performance for complex inputs. Given a configuration with N points and M polygon edges, INPOLY runs in approximately O((N+M)*LOG(N)) time on average, improving on the O(N*M) scaling of naive implementations.

인용 양식

Darren Engwirda (2026). INPOLY: A fast points-in-polygon test (https://github.com/dengwirda/inpoly), GitHub. 검색 날짜: .

카테고리

Help CenterMATLAB Answers에서 Polygonal Shapes에 대해 자세히 알아보기

MATLAB 릴리스 호환 정보

  • 모든 릴리스와 호환

플랫폼 호환성

  • Windows
  • macOS
  • Linux

GitHub 디폴트 브랜치를 사용하는 버전은 다운로드할 수 없음

버전 퍼블리시됨 릴리스 정보 Action
3.0.0.0

Linked to GitHub

2.0.0.0

Major updates, Octave support, bug fixes.

1.0.0.0

Floating point error reduced

이 GitHub 애드온의 문제를 보거나 보고하려면 GitHub 리포지토리로 가십시오.
이 GitHub 애드온의 문제를 보거나 보고하려면 GitHub 리포지토리로 가십시오.