Skip to main content
Interwork Corporation
IDR Solutions Product Support Portal
PDF開発用語集 モードの切替 ダーク/ライト/自動 モードの切替 ダーク/ライト/自動 モードの切替 ダーク/ライト/自動

Even-odd fill rule

概要

Even-odd fill rule(偶奇塗りつぶし規則)は、PDF でグラフィックスをレンダリングする際に、パスのどの領域を塗りつぶすかを決定するために使用される幾何学的アルゴリズムです。 ( Citation: N.A., (N.A.). (). Document management — Portable document format — Part 2: PDF 2.0 International Organization for Standardization Retrieved from https://www.iso.org/standard/75839.html ) で定義されているように、この規則は、ある点からどの方向にも光線を引き、その光線がパスセグメントと交差する回数を数えることで、その点がパスの内側にあるか外側にあるかを判定します。交差回数が奇数の場合、その点は内側にあり、偶数の場合は外側にあります。

定義

Even-odd fill rule は、 ( Citation: N.A., (N.A.). (). Document management — Portable document format — Part 2: PDF 2.0 International Organization for Standardization Retrieved from https://www.iso.org/standard/75839.html ) で PDF レンダリング用に規定されている2つの標準パス塗りつぶしアルゴリズムの1つです(もう1つは nonzero winding number rule)。この規則は、特に自己交差や複数のサブパスを持つ複雑なパスの「内側性」を判定するための、直感的な数学的手法を提供します。

全投稿を閲覧 gdoc_arrow_right_alt