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