std::size_t -> unsigned int to adress warnings

This commit is contained in:
Andreas Fabri 2017-06-14 10:39:15 +02:00
parent b629a9e9e3
commit 665e4bbd0b
2 changed files with 2 additions and 2 deletions

View File

@ -916,7 +916,7 @@ struct Is_constrained_map<SMesh>
:mesh(mesh)
{
icmap = mesh->add_property_map<sm_vertex_descriptor,int>("v:is_control", -1).first;
for(std::size_t i=0; i<vec->size(); ++i)
for(unsigned int i=0; i<vec->size(); ++i)
{
icmap[sm_vertex_descriptor(i)] = (*vec)[i];
}

View File

@ -736,7 +736,7 @@ public:
std::vector<Polyhedron::Point_3> points;
points.reserve(selected_facets.size());
VPmap vpm = get(CGAL::vertex_point, *polyhedron());
std::size_t counter = 1;
unsigned int counter = 1;
for(Selection_set_facet::iterator fb = selected_facets.begin(); fb != selected_facets.end(); ++fb) {
BOOST_FOREACH(fg_halfedge_descriptor hb, halfedges_around_face(halfedge(*fb,*polyhedron()),*polyhedron())){
if(get(vertex_selection_map(), target(hb,*polyhedron())) == 0) {