Fix issue that Geometry::deg2rad() do calculation in the same type as the parameter, which means if the parameter is int then you lose all the precision

This commit is contained in:
Noisyfox
2026-05-07 22:24:45 +08:00
parent 8b716d43e5
commit 83e9f17aa8
2 changed files with 6 additions and 2 deletions

View File

@@ -2399,7 +2399,7 @@ private:
return line.distance(p);
}
};
const double TriangleCursor::facet_angle_limit = cos(Geometry::deg2rad(5));
const double TriangleCursor::facet_angle_limit = cos(Geometry::deg2rad(5.0));
// Remap painting data from source mesh to target mesh using spatial mapping.