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

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