mirror of https://github.com/CGAL/cgal
Fix Inscribed_area
This commit is contained in:
parent
13a77a74b0
commit
a879cb040a
|
|
@ -168,6 +168,18 @@ struct Extremal_polygon_perimeter_traits_2 {
|
||||||
|
|
||||||
Kgon_triangle_perimeter(const K& k_): k(k_) {}
|
Kgon_triangle_perimeter(const K& k_): k(k_) {}
|
||||||
|
|
||||||
|
// Added as workaround for VC2017 with /arch:AVX to fix
|
||||||
|
// https://cgal.geometryfactory.com/CGAL/testsuite/CGAL-4.14-I-95/Inscribed_areas_Examples/TestReport_afabri_x64_Cygwin-Windows10_MSVC2017-Release-64bits.gz
|
||||||
|
Kgon_triangle_perimeter(const Kgon_triangle_perimeter& other)
|
||||||
|
: k(other.k)
|
||||||
|
{}
|
||||||
|
|
||||||
|
Kgon_triangle_perimeter& operator=(const Kgon_triangle_perimeter& other)
|
||||||
|
{
|
||||||
|
k = other.k;
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
|
|
||||||
result_type
|
result_type
|
||||||
operator()(const Point_2& p, const Point_2& q, const Point_2& r) const
|
operator()(const Point_2& p, const Point_2& q, const Point_2& r) const
|
||||||
{ return dist(p, r) + dist(p, q) - dist(q, r); }
|
{ return dist(p, r) + dist(p, q) - dist(q, r); }
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue