Dan Halperin School of Computer Science Tel Aviv University - - PowerPoint PPT Presentation
Dan Halperin School of Computer Science Tel Aviv University - - PowerPoint PPT Presentation
Exact, Rounded or Perturbed: How Would You Like Your Arrangements? Dan Halperin School of Computer Science Tel Aviv University Heraklion, January 2013 Overview background exact rounded perturbed new ways challenges and
Overview
background exact rounded perturbed new ways challenges and open problems
2
Overview
background exact rounded perturbed new ways challenges and open problems
3
given a collection of curves on a surface, the arrangement is the partition of the surface into vertices, edges and faces induced by the curves
Arrangements, 2D
5
Arrangements in general
an arrangement of a set S of geometric objects is
the subdivision of space where the objects reside induced by S
possibly non-linear objects (circles), bounded
- bjects (segments), higher dimensions (planes,
simplices)
numerous applications in robotics, molecular
biology,vision, graphics, CAD/CAM, statistics, GIS
Very brief history
have been studied for decades - Matoušek (2002) cites
Steiner,1826; nowadays studied in combinatorial and computational geometry
Edelsbrunner `87
arrgs of hyperplanes
<piano movers─see next slide>
Sharir & Agarwal `95:
arrgs of curves and surfaces
6
From linear to curved: The piano movers series by Schwartz and Sharir
looking at the arrgs of critical (constraint) surfaces that
subdivide the configuration space into free vs. forbidden cells
On the “piano movers” problem I. The case of a two-
dimensional rigid polygonal body moving amidst polygonal barriers (`83)
On the “piano movers” problem II. General techniques
for computing topological properties of real algebraic manifolds (`82)
… 7
[joe-ks.com]
Very brief history, cont’d
(more subjective)
in recent years, new emphasis on effective
algorithms and implementation
Boissonnat-Teillaud (Eds) `06:
ECG for curves and surfaces
Fogel et al `12:
CGAL arrgs and their applications
8
Characteristic features
constructive algorithms (as opposed to
selective algorithms, e.g., CH)
frequent use of non-linear objects
9
What do we talk about when we talk about representation of arrgs
10
faithfulness/ precision format form topology/ combinatorics geometry/ numerics
Overview
background exact rounded perturbed new ways challenges and open problems
11
Exact arrangements
Pros
the truth algorithms can be easily transcribed, up to the general
position assumption (this is the CGAL approach)
the only known general method to cope with the intricacies
- f geometric computing
Cons
later
12
CGAL arrangements package(s)
constructs, maintains, modifies, traverses, queries, and
presents two-dimensional subdivisions
robust and exact
all inputs (including degenerate) are handled exact number types are used to achieve exact results
efficient generic 13
[TAU, MPII]
Recent applications
art gallery in practice x 2
[Braunschweig, Campinas]
molecular structure determination by NMR nano-particle membrane permeation
14
[Kroeller et al] [Martin and Donald] [Angelikopoulos et al]
Excursions to higher dimensions (>2)
envelopes in 3D (2.5 dim) [Meyerovitch-H `06] arrgs of polyhedral surfaces in 3D [Shaul-H `02]:
efficient decomposition, efficient sweep
arrgs of surfaces in 3D [Berberich-Kerber-
Sagraloff `09]: the piano movers technique revisited and implemented
15
Exact arrangements
Pros
the truth
algorithms can be easily transcribed, up to the general position assumption (this is the CGAL approach)
the only known general method to cope with the intricacies of geometric computing
Cons
requires special arithmetic need to determine and handle all degeneracies efficient algebraic machinery missing in higher dimensions
(>2)
efficient format unknown/unclear in higher dimensions (>3) exact numerical output may be huge, when at all possible 16
Users need: rounding (one more application of CGAL arrgs)
Agilent: Electromagnetic field simulation
17
[De Wielde] “Before switching to CGAL, Agilent used 6 different sweep line algorithms which used double-precision floating point coordinates. None of them operated correctly in all cases.”
Overview
background exact rounded perturbed new ways challenges and open problems
18
Geometric rounding
produce fixed precision geometric
representation with topological and geometric guarantees
is rounding essential?
19
20
Example: Arrgs of triangles w/ decomposition
The coordinates (x,y,z) of every triangle corner
are each represented with a 16-bit over 16-bit rational
[http://object-e.blogspot.com/2009/11/sphere-packing-vs-sphere-growth.html]
21
22
Geometric rounding planar polygonal maps: Best practice
Snap Rounding
[Greene, unpublished manuscript], [Hobby 99]
numerous variants and improved algorithms
23
Snap rounding (SR) arrgs of segments, I/O
input: n segments and a grid of pixels such that the
center points of the pixels have integer coordinates (the centers of pixels form the integer grid)
reminder, the vertices of the arrangement: either
segment endpoints (2n) or intersection of segments (I, at most θ(n2)); in this context a.k.a.: critical points
we call the input segments ursegments output: an arrangement of segments where all the
vertices are centers of grid pixels; details follow
24
Snap rounding arrgs of segments, definition
25 a pixel containing an arrg vertex is a hot pixel
Snap rounding arrgs of segments, definition
26 a pixel containing an arrg vertex is a hot pixel for each ursegment s construct its approximating
polygonal chain s* by connecting the centers of the hot pixels that s crosses in the order of crossing
Snap rounding arrgs of segments, definition
27 a pixel containing an arrg vertex is a hot pixel for each ursegment s construct its approximating
polygonal chain s* by connecting the centers of the hot pixels that s crosses in the order of crossing
Properties of snap rounding
fixed precision representation
need to show: no new vertices are
geometric proximity topological similarity [Guibas-Marimont `98]:
transforming s into s* viewed as a continuous deformation process; features may collapse but a curve does not cross over a vertex
28
Geometric rounding
Pros
convenient numerical output may not need to determine all degeneracies
(SR promotes degeneracies, but of a certain controllable type) Cons
later
29
Beyond polygons in the plane
Geodesics on the sphere
[Kozorovitzky-H `10]
Bezier in the plane
[Eigenwillig-Kettner-Wolpert `06]
line segments in 3-space polyhedral maps in 3-space [Fortune `99] (output precision depends on the input combinatorial size)
30
Geometric rounding
Pros
convenient numerical output may not need to determine all degeneracies (SR
promotes degeneracies, but of a certain controllable type) Cons
efficient consistent rounding (beyond planar
polygons) is hard
31
Overview
background exact rounded perturbed new ways challenges and open problems
32
Perturbing arrangements
symbolic (infinitesimal) perturbation
Simulation of Simplicity [Edelsbrunner and Mucke ‘90],
Symbolic Treatment of Geometric Degeneracies [Yap ‘90], [Emiris-Canny-Seidel ‘97], …
shearing and the like (e.g., the internal works of CGAL
arrgs RIC point location)
part of exact computing
actual perturbation
33
Initial motivation: molecular modeling
Pfizer project ~ 1995 exact computing for intersecting spheres inconceivable
back then
accurate molecular surfaces [H-Shelton `97] 34
35
Controlled perturbation, overview I
you run your geometric-algorithm program with floating-point (fp)
arithmetic
every algorithm predicate has a guard predicate, which is also an
fp-predicate
when a guard detects a potential error in an algorithm predicate it
fires, and some perturbation needs to be applied to the input before continuing
if no guard fired throughout an entire execution of the
algorithm, then the program has computed the desired output for the perturbed input [rigor]
analysis and practice to minimize the perturbation magnitude
with good running time [effectiveness]
Terminology borrowed from Mehlhorn et al
36
Controlled perturbation, overview II
a fixed precision approximation scheme resolution bound ε and perturbation bound δ (actual
perturbation), small backward error
degeneracy := potential degeneracy no degeneracy ⇒ no perturbation otherwise identify and remove all degeneracies predicates are accurately computed trade-off between perturbation magnitude and
computation time
37
CP vs. Infinitesimal Perturbation (IP)
IP requires exact arithmetic, whereas CP uses
fixed precision (fp) arithmetic
IP may require tailored post-processing,
whereas in CP no post-processing is needed
<add your favorite difference here>
38
Is it OK to perturb?
in many scientific and industrial applications the
input is approximate to begin with (measurement and modeling errors)
considerable slack for perturbation: often, the
maximum perturbation magnitude is well below the (in)accuracy of the model
H C N O F P S Cl 1.2 1.7 1.5 1.4 1.35 1.9 1.85 1.8
39
Required analysis
the only essential preprocessing: constructing
effective guards
a guard checks that the algorithm predicate is not in
the uncertainty zone around a degeneracy
difficulty: floating point analysis more analysis (resolution bounds and volume of
forbidden regions) could give indication on the existence of a good perturbation bound, or indicate the need for more precision
40
Alternative view of CP
controlled perturbation moves the original input so
that if the algorithm is run on the perturbed input with fixed precision floating point filter, the filter will always succeed and will never have to resort to higher precision or exact computation
indeed the analysis of guards uses similar tools for
fp error bounds
[Funke ’97] [Mehlhorn ‘10]
41
Brief history and more results
first steps: molecular surfaces, spherical
arrangements [H-Shelton `97]
second application: approximate swept volumes,
arrangement of polyhedral surfaces [Raab-H `99]
arrangements of polygons (topology preservation)
[Packer `02]
first elaborate analysis: arrangement of circles [H-
Leiserowitz `03]
42
Brief history and more results, cont’d
different variant and analysis, more applications
[Funke-Klein-Mehlhorn-Schmitt `05]:
total rerun Convex Hulls and Delaunay Triangulations
dynamic CP for 3D spherical arrangements
[Eyal-H `05]
CP with smart processing order [Packer `06]
43
Brief history and more results, cont’d
general analysis of CP algorithms, take I
[Mehlhorn-Osbild-Sagraloff `06]
evaluation of the above, arrgs of circles, Voronoi
diagram of line segments [Caroli `07]
CLP, L for Linear [Milenkovic-Sacks-Kyung `10] general analysis of CP algorithms, take II
[Mehlhorn-Osbild-Sagraloff `11]:
analysis of all predicates defined by signs of polynomials resolving the gap between perturbing in the space of real
numbers (theory) and the perturbation in fp (practice)
Controlled perturbation
Pros
fixed precision scheme, no need for exact
computing
removes degeneracies if needed
Cons
requires special analysis, and in particular
requires determining all degeneracies
preserving topology (even partially) is hard
44
Interim summary
exact rounded perturbed
45
Overview
background exact rounded perturbed new ways challenges and open problems
46
The piano movers problem revisited
subdivisions with soft predicates [Yap, Chiang et
al]: resolution exact
MMS: sampling-based with exact arrgs on
manifolds [Salzman-Hemmer-Raveh-H `11] caveat: application driven
47
Sampling-based techniques in motion planning
PRM (Probabilistic RoadMaps)
[Kavraki, Svestka, Latombe,Overmars 96]
many variants followed, e.g.
RRT (Rapidly Exploring Random
trees), [LaValle-Kuffner 99,00]
Motion planning with manifold samples MMS
49
[Salzman-Hemmer-Raveh-H `11 ]
MMS, cont’d
[Salzman-Hemmer-H `12]
extension to higher dimensions proof of probabilistic completeness of the
scheme
the dimensionality of narrow passages ─
theoretical substantiation of the ascent of MMS
implemented application to 6 dof system
50
Experimental results (6D C-Space)
Tightening the configuration space
20 20-fo fold ld speedup
MMS, further research
approximation single query path quality real system(s)
52
Overview
background exact rounded perturbed new ways challenges and open problems
53
Challenges and open problems
exact arrgs of polyhedral surfaces in higher
dimensions (>2)
consistent geometric rounding beyond planar
polygonal maps
controlled perturbation: (i) automation, (ii)
incorporating topological guarantees
add approximation to MMS
54
THE END
55