source: obsolete/trunk/UPV/GTGeometry/include/GeoMeshSimpSequence.h @ 138

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

Uploaded WP4 Dummy code(Geometry)

Line 
1#ifndef __GEO_MESH_SIMP_SEQUENCE__
2#define __GEO_MESH_SIMP_SEQUENCE__
3
4#include <string>
5#include <vector>
6#include "GeoBase.h"
7#include "GeoSerializable.h"
8
9namespace Geometry
10{
11        /// Represents the simplification sequence applied to a given mesh.
12        /** This class stores information about the simplification process, giving for each step the vertex that collapses,
13        the vertex that remains unchanged, the two triangles that disappear and the new triangles that come out.
14        It also offers a method to generate a mesh simplification sequence format file.
15        \n
16        This file begins with a line stating the name of the mesh file it refers to.
17
18    Every line gives the following information: \n
19        \n
20                -# Vertex that collapses.\n
21                -# Vertex that remains unchanged.\n
22                -# The two triangles that disappear.\n
23                -# & as a separator.\n
24                -# The list of new triangles.\n
25                .
26        \n
27        */
28
29        class MeshSimplificationSequence: public Serializable
30        {
31        public:
32                /// Class constructor.
33                MeshSimplificationSequence(void);
34
35                /// Class destructor.
36                ~MeshSimplificationSequence(void);
37
38                /// Copy constructor
39                //MeshSimplificationSequence(const MeshSimplificationSequence&);
40
41                /// Assignment operator
42                //MeshSimplificationSequence& operator =(const MeshSimplificationSequence&);
43
44                /// Represents a simplification step in the sequence.
45                struct Step
46                {
47                        Index mV0, mV1;
48                        Index mT0, mT1;
49                        std::vector<Index> mModfaces;
50                };
51
52                /// Stores all the simplification steps.
53                std::vector<Step> mSteps;
54
55                /// Loads a simplification sequence from a Serializer.
56                void Load(Serializer &s);
57
58                /// Saves the contents of the data structures.
59                void Save(Serializer &s);
60        };
61}
62
63#endif
Note: See TracBrowser for help on using the repository browser.