source: trunk/UPV/GTGeometry/include/GeoTreeSimplifier.h @ 138

Revision 138, 1.7 KB checked in by hidalgo, 19 years ago (diff)

Uploaded WP4 Dummy code(Geometry)

Line 
1#ifndef __GEO_TREE_SIMPLIFIER__
2#define __GEO_TREE_SIMPLIFIER__
3
4#include "GeoMesh.h"
5#include "GeoTreeSimpSequence.h"
6
7
8namespace Geometry
9{
10        /// Tree Simplifier interface
11        /*** This module is used by LODTree to simplify leaves of a tree. It contains functions that generate simplified
12        versions of 3D objects made out of quads (represented as pairs of texture-mapped triangles). Given a 3D object, this
13        module computes a sequence of geometric transformations that reduce the object’s geometric detail while preserving
14        its appearance.\n\n
15
16        For each simplification step, the module returns a simplification sequence containing the leaf collapsed, the two
17        leaves being removed, and the resulting leaf for that contraction.\n\n
18
19       
20Inputs:\n
21        - A pointer to the Geometry::Mesh object containing the tree to be simplified.
22        .
23
24Outputs:\n
25        -# The simplified mesh, contained in a Geometry::Mesh object.
26        -# Simplification sequence, represented by a Geometry::TreeSimplificationSequence object.
27        */
28
29        class TreeSimplifier
30        {
31        public:
32                /// Class constructor. Retrieves a pointer to a valid Mesh object to simplify
33                TreeSimplifier (const Geometry::Mesh *);
34
35                /// Class destructor.
36                ~TreeSimplifier (void);
37
38                /// Copy constructor
39                //TreeSimplifier(const TreeSimplifier&);
40
41                /// Assignment operator
42                //TreeSimplifier& operator =(const TreeSimplifier&);
43
44                /// Starts the simplification process. Receives as a parameter the LOD factor in a range of [0,1].
45                void Simplify (Geometry::Real);
46       
47                /// Returns the simplified mesh.
48                Mesh *GetMesh ();
49
50                /// Returns the simplification sequence for leaves.
51                TreeSimplificationSequence *GetSimplificationSequence();
52        };
53
54}
55
56#endif
Note: See TracBrowser for help on using the repository browser.