Skip to content

Commit

Permalink
All motions now use the simple armadillo model.
Browse files Browse the repository at this point in the history
  • Loading branch information
Asger Nyman Christiansen committed Jul 25, 2013
1 parent b3a7b63 commit e510b6d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions DEMO/user_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ void UI::motion1()
pts_inside[0] = V( 0.0f, 0.0f, 0.0f);

//import_tet_mesh(get_data_file_path("bunny.dsc").data(), points, tets, tet_labels);
build_tetrahedralization<GELTypes>(get_data_file_path("blob.obj"), points, tets, tet_labels, pts_inside);
build_tetrahedralization<GELTypes>(get_data_file_path("armadillo-very-simple.obj"), points, tets, tet_labels, pts_inside);

dsc = new DeformableSimplicialComplex<GELTypes>(points, tets, tet_labels);
vel_fun = new RotateFunc<GELTypes>(VELOCITY, ACCURACY);
Expand All @@ -384,6 +384,7 @@ void UI::motion1()
basic_log->write_log(vel_fun);

view_ctrl = new GLGraphics::GLViewController(WIN_SIZE_X, WIN_SIZE_Y, (CGLA::Vec3f)dsc->get_center(), r);
view_ctrl->set_view_param(CGLA::Vec3f(0.,0., -r), (CGLA::Vec3f)dsc->get_center(), CGLA::Vec3f(0.,1.,0.));

update_title();
reshape(WIN_SIZE_X, WIN_SIZE_Y);
Expand All @@ -401,7 +402,7 @@ void UI::motion2()
pts_inside[0] = V( 0.0f, 0.0f, 0.0f);

//import_tet_mesh(get_data_file_path("bunny.dsc").data(), points, tets, tet_labels);
build_tetrahedralization<GELTypes>(get_data_file_path("blob.obj"), points, tets, tet_labels, pts_inside);
build_tetrahedralization<GELTypes>(get_data_file_path("armadillo-very-simple.obj"), points, tets, tet_labels, pts_inside);

dsc = new DeformableSimplicialComplex<GELTypes>(points, tets, tet_labels);
vel_fun = new AverageFunc<GELTypes>(VELOCITY, ACCURACY);
Expand All @@ -413,6 +414,7 @@ void UI::motion2()
basic_log->write_log(vel_fun);

view_ctrl = new GLGraphics::GLViewController(WIN_SIZE_X, WIN_SIZE_Y, (CGLA::Vec3f)dsc->get_center(), r);
view_ctrl->set_view_param(CGLA::Vec3f(0.,0., -r), (CGLA::Vec3f)dsc->get_center(), CGLA::Vec3f(0.,1.,0.));

update_title();
reshape(WIN_SIZE_X, WIN_SIZE_Y);
Expand Down

0 comments on commit e510b6d

Please sign in to comment.