fix: Explicit Pi
Some checks failed
CMake / build (zip, zip, [self-hosted Linux], normals, obj, quad_subdivision, ux) (push) Has been cancelled
CMake / build (zip, zip, [self-hosted Windows], Release/normals.exe, Release/obj.exe, Release/quad_subdivision.exe, win) (push) Has been cancelled

This commit is contained in:
Tibo De Peuter 2024-11-12 18:58:56 +01:00
parent 2c6f46bc78
commit d2dc1bf17f
Signed by: tdpeuter
GPG key ID: 38297DE43F75FFE2

View file

@ -15,7 +15,7 @@ void per_corner_normals(
vertex_triangle_adjacency(F, static_cast<int>(V.rows()), VF); vertex_triangle_adjacency(F, static_cast<int>(V.rows()), VF);
double cos_threshold = std::cos(corner_threshold * M_PI / 180.0); double cos_threshold = std::cos(corner_threshold * 3.14159265358979323846 / 180.0);
/* Compute the area-weighted average of normals of faces with normals that deviate less than threshold. */ /* Compute the area-weighted average of normals of faces with normals that deviate less than threshold. */
for (int i = 0; i < F.rows(); i++) { /* For each face */ for (int i = 0; i < F.rows(); i++) { /* For each face */