-
Notifications
You must be signed in to change notification settings - Fork 3
/
data_kept.h
72 lines (46 loc) · 970 Bytes
/
data_kept.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
struct data_kept {
int idx;
Point pos; // some position
Point r0;
weight w, w0;
FT Dvol0;
FT Vvol0;
Vector_2 Dr;
Vector_2 U, U0;
Vector_2 Ustar;
FT p, p0;
Vector_2 dd;
FT dd2;
data_kept(const F_v_it fv) {
idx = fv->idx();
r0 = fv->r0.val();
Vvol0 = fv->Vvol0.val();
Dvol0 = fv->Dvol0.val();
w = fv->w.val();
w0 = fv->w0.val();
Dr = fv->Dr.val();
U = fv->U.val();
U0 = fv->U0.val();
Ustar = fv->Ustar.val();
p = fv->p.val();
p0 = fv->p0.val();
dd = fv->dd.val();
dd2 = fv->dd2.val(); ;
}
void restore(Vertex_handle fv) {
fv->idx.set( idx );
fv->r0.set( r0 );
fv->Dvol0.set( Dvol0 );
fv->Vvol0.set( Vvol0 );
fv->w.set( w );
fv->w0.set( w0 );
fv->Dr.set( Dr );
fv->U.set( U );
fv->U0.set( U0 );
fv->Ustar.set( Ustar );
fv->p.set( p );
fv->p0.set( p0 );
fv->dd.set( dd ) ;
fv->dd2.set( dd2 ); ;
}
};