# Martinez-Rueda 알고리즘, 그래프 면 계산으로 불량 다각형 문제 해결

Original title: Notes on the Martinez-Rueda Polygon Clipping Algorithm: Segments to Paths

> Hacker News story 50696662 · language: ko · submitted 2026-11-30
> Web version: https://zeli.app/ko/story/50696662
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 16 · by [the_origami_fox](<https://news.ycombinator.com/user?id=the_origami_fox>) · 💬 1
[original](<https://liorsinai.github.io/mathematics/2026/11/28/graph-computation.html>) · [HN discussion](<https://news.ycombinator.com/item?id=50696662>)

## Summary

Martinez-Rueda 알고리즘은 다각형 간 불리언 연산을 세그먼트 단위로 계산하지만, 입력과 출력은 보통 점의 순서 목록인 경로다. 기존의 세그먼트 체이닝 방식은 한 꼭짓점에 정확히 두 세그먼트만 만난다고 가정해, 자기 교차 다각형에서 '열린 체인이 남아 있다'는 오류를 냈다. 저자는 PolygonAlgorithms.jl에서 그래프 면 계산으로 이를 대체해, 각 노드 주변 half-edge를 시계 방향으로 정렬하고 연결을 따라가 선형 시간에 일관된 방향의 면을 얻는다.

## Key quote

> 가장 중요한 통찰은 방향 그래프에는 채움 정보가 없다는 것이다. 그래프만으로는 어떤 면이 구멍인지 알 수 없다.

---

## Cite

- Page: https://zeli.app/ko/story/50696662
- Date: 2026-11-30
- Source: liorsinai.github.io (https://liorsinai.github.io/mathematics/2026/11/28/graph-computation.html)
- Hacker News: https://news.ycombinator.com/item?id=50696662

## Other languages

- en: https://zeli.app/story/50696662 · markdown: https://zeli.app/story/50696662.md
- zh: https://zeli.app/zh/story/50696662 · markdown: https://zeli.app/zh/story/50696662.md
- ja: https://zeli.app/ja/story/50696662 · markdown: https://zeli.app/ja/story/50696662.md
- de: https://zeli.app/de/story/50696662 · markdown: https://zeli.app/de/story/50696662.md
- es: https://zeli.app/es/story/50696662 · markdown: https://zeli.app/es/story/50696662.md
- ru: https://zeli.app/ru/story/50696662 · markdown: https://zeli.app/ru/story/50696662.md
