mirror of https://github.com/CGAL/cgal
Need double cast
This commit is contained in:
parent
f6fd8cae4c
commit
bc4eca82b3
|
|
@ -41,7 +41,7 @@ struct DefaultColorFunctorPolyhedron
|
|||
if (fh==boost::graph_traits<Polyhedron>::null_face()) // use to get the mono color
|
||||
return CGAL::Color(100, 125, 200); // R G B between 0-255
|
||||
|
||||
CGAL::Random random((unsigned int)&(*fh));
|
||||
CGAL::Random random((unsigned int)(std::size_t)(&(*fh)));
|
||||
return get_random_color(random);
|
||||
}
|
||||
};
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ struct DefaultColorFunctorT2
|
|||
static CGAL::Color run(const T2&,
|
||||
const typename T2::Finite_faces_iterator fh)
|
||||
{
|
||||
CGAL::Random random((unsigned int)(&*fh));
|
||||
CGAL::Random random((unsigned int)(std::size_t)(&*fh));
|
||||
return get_random_color(random);
|
||||
}
|
||||
};
|
||||
|
|
|
|||
|
|
@ -41,7 +41,8 @@ struct DefaultColorFunctorT3
|
|||
if (fh==NULL) // use to get the mono color
|
||||
return CGAL::Color(100, 125, 200); // R G B between 0-255
|
||||
|
||||
CGAL::Random random((unsigned int)(&*((*fh)->first))+(unsigned int)((*fh)->second));
|
||||
CGAL::Random random((unsigned int)((std::size_t)(&*((*fh)->first))+
|
||||
(std::size_t)((*fh)->second)));
|
||||
return get_random_color(random);
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue