Upload preprocess_manual.js
Browse files- preprocess_manual.js +2 -25
preprocess_manual.js
CHANGED
|
@@ -1249,31 +1249,8 @@ console.log('[preprocessManual] Bounding box:', {
|
|
| 1249 |
});
|
| 1250 |
|
| 1251 |
// β γγγγ°: γγγ§δΈεΏγγγγ¦γγε ΄εγ―η°εΈΈ
|
| 1252 |
-
if
|
| 1253 |
-
|
| 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;
|