1
0

feat: add new rule for BMapInspector

This commit is contained in:
2026-02-04 22:51:13 +08:00
parent 2240f55964
commit 11abbe2c35
7 changed files with 184 additions and 1 deletions

View File

@@ -29,6 +29,13 @@ namespace BMapInspector::Rule {
for (auto* physicalized_3dobject : physicalized_3dobjects) {
// Get its world matrix
const auto& matrix = physicalized_3dobject->GetWorldMatrix();
// YYC MARK:
// Following method is the bad way to check scale factor,
// because it rely on some premise.
// But it is simple, especially we do not have fully implement VxMatrix,
// or have any linear algebra library.
// Extract 3 columns
V::VxVector3 col1(matrix[0][0], matrix[1][0], matrix[2][0]);
V::VxVector3 col2(matrix[0][1], matrix[1][1], matrix[2][1]);