mirror of https://github.com/CGAL/cgal
fixes for warnings
This commit is contained in:
parent
5e4e969252
commit
5055d51f64
|
|
@ -142,9 +142,9 @@ public:
|
||||||
const bool constrain_to_cell = true)
|
const bool constrain_to_cell = true)
|
||||||
: m_domain(domain),
|
: m_domain(domain),
|
||||||
m_isovalue(isovalue),
|
m_isovalue(isovalue),
|
||||||
m_point_counter(0),
|
|
||||||
m_isovalue_nudging(isovalue_nudging),
|
m_isovalue_nudging(isovalue_nudging),
|
||||||
m_constrain_to_cell(constrain_to_cell)
|
m_constrain_to_cell(constrain_to_cell),
|
||||||
|
m_point_counter(0)
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
void operator()(const cell_descriptor& cell) {
|
void operator()(const cell_descriptor& cell) {
|
||||||
|
|
@ -313,7 +313,7 @@ private:
|
||||||
d = b * b - FT(4) * a * c;
|
d = b * b - FT(4) * a * c;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool calc_coordinates(const std::array<FT, 8>& values, const std::size_t idx, const FT i0, const FT a, const FT b, const FT c, const FT d, const std::vector<bool> &f_flag, unsigned char &q_sol, FT ui[2], FT vi[2], FT wi[2]) {
|
bool calc_coordinates(const std::array<FT, 8>& values, const std::size_t idx, const FT i0, const FT a, const FT b, const FT d, const std::vector<bool> &f_flag, unsigned char &q_sol, FT ui[2], FT vi[2], FT wi[2]) {
|
||||||
const int* remap = internal::Cube_table::asymptotic_remap[idx];
|
const int* remap = internal::Cube_table::asymptotic_remap[idx];
|
||||||
|
|
||||||
if (values[remap[0]] == values[remap[2]] && values[remap[1]] == values[remap[3]])
|
if (values[remap[0]] == values[remap[2]] && values[remap[1]] == values[remap[3]])
|
||||||
|
|
@ -349,10 +349,6 @@ private:
|
||||||
if (((remap[8] & 0b0011) != 0b0000) || ((remap[9] & 0b0011) != 0b0001) || ((remap[10] & 0b0011) != 0b0010)) {
|
if (((remap[8] & 0b0011) != 0b0000) || ((remap[9] & 0b0011) != 0b0001) || ((remap[10] & 0b0011) != 0b0010)) {
|
||||||
FT tmp[3][2] = { { ui[0], ui[1] }, { vi[0], vi[1] }, { wi[0], wi[1] } };
|
FT tmp[3][2] = { { ui[0], ui[1] }, { vi[0], vi[1] }, { wi[0], wi[1] } };
|
||||||
|
|
||||||
int uidx = remap[8] & 0b0011;
|
|
||||||
int vidx = remap[9] & 0b0011;
|
|
||||||
int widx = remap[10] & 0b0011;
|
|
||||||
|
|
||||||
ui[0] = tmp[remap[8] & 0b0011][0];
|
ui[0] = tmp[remap[8] & 0b0011][0];
|
||||||
ui[1] = tmp[remap[8] & 0b0011][1];
|
ui[1] = tmp[remap[8] & 0b0011][1];
|
||||||
vi[0] = tmp[remap[9] & 0b0011][0];
|
vi[0] = tmp[remap[9] & 0b0011][0];
|
||||||
|
|
@ -871,7 +867,7 @@ private:
|
||||||
if (a == 0 || d < 0)
|
if (a == 0 || d < 0)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (!calc_coordinates(values, idx, i0, a, b, c, d, f_flag, q_sol, ui, vi, wi))
|
if (!calc_coordinates(values, idx, i0, a, b, d, f_flag, q_sol, ui, vi, wi))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (!std::isfinite(CGAL::to_double(ui[0])) || !std::isfinite(CGAL::to_double(ui[1])))
|
if (!std::isfinite(CGAL::to_double(ui[0])) || !std::isfinite(CGAL::to_double(ui[1])))
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue