fix copmilation issue in the demo and remove a initialization order warning

This commit is contained in:
Sébastien Loriot 2013-03-08 11:41:38 +01:00
parent 2ff9c0d210
commit c8deb29d63
2 changed files with 2 additions and 2 deletions

View File

@ -529,7 +529,7 @@ void Polyhedron_demo_edit_polyhedron_plugin::usage_scenario_1(Scene_edit_polyhed
scalar * data_vec.z()), scalar * 3.14);
qglviewer::Vec disp(scalar * data_vec.x(), scalar * data_vec.y(), scalar * data_vec.z());
(*deform)(data.active_handle_group, poi, quat, disp);// 0 for the match
deform->rotate(data.active_handle_group, poi, quat, disp);// 0 for the match
deform->deform();
}

View File

@ -144,7 +144,7 @@ public:
unsigned int iterations = 5,
double tolerance = 1e-4)
: polyhedron(polyhedron), vertex_index_map(vertex_index_map), edge_index_map(edge_index_map),
weight_calculator(polyhedron), need_preprocess(true), iterations(iterations), tolerance(tolerance)
iterations(iterations), tolerance(tolerance), need_preprocess(true), weight_calculator(polyhedron)
{
CGAL_precondition(polyhedron.is_pure_triangle());
}