Skip to content

Commit 0190e5f

Browse files
committed
read me+ color
1 parent 7e20a81 commit 0190e5f

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ L: hide/show edges
1818

1919
2: Display mesh
2020

21-
3: One iteration of Lloyd's algorithm
21+
3: One iteration (Region mapping + proxy fitting)
2222

2323
4: Draw anchors
2424

@@ -28,6 +28,6 @@ L: hide/show edges
2828

2929
7: Draw proxies
3030

31-
8: 10 steps
31+
8: 10 iterations
3232

33-
9: 100 steps
33+
9: 100 iterations

main.cpp

+1-6
Original file line numberDiff line numberDiff line change
@@ -221,9 +221,7 @@ bool key_down(igl::opengl::glfw::Viewer &viewer, unsigned char key, int modifier
221221

222222
}
223223
if (key=='6') {
224-
MatrixXd nR = MatrixXd::Ones(F.rows(),1);
225-
igl::jet(nR,true,C);
226-
viewer.data().set_colors(C);
224+
color_scheme(viewer, newV, newF);
227225
}
228226
if (key=='7') {
229227
draw_prox(viewer);
@@ -236,9 +234,6 @@ bool key_down(igl::opengl::glfw::Viewer &viewer, unsigned char key, int modifier
236234
for (int i=0;i<100;i++) one_iter(viewer);
237235
cout << " Done" <<endl;
238236
}
239-
if (key=='0') {
240-
color_scheme(viewer, newV, newF);
241-
}
242237
if (key == 'S' || (unsigned int)key == 83){
243238
vector<double> errors;
244239
while (fabs(error - precedent_error)>0.0001){

0 commit comments

Comments
 (0)