Skip to content

Bad result from compute_squared_radius_d_object on Windows Azure CI #9285

@VincentRouvreau

Description

@VincentRouvreau

Issue Details

I did have wrong result on my CI (on a windows machine in Azure CI).
After investigation, I realized that the problem was coming from compute_squared_radius_d_object, when computing squared radius from 4 points in dimension 4 (CGAL::Epeck_d< CGAL::Dimension_tag<4> >).

The strange part of the bug is that I tried to reproduce it on a windows VM of mine, with the exact same version of dependencies (cf. Environment section), and I do not have the same result. The only thing that differs is the compiler, I do have MSVC/14.38.33130 on my windows VM.

Source Code

#include <CGAL/Epeck_d.h>

#include <vector>
#include <iostream>

// Use static dimension_tag for the user not to be able to set dimension
typedef CGAL::Epeck_d< CGAL::Dimension_tag<4> > Kernel_4;
typedef Kernel_4::Point_d Point_4;
typedef std::vector<Point_4> Vector_4_Points;

int main() {
  // ----------------------------------------------------------------------------
  // Init of a list of points
  // ----------------------------------------------------------------------------
  Vector_4_Points points;
  std::vector<double> coords = { 0.0, 0.0, 0.0, 1.0 };
  points.push_back(Point_4(coords.begin(), coords.end()));
  coords = { 0.0, 0.0, 1.0, 0.0 };
  points.push_back(Point_4(coords.begin(), coords.end()));
  coords = { 0.0, 1.0, 0.0, 0.0 };
  points.push_back(Point_4(coords.begin(), coords.end()));
  coords = { 1.0, 0.0, 0.0, 0.0 };
  points.push_back(Point_4(coords.begin(), coords.end()));

  Kernel_4 k;
  auto f = k.compute_squared_radius_d_object()(points.begin(), points.end());
  
  std::clog << "compute_squared_radius_d_object = " << f << "\n";
}

This code outputs 0.75, except on Azure CI (coming from this PR). Maybe the result is not available for people outside of the project, but I do have:

15: Test command: D:\a\1\s\build\src\Alpha_complex\test\triangulation.exe "--color_output" "--report_level=detailed"
15: Working Directory: D:/a/1/s/build/src/Alpha_complex/test
15: Test timeout computed to be: 10000000
15: compute_squared_radius_d_object = 0

Environment

  • Operating system (Windows/Mac/Linux, 32/64 bits):
  • Compiler: MSVC 19.44.35222.0
  • Release or debug mode: Release
  • Specific flags used (if any): /DWIN32 /D_WINDOWS /GR /EHsc /W3 /O2 /Ob2 /DNDEBUG
  • CGAL version: 6.1
  • Boost version: 1.90.0
  • Other libraries versions if used (Eigen, TBB, etc.):
    • Eigen 5.0.1
    • TBB 2022.3.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions