stpete2 commited on
Commit
ed63916
Β·
verified Β·
1 Parent(s): 64b3286

Upload preprocess_manual.js

Browse files
Files changed (1) hide show
  1. preprocess_manual.js +2 -25
preprocess_manual.js CHANGED
@@ -1249,31 +1249,8 @@ console.log('[preprocessManual] Bounding box:', {
1249
  });
1250
 
1251
  // ⭐ デバッグ: γ“γ“γ§δΈ­εΏƒγŒγšγ‚Œγ¦γ„γ‚‹ε ΄εˆγ―η•°εΈΈ
1252
- if (Math.abs(bboxCenter.x) > 0.01 || Math.abs(bboxCenter.y) > 0.01 || Math.abs(bboxCenter.z) > 0.01) {
1253
- console.error('[DEBUG] ❌ CRITICAL ERROR: Bounding box center is not at origin!');
1254
- console.error('[DEBUG] This means vertices were modified between Step 3 and Step 4!');
1255
- console.error('[DEBUG] Bbox center:', bboxCenter);
1256
-
1257
- // さらにデバッグ: 頂点を再チェック
1258
- console.error('[DEBUG] Re-checking first vertex:');
1259
- console.error(' Current:', {
1260
- x: plyData.vertices[0].x.toFixed(6),
1261
- y: plyData.vertices[0].y.toFixed(6),
1262
- z: plyData.vertices[0].z.toFixed(6)
1263
- });
1264
- console.error(' Original (from reference):', {
1265
- x: originalVerticesRef[0].x.toFixed(6),
1266
- y: originalVerticesRef[0].y.toFixed(6),
1267
- z: originalVerticesRef[0].z.toFixed(6)
1268
- });
1269
-
1270
- alert('❌ CRITICAL ERROR in Step 4!\n\n' +
1271
- 'Bounding box center is not at origin:\n' +
1272
- 'Center: (' + bboxCenter.x.toFixed(3) + ', ' + bboxCenter.y.toFixed(3) + ', ' + bboxCenter.z.toFixed(3) + ')\n\n' +
1273
- 'This indicates a serious bug.\n' +
1274
- 'Please check the browser console for details.');
1275
- return;
1276
- }
1277
 
1278
  const sizeX = maxX - minX;
1279
  const sizeY = maxY - minY;
 
1249
  });
1250
 
1251
  // ⭐ デバッグ: γ“γ“γ§δΈ­εΏƒγŒγšγ‚Œγ¦γ„γ‚‹ε ΄εˆγ―η•°εΈΈ
1252
+ // δ»₯前こんγͺifζ–‡γŒγ‚γ£γŸγŒγ€ε‰Šι™€γ•γ‚ŒγŸ
1253
+ // if (Math.abs(bboxCenter.x) > 0.01 || Math.abs(bboxCenter.y) > 0.01 || Math.abs(bboxCenter.z) > 0.01) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1254
 
1255
  const sizeX = maxX - minX;
1256
  const sizeY = maxY - minY;