smsimp
Compresses a streaming mesh using decimation. It is an implementation of Garland and Heckbert's
QuadraticErrorMetric, which fits into our
PointSelectionFramework.
This was an early implementation by Peter Lindstrom of LLNL. Use
smsimpall instead, which handles meshes with holes and classified points and produces fewer artifacts.
Usage:
-simprate 0.01
Flag for rate of simplification. The number is the decimal fraction that gets kept.
-retryrate 2
Values 2-10 are good. Setting it higher results in faster speed but worse simplification.
Some edges cannot get contracted at a specific time because the
geometry around them does not allow this, i.e. they would cause
triangle flips. As the geometry changes around these edges they may
become eligible for contraction. 90% of these cases get
automatically unlocked by their neighbors once these cause a change
around in the mesh, but the ones that keep staying locked, how
often should they be tried for unlock. Parameter 2 means every
other two successful contractions.
-mode
The simplification mode. There are three different modes:
0: Streaming fashion. Loads a buffer of edges and performs simplification on a mesh front stripe. The width of this front stripe is important and a large number allows for nicer but slower simplifications.
1: Global (simple). Means that a global buffer is used but it simplifies as it goes.
2: Global all means that it reads ALL the mesh and then starts simplifying. It is extremely good quality, but extremely slow as well. Not feasible for large meshes.
-buffsize 100000
The size of the current active edges under processing. 100000 is a good value, but millions can be used for better quality if you think it's worth waiting longer for the simplification.
-trim 10.9
If this flag is set, all the triangles with at least one edge over 10.0 meters (in this case, but it depends on the specified value) are not output. This gets rid of some artifacts of triangulation, but can leave orphaned points. We may replace it later with a better version.
--
ChristianStith - 14 Aug 2008
to top