Upload preprocess_manual.js
Browse files- preprocess_manual.js +1 -31
preprocess_manual.js
CHANGED
|
@@ -1275,34 +1275,7 @@ console.log('[preprocessManual] ===== AUTO-ALIGNMENT COMPLETE =====');
|
|
| 1275 |
|
| 1276 |
// デバッグ版: PLY中心化(Line 1107-1330を置き換え)
|
| 1277 |
// ⭐ より厳密な検証(1mm以内)
|
| 1278 |
-
|
| 1279 |
-
if (Math.abs(finalCenter.x) > tolerance ||
|
| 1280 |
-
Math.abs(finalCenter.y) > tolerance ||
|
| 1281 |
-
Math.abs(finalCenter.z) > tolerance) {
|
| 1282 |
-
console.error('[preprocessManual] ❌ ERROR: Final center is not at origin!');
|
| 1283 |
-
console.error('[preprocessManual] Expected: (0, 0, 0)');
|
| 1284 |
-
console.error('[preprocessManual] Got:', {
|
| 1285 |
-
x: finalCenter.x.toFixed(6),
|
| 1286 |
-
y: finalCenter.y.toFixed(6),
|
| 1287 |
-
z: finalCenter.z.toFixed(6)
|
| 1288 |
-
});
|
| 1289 |
-
console.error('[preprocessManual] Tolerance:', tolerance, 'm');
|
| 1290 |
-
|
| 1291 |
-
alert('❌ PLY Alignment Error!\n\n' +
|
| 1292 |
-
'Final center is not at origin:\n' +
|
| 1293 |
-
'X: ' + finalCenter.x.toFixed(6) + ' m\n' +
|
| 1294 |
-
'Y: ' + finalCenter.y.toFixed(6) + ' m\n' +
|
| 1295 |
-
'Z: ' + finalCenter.z.toFixed(6) + ' m\n\n' +
|
| 1296 |
-
'Expected: < ' + (tolerance * 1000) + ' mm\n\n' +
|
| 1297 |
-
'Please check the browser console and report this issue.');
|
| 1298 |
-
return;
|
| 1299 |
-
}
|
| 1300 |
-
|
| 1301 |
-
console.log('[preprocessManual] ✓ Final verification PASSED');
|
| 1302 |
-
console.log('[preprocessManual] ✓ PLY is properly centered and aligned');
|
| 1303 |
-
console.log('[preprocessManual] Center deviation: ' +
|
| 1304 |
-
Math.max(Math.abs(finalCenter.x), Math.abs(finalCenter.y), Math.abs(finalCenter.z)).toFixed(6) +
|
| 1305 |
-
' m (< ' + tolerance + ' m tolerance)');
|
| 1306 |
|
| 1307 |
|
| 1308 |
//preprocess_manual.js の Line 1100-1290付近
|
|
@@ -1312,9 +1285,6 @@ window.plyAlignmentMatrix = rotationNeeded.clone();
|
|
| 1312 |
|
| 1313 |
|
| 1314 |
|
| 1315 |
-
////////////////////////1095-1290
|
| 1316 |
-
|
| 1317 |
-
|
| 1318 |
// ========================================
|
| 1319 |
// Calculate Bounding Box from PLY data
|
| 1320 |
// ========================================
|
|
|
|
| 1275 |
|
| 1276 |
// デバッグ版: PLY中心化(Line 1107-1330を置き換え)
|
| 1277 |
// ⭐ より厳密な検証(1mm以内)
|
| 1278 |
+
// 削除された
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1279 |
|
| 1280 |
|
| 1281 |
//preprocess_manual.js の Line 1100-1290付近
|
|
|
|
| 1285 |
|
| 1286 |
|
| 1287 |
|
|
|
|
|
|
|
|
|
|
| 1288 |
// ========================================
|
| 1289 |
// Calculate Bounding Box from PLY data
|
| 1290 |
// ========================================
|