mirror of https://github.com/CGAL/cgal
fix warnings
This commit is contained in:
parent
c48b4cb6c2
commit
b85035ff87
|
|
@ -52,31 +52,33 @@ class Conforming_constrained_Delaunay_triangulation_cell_data_3 {
|
||||||
void clear_mark(CDT_3_cell_marker m) { markers.reset(static_cast<unsigned>(m)); }
|
void clear_mark(CDT_3_cell_marker m) { markers.reset(static_cast<unsigned>(m)); }
|
||||||
void clear_marks() { markers.reset(); }
|
void clear_marks() { markers.reset(); }
|
||||||
|
|
||||||
|
static unsigned int uint(int i) { return static_cast<unsigned int>(i); }
|
||||||
|
|
||||||
template <typename Facet_handle>
|
template <typename Facet_handle>
|
||||||
void set_facet_constraint(int i, CDT_3_signed_index face_id,
|
void set_facet_constraint(int i, CDT_3_signed_index face_id,
|
||||||
Facet_handle facet_2d)
|
Facet_handle facet_2d)
|
||||||
{
|
{
|
||||||
this->face_id[unsigned(i)] = face_id;
|
this->face_id[uint(i)] = face_id;
|
||||||
this->facet_2d[unsigned(i)] = static_cast<void*>(facet_2d == Facet_handle{} ? nullptr : std::addressof(*facet_2d));
|
this->facet_2d[uint(i)] = static_cast<void*>(facet_2d == Facet_handle{} ? nullptr : std::addressof(*facet_2d));
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename CDT_2>
|
template <typename CDT_2>
|
||||||
auto face_2 (const CDT_2& cdt, int i) const {
|
auto face_2 (const CDT_2& cdt, int i) const {
|
||||||
using Face = typename CDT_2::Face;
|
using Face = typename CDT_2::Face;
|
||||||
auto ptr = static_cast<Face*>(facet_2d[unsigned(i)]);
|
auto ptr = static_cast<Face*>(facet_2d[uint(i)]);
|
||||||
return cdt.tds().faces().iterator_to(*ptr);
|
return cdt.tds().faces().iterator_to(*ptr);
|
||||||
}
|
}
|
||||||
public:
|
public:
|
||||||
/// @{
|
/// @{
|
||||||
// @cond SKIP_IN_MANUAL
|
// @cond SKIP_IN_MANUAL
|
||||||
bool is_facet_constrained(int i) const { return face_id[unsigned(i)] >= 0; }
|
bool is_facet_constrained(int i) const { return face_id[uint(i)] >= 0; }
|
||||||
|
|
||||||
CDT_3_signed_index face_constraint_index(int i) const {
|
CDT_3_signed_index face_constraint_index(int i) const {
|
||||||
return face_id[unsigned(i)];
|
return face_id[uint(i)];
|
||||||
}
|
}
|
||||||
|
|
||||||
void set_face_constraint_index(int i, CDT_3_signed_index index) {
|
void set_face_constraint_index(int i, CDT_3_signed_index index) {
|
||||||
face_id[unsigned(i)] = index;
|
face_id[uint(i)] = index;
|
||||||
}
|
}
|
||||||
/// @endcond
|
/// @endcond
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue