-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hotfix: earcut-rs utils3d API changes #286
Conversation
Walkthroughプロジェクト全体で、 Changes
TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review Status
Actionable comments generated: 1
Configuration used: CodeRabbit UI
Files selected for processing (5)
- nusamai-geometry/examples/citygml_polygons.rs (2 hunks)
- nusamai-gltf/examples/geometry_to_gltf.rs (2 hunks)
- nusamai/src/sink/cesiumtiles/mod.rs (2 hunks)
- nusamai/src/sink/gltf_poc/mod.rs (2 hunks)
- nusamai/src/sink/ply/mod.rs (2 hunks)
Additional comments: 7
nusamai/src/sink/ply/mod.rs (1)
- 139-139:
project3d_to_2d
関数の呼び出しに第3引数3
を追加した変更は、earcut-rs
ライブラリのAPI変更に対応するために必要です。この変更は適切に行われています。nusamai-geometry/examples/citygml_polygons.rs (1)
- 243-243:
project3d_to_2d
関数の呼び出しに第3引数3
を追加した変更は、earcut-rs
ライブラリのAPI変更に対応するために必要です。この変更は適切に行われています。nusamai/src/sink/cesiumtiles/mod.rs (2)
- 14-14:
project3d_to_2d
関数のインポート文を更新した変更は、モジュール構造の変更を反映しています。この変更は適切に行われています。- 270-270:
project3d_to_2d
関数の呼び出しに第3引数3
を追加した変更は、earcut-rs
ライブラリのAPI変更に対応するために必要です。この変更は適切に行われています。nusamai-gltf/examples/geometry_to_gltf.rs (2)
- 14-14: インポートパスの更新が正しく行われています。
earcut_rs::utils3d::project3d_to_2d
への変更は、earcut-rs
ライブラリのモジュール構造の変更に対応しており、適切な修正です。- 255-255:
project3d_to_2d
関数呼び出しに追加された引数3
は、関数の新しいシグネチャに準拠しています。この変更は、APIの更新に対応するために必要であり、適切に実装されています。nusamai/src/sink/gltf_poc/mod.rs (1)
- 9-9:
earcut_rs::utils3d::project3d_to_2d
へのインポートパスが更新されました。新しいモジュール構造に正しく対応していることを確認しました。
@@ -178,7 +178,7 @@ impl DataSink for GltfPocSink { | |||
buf3d.clear(); | |||
buf3d.extend(poly.coords()); | |||
|
|||
if project3d_to_2d(&buf3d, num_outer, &mut buf2d) { | |||
if project3d_to_2d(&buf3d, num_outer, 3, &mut buf2d) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
project3d_to_2d
関数呼び出しに追加された引数3
は、earcut-rs
ライブラリのAPI変更に対応するためのものです。この変更は、関数の新しいシグネチャに適合していますが、この追加引数の意味や目的についてのコメントがコード内にないため、将来のメンテナンス性が懸念されます。この引数が何を表しているのか、なぜ3
が選ばれたのかについての説明をコメントとして追加することをお勧めします。
Codecov ReportAll modified and coverable lines are covered by tests ✅ Additional details and impacted files
📢 Thoughts on this report? Let us know! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Summary by CodeRabbit
新機能
変更点