mirror of https://github.com/CGAL/cgal
Add static_cast<double>(size_t)
This commit is contained in:
parent
9c90032656
commit
bcf1591719
|
|
@ -28,7 +28,7 @@ void create_center_vertex( Polyhedron& P, Facet_iterator f) {
|
|||
++ order;
|
||||
} while ( ++h != f->facet_begin());
|
||||
CGAL_assertion( order >= 3); // guaranteed by definition of polyhedron
|
||||
Point center = CGAL::ORIGIN + (vec / order);
|
||||
Point center = CGAL::ORIGIN + (vec / static_cast<double>(order));
|
||||
Halfedge_handle new_center = P.create_center_vertex( f->halfedge());
|
||||
new_center->vertex()->point() = center;
|
||||
}
|
||||
|
|
@ -42,7 +42,7 @@ struct Smooth_old_vertex {
|
|||
HV_circulator h = v.vertex_begin();
|
||||
do {
|
||||
vec = vec + ( h->opposite()->vertex()->point() - CGAL::ORIGIN)
|
||||
* alpha / degree;
|
||||
* alpha / static_cast<double>(degree);
|
||||
++ h;
|
||||
CGAL_assertion( h != v.vertex_begin()); // even degree guaranteed
|
||||
++ h;
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ void create_center_vertex( Polyhedron& P, Facet_iterator f) {
|
|||
++ order;
|
||||
} while ( ++h != f->facet_begin());
|
||||
CGAL_assertion( order >= 3); // guaranteed by definition of polyhedron
|
||||
Point center = CGAL::ORIGIN + (vec / order);
|
||||
Point center = CGAL::ORIGIN + (vec / static_cast<double>(order));
|
||||
Halfedge_handle new_center = P.create_center_vertex( f->halfedge());
|
||||
new_center->vertex()->point() = center;
|
||||
}
|
||||
|
|
@ -53,7 +53,7 @@ struct Smooth_old_vertex {
|
|||
return v.point();
|
||||
}
|
||||
vec = vec + ( h->opposite()->vertex()->point() - CGAL::ORIGIN)
|
||||
* alpha / degree;
|
||||
* alpha / static_cast<double>(degree);
|
||||
++ h;
|
||||
CGAL_assertion( h != v.vertex_begin()); // even degree guaranteed
|
||||
++ h;
|
||||
|
|
|
|||
Loading…
Reference in New Issue