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

Revision 1526, 629 bytes checked in by gumbau, 18 years ago (diff)

Updated modules to the new interface and the new simplification algorithm improvements.

RevLine 
[1025]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        {
[1526]14                public:
15                        Vertex *v0, *v1;
[1025]16
[1526]17                        Vec3 candidate;
18                        real cost;
[1025]19
[1526]20                        pair_info(Vertex *a,Vertex *b) { v0=a; v1=b; cost=HUGE; }
[1025]21
[1526]22                        bool isValid() { return v0->isValid() && v1->isValid(); }
[1025]23        };
24
25        typedef buffer<pair_info *> pair_buffer;
26
27        class vert_info
28        {
[1526]29                public:
[1025]30
[1526]31                        pair_buffer pairs;
[1025]32
[1526]33                        Mat4 Q;
34                        real norm;
[1025]35
[1526]36                        vert_info() : Q(Mat4::zero) { pairs.init(2); norm=0.0; }
[1025]37        };
38}
[1526]39
Note: See TracBrowser for help on using the repository browser.