Files to download todayHere are some files to download (and extract to the main folder of your Eclipse project TD4):
Libraries to add (project /LIB):
For the simplification and rendering of meshes
(download the file TD4_src.zip):
Java documentation
Here is the javaDoc
concerning the packages and classes used today: |
class MeshViewer |
|
|
Class MeshViewer provides
simple methods for drawing a triangle mesh in a 3D
frame; it also provides a simple trackball
(allowing to rotate the 3D scene with mouse
events). Method setup() allows to select the preferred simplification algorithm. public void setup() { |
1.1 Random half-edge contraction
Given a triangle mesh (class Polyhedron_3<Point_3>),
we want to simplify it, by computing half-edge
contractions: we contract edge (u,v), by
taking as new location the original position of u.
Halfedges are randomly choosen. |
Example of mesh simplification: edges are chosen at random. |
2.0 Optimal placement of vertices based on quadric
error metrics
As mentioned during the Lecture 4, there exists better
ways for selecting edges to contract. |