source: GTP/trunk/Lib/Geom/shared/GTGeometry/src/libs/simplif.h @ 2291

Revision 2291, 631 bytes checked in by gumbau, 17 years ago (diff)
Line 
1// -*- C++ -*-
2
3//#include "Nautilus.h"
4#include "AdjModel.h"
5#include "avars.h"
6#include <gfx/tools/Heap.h>
7#include <iostream>
8#include <fstream>
9
10namespace simplif
11{
12        class pair_info : public Heapable
13        {
14                public:
15
16                        Vertex *v0, *v1;
17
18                        Vec3 candidate;
19                        real cost;
20
21                        pair_info(Vertex *a,Vertex *b) { v0=a; v1=b; cost=HUGE; }
22
23                        bool isValid() { return v0->isValid() && v1->isValid(); }
24        };
25
26        typedef buffer<pair_info *> pair_buffer;
27
28        class vert_info
29        {
30                public:
31
32                        pair_buffer pairs;
33
34                        Mat4 Q;
35                        real norm;
36
37                        vert_info() : Q(Mat4::zero) { pairs.init(2); norm=0.0; }
38        };
39}
40
Note: See TracBrowser for help on using the repository browser.