feat: upgrade cabinet materials to MeshPhysicalMaterial for realistic transparency and implement hierarchy-based name matching

This commit is contained in:
MartinSereyC committed 2026-03-16 16:32:26 -03:00
1 parent b9ff899a23
commit 26fdb2b675
8 files changed
+1252 -46

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
const fs = require('fs');
function findBarra(filePath) {
const buffer = fs.readFileSync(filePath);
const content = buffer.toString('utf8');
// Find all occurrences of names starting with "Bar" or "led"
const regex = /"name"\s*:\s*"([^"]*bar[^"]*)"/gi;
let match;
const results = new Set();
while ((match = regex.exec(content)) !== null) {
results.add(match[1]);
}
const regex2 = /"name"\s*:\s*"([^"]*led[^"]*)"/gi;
while ((match = regex2.exec(content)) !== null) {
results.add(match[1]);
}
console.log('Found names:', Array.from(results));
}
findBarra('Cabinet v2.5 con eje.glb');