Skip to content

Commit

Permalink
Merge pull request #7726 from Kuprin2000/extrude_skeleton_fix
Browse files Browse the repository at this point in the history
Added type cast to preprocess_weights() to avoid compilation error
  • Loading branch information
lrineau committed Oct 16, 2023
2 parents 3ec0c7e + 672a0d0 commit 993d87a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -955,7 +955,7 @@ preprocess_weights(WeightRange& weights)
// Since the max value might not be very close to 90°, take the max between of the large-% weight
// and the weight corresponding to an angle of 89.9999999°
const FT weight_of_89d9999999 = 572957787.3425436; // tan(89.9999999°)
const FT scaled_max = (std::max)(weight_of_89d9999999, 1e3 * max_value);
const FT scaled_max = (std::max)(weight_of_89d9999999, FT(1e3) * max_value);

for(auto& contour_weights : weights)
{
Expand Down

0 comments on commit 993d87a

Please sign in to comment.