Title: Triangulations for computer graphics applications
1Triangulations for computer graphics applications
- I. Kolingerová (kolinger_at_kiv.zcu.cz)
2Contents
- 1. Introduction
- 2. On triangulated models
- 3. On triangulations
- 4. The best known planar triangulations
- 5. Generalizations incoming/outgoing points,
- refinement smoothing, moving points,
pseudotriangulations - 6. 3D triangulations
- 7. Applications to CG
- 8. Conclusion
31. Introduction
- Goal of this paper - a brief survey of
triangulations used for computer graphics image
processing - and experience with them in applications
- Triangulation - a set of triangles or tetrahedra
- on the given set of points,
- with possibility to add user-defined edges,
sometimes with possibility of refinement
42. On triangulated models
- A triangulated model planar/ triangulated
boundary/ tetrahedral
a set of 2D of 2.5D points
planar triangulation
a triangulated model
5On triangulated models
a set of 3D points
surface reconstruction in 3D (often via
tetrahedronization) or points projection and
triangulation in a parametric space
a triangulated surface mesh
AVG 7/33
6On triangulated models
a set of 3D points
tetrahedronization
a volume model consisting of tetrahedra (i.e.
also of triangles)
AVG 7/33
73. On triangulations
Triangulation T(P) of a set of n points in
E2 - a set of edges such that - no two
edges intersect at a point not in P - the
edges divide CH(P) into triangles
8On triangulations
- Many triangulations of a given points set
-
- many criteria of quality
- global
- local
- angular
- edge lengths (weight)
9On triangulations
- Local criteria an initial triangulation, checks
of neighbouring simplices on local optimality if
not optimal, flip to the other configuration if
exists
10On triangulations
- Flipping converges in E2 for any criteria, in E3
may not converge but works for the criteria used
in practice - Complexity of the triangulation O(n log n) in
E2, O(n2) in E3, both can be done in O(n)
expected case - Flipping complexity O(n2) in the worst case and
O(n) in the expected case
11On triangulations
- Global criteria polynomial algorithms for
nearly all criteria unknown, locally optimal
triangulations not globally optimal - An exception Delaunay triangulation - maximizes
minimal angles locally globally (in E2),
minimizes the max. containment sphere radius (in
E2 and E3)... etc. - Solution for global extremes suboptimal
algorithms, heuristics, probabilistic methods
12On triangulations
- Other triangulated models not defined by
local/global criteria surface reconstruction - "reconstruct a triangulated surface model to be
as close as possible to the original geometric
object given a set of surface points" - gt weak definition
134. The best known planar triangulations
- 4.1 Triangulations optimizing angles - most
important group - 4.2 Triangulations optimizing edge lengths
- 4.3 Multi-criteria optimized triangulations
- 4.4 Data-dependent triangulations
144.1 Triangulations optimizing angles
- Most important group
- Maxmin angle (Delaunay triangulation), minmax
angle, minmin angle, max sum of angles, minmax
eccentricity (min.distance between CC centre and
triangle vertices)
DT
15Delaunay triangulation DT(P)
- The circumcircle of any triangle in DT(P) does
not contain any other point of P - Maximizes the minimum angles
- The most equiangular triangles
- O(n log n) - worst case optimal
16Algorithms for DT(P)
- Local improvement by edge flipping
- Divide conquer
- Incremental insertion
- Incremental construction
- Sweeping
- High-dimensional embedding
- DC and sweeping the fastest but complicated and
not flexible enough - Our recommendation incremental insertion
17A real data set (20 000 points, 40 000 triangles)
184.2 Triangulations optimizing edge lengths
- Less used in practice higher complexity
- Minimum weight triangulation (MWT),
- greedy triangulation (GT), minmax edge
length
DT
GT
MWT
19Greedy triangulation GT(P)
- Consists of the shortest possible compatible
edges - Optimal algorithm yet not known
- expected O(n) case up to O(n3) worst case
DT
GT
GT
DT
204.3 Multi-criteria optimized triangulations
- Optimization of several combined criteria
- Non-deterministic computation using local edge
swaps - Slow
214.4 Data-dependent triangulations (DDT)
- For data with a steep slope
- Takes into consideration also heights of points,
angles between triangle normals
DDT
22 DDT is suitable for Triangulation
without considering heights does not respect the
break
Considering heights
235. Generalizations
- 5.1 Constrained edges
- 5.2 Incoming/outgoing points
- 5.3 Refinement smoothing
- 5.4 Moving points
- 5.5 Pseudotriangulations
245.1 Constrained edges
- The edges prescribed to a triangulation
255.2 Incoming/outgoing points
Incoming points easy namely for
incremental algorithms
26Incoming/outgoing points
Outgoing points a bit more difficult (but
still OK) data structures must be able
to handle it
275.3 Refinement smoothing
Triangulation on the given points may be bad
(even Delaunay)
Improvement possible by adding points and
smoothing the mesh
285.4 Moving points
- All points move at the same time
- Constant velocities, linear trajectories
- Parameters are known in advance gt
- mesh changes can be planned
- An event queue
- DT most important events - 4 co-circular
points, - points depend on t
- gt a determinant of 4x4 matrix with
variable items - gt 4th order polynomial equation to be
solved
29Moving points
A small demo one moving point Still not too much
stable
(c) T.Vomácka,2007
305.5 Pseudotriangulations
Triangles not exciting enough? Too regular?
Boring?
(c) J.Trcka, 2007
What about pseudotriangulations?
316. 3D triangulations
- Problems against 2D number of tetrahedra may
differ for one set of points , maximally O(n2)
tetrahedra, low readability - In CG and image processing DT most often
n35
32Delaunay triangulation in 3D
- Min max radii of enclosing spheres nothing more
- Algorithms not all approaches converge
- Most often incremental insertion
337. Applications to CG
7.1 Real time terrain modifications 7.2 Contour
lines computation and improvement 7.3
Reconstruction of planar domain boundaries 7.4
Image and video representation 7.5 Surface
reconstruction 7.6 Outliers removal 7.7 Tunnels
in protein molecules
347.1 Real time terrain modifications
Circle tool demos
Drag demo
(c) J.Kadlec V. Purchart, 2007
357.2 Contour lines computation and improvement
Contour lines computed automatically may have
problems
(c) I.Kolingerová, M.Dolák, V.Strych, 2003-7
36Contour lines computation and improvement
- Solution
- manual
- automatic
- Manual imposing constrained edges
37Contour lines computation and improvement
- Automatic to find artifacts automatically
- and use constrained edges
- ??
- At least flat areas
38Contour lines computation and improvement
397.3 Reconstruction of planar domain boundaries
Remove triangles with at least one edge
longer than some limit
(c) I.Kolingerová, B.Žalik, 2006
40Reconstruction of planar domain boundaries
Sometimes difficult to decide OK for practical use
It can be used also for holes
417.4 Image and video representation
A height array, volume data x an adaptive
mesh, tetrahedra
JPEG contra constrained-DT based coding
(c) J.Polec, M.Partyk, I.Kolingerová, 2003-5
42Image and video representation
Video as volume data
Original and tetrahedra-compressed images from
a video
(c) M.Varga, 2007
437.5 Surface reconstruction
(c) M.Varnuška, 2005
44Surface reconstruction
- Modification of CRUST by Nina Amenta
- - DT 3D - a superset of surface triangles
- The surface approximation based on the shape of
the dual Voronoi cells shape and on the surface
normals estimates
45Surface reconstruction
- Post-processing to extract a manifold and to
correct boundaries
46Surface reconstruction
47Surface reconstruction
- Noisy data - still a problem, post-processing
necessary
Data VRVis TU Graz
487.6 Outliers removal
Triangulation - a planar graph Delaunay
triangulation - a hypergraph of the Minimum
Spanning Tree
(c) I.Kolingerová, 2004
49Outliers removal
It can be used to find clusters and remove
outliers
50Outliers removal
517.7 Tunnels in protein molecules
A protein
A protein a tunnel
(c) Implementation M. Zemek, 2007, Original
solution P.Medek,
P.Beneš, J.Sochor
52Tunnels in protein molecules
A regular triangulation, a power diagram and a
tunnel in protein molecules (2D version)
53Tunnels in protein molecules
A protein 3D RT
3D regular triangulation
54Tunnels in protein molecules
A protein a tunnel
3D regular triangulation a tunnel
558. Conclusion
- Triangulations rich and interesting topic, very
useful also in computer graphics and image
processing
Much work done, still many challenges, namely in
3D An interesting and grateful topic for research
56Thanks for your attention