Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nokonoko1203 committed Oct 3, 2024
1 parent a14a119 commit b880aff
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions nusamai/src/sink/cesiumtiles/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -721,7 +721,6 @@ fn apply_downsample_factor(
pixel_per_distance: f64,
downsample_scale: f32,
) -> f32 {
// 全ての引数は小数点以下を無視する
let geometric_error = geometric_error.floor();
let pixel_per_distance = pixel_per_distance.floor();
let downsample_scale = downsample_scale.floor();

Check warning on line 726 in nusamai/src/sink/cesiumtiles/mod.rs

View check run for this annotation

Codecov / codecov/patch

nusamai/src/sink/cesiumtiles/mod.rs#L719-L726

Added lines #L719 - L726 were not covered by tests
Expand All @@ -737,9 +736,5 @@ fn apply_downsample_factor(
}
};
let result = f * downsample_scale;
println!(
"geometric_error: {}, pixel_per_distance: {}, downsample_scale: {}, result: {}",
geometric_error, pixel_per_distance, downsample_scale, result
);
result.clamp(0.0, 1.0)

Check warning on line 739 in nusamai/src/sink/cesiumtiles/mod.rs

View check run for this annotation

Codecov / codecov/patch

nusamai/src/sink/cesiumtiles/mod.rs#L738-L739

Added lines #L738 - L739 were not covered by tests
}

0 comments on commit b880aff

Please sign in to comment.