计算几何 W44 Arrangements and Duality, Zone Theorem
Duality
there is a 1-to-1 mapping between points and non-vertical lines
map every point p to a line: ,
every line to a point .
claim: if is on(below/above) is on(below/above) .
Proof:
observation: the duality transform has the following properties:
- it is incidence preserving: .
- order preserving: below below .
Dual point for line segment
如何找线段所在直线的对偶点?
找到线段的两个端点 ,得到两个点的对偶线 , 这两条对偶线的交点就是原线段的对偶点。
有趣的性质:一条直线上所有的点的对偶线,都必经过这条直线的对偶点。
对于一条线段上的所有点,可以把它们表示成两端点对应的两条对偶线的“夹角”(夹住的所有对偶线的集合)。
如果两条线段有交点,说明两条线对应的两个夹角能“相互看见”。
Projective Plane
given any 2 points, , we can draw a line through them.
given any 2 line, , we can find a point of intersection . (if parallel, we make it intersect on infinity point )
在投影平面 projective plane 上,只有一个 point at infinity,所以一条直线只和无穷远处的点有一个交点。
Arrangements of lines
lines in the plane.
is the subdivision of induced by . is the arrangement induced by . has complexity .
lines, at most intersect points, at most faces.
vertex: intersection of hyperplanes 0-dimensional
edge: intersection of d-1 hyperplanes 1-dimensional
…
j-face: intersection of d-j hyperplanes j-dimensional
…
d-1-face or facet: on 1 hyperplane d-1-dimensional
cell: on 0 hyperplane d-dimensional
: number of cells in an arrangement of n hyperplanes in d-dimensional
Claim:
Zone Theorem
the complexity of the zone of a line in an arrangement of lines in is .
2D Zone Theorem: complexity of cells crossed by a line is .
证明:对于一条直线,会和一些线有交点,经过了一些面,这些面的左交点对应的线 left bound edge 和右交点对应的线 right bound edge 数量之和最多有 2n 条。
complexity of cells crossed by a hyperplane is .
How to compute DCEL in bounding box which contains all intersect point?
An incremental algorithm
compute the bounding box and initialize an empty DCEL for .
for i=1 to n do
find the face incident to the left boundary of containing .
while is not the unbounded face do
- split the current face into
- walk to the next face intersected by .
how to split a face? walk around each face.
running time: