cyclecad 3.6.0 → 3.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/index.html +48 -0
- package/app/js/modules/generative-design.js +949 -0
- package/app/js/modules/multi-physics.js +1244 -0
- package/app/js/modules/smart-parts.js +1755 -0
- package/app/tests/KILLER_FEATURES_BATCH2_README.md +214 -0
- package/app/tests/killer-features-batch2-tests.html +849 -0
- package/package.json +1 -1
package/app/index.html
CHANGED
|
@@ -969,6 +969,9 @@
|
|
|
969
969
|
<button class="menu-item-link" data-action="tools-text-to-cad">Text-to-CAD (AI)</button>
|
|
970
970
|
<button class="menu-item-link" data-action="tools-photo-to-cad">Photo-to-CAD</button>
|
|
971
971
|
<button class="menu-item-link" data-action="tools-dfm">Manufacturability Check</button>
|
|
972
|
+
<button class="menu-item-link" data-action="tools-generative">Generative Design</button>
|
|
973
|
+
<button class="menu-item-link" data-action="tools-physics">Multi-Physics Simulation</button>
|
|
974
|
+
<button class="menu-item-link" data-action="tools-parts">Smart Parts Library</button>
|
|
972
975
|
<div class="menu-separator"></div>
|
|
973
976
|
<button class="menu-item-link" data-action="tools-settings">Settings...</button>
|
|
974
977
|
</div>
|
|
@@ -1374,6 +1377,9 @@
|
|
|
1374
1377
|
<script src="js/modules/text-to-cad.js"></script>
|
|
1375
1378
|
<script src="js/modules/photo-to-cad.js"></script>
|
|
1376
1379
|
<script src="js/modules/manufacturability.js"></script>
|
|
1380
|
+
<script src="js/modules/generative-design.js"></script>
|
|
1381
|
+
<script src="js/modules/multi-physics.js"></script>
|
|
1382
|
+
<script src="js/modules/smart-parts.js"></script>
|
|
1377
1383
|
|
|
1378
1384
|
<script type="module">
|
|
1379
1385
|
// ===== Three.js Imports =====
|
|
@@ -1566,6 +1572,30 @@
|
|
|
1566
1572
|
if (dlg3) { dlg3.innerHTML = ''; dlg3.appendChild(dfmPanel); dlg3.style.maxHeight = '500px'; dlg3.style.overflow = 'auto'; }
|
|
1567
1573
|
}
|
|
1568
1574
|
break;
|
|
1575
|
+
case 'tools-generative':
|
|
1576
|
+
if (window.CycleCAD && window.CycleCAD.GenerativeDesign) {
|
|
1577
|
+
const genPanel = window.CycleCAD.GenerativeDesign.getUI();
|
|
1578
|
+
showDialog('Generative Design', '');
|
|
1579
|
+
const dlg4 = document.querySelector('.dialog-content');
|
|
1580
|
+
if (dlg4) { dlg4.innerHTML = ''; dlg4.appendChild(genPanel); dlg4.style.maxHeight = '500px'; dlg4.style.overflow = 'auto'; }
|
|
1581
|
+
}
|
|
1582
|
+
break;
|
|
1583
|
+
case 'tools-physics':
|
|
1584
|
+
if (window.CycleCAD && window.CycleCAD.MultiPhysics) {
|
|
1585
|
+
const physPanel = window.CycleCAD.MultiPhysics.getUI();
|
|
1586
|
+
showDialog('Multi-Physics Simulation', '');
|
|
1587
|
+
const dlg5 = document.querySelector('.dialog-content');
|
|
1588
|
+
if (dlg5) { dlg5.innerHTML = ''; dlg5.appendChild(physPanel); dlg5.style.maxHeight = '500px'; dlg5.style.overflow = 'auto'; }
|
|
1589
|
+
}
|
|
1590
|
+
break;
|
|
1591
|
+
case 'tools-parts':
|
|
1592
|
+
if (window.CycleCAD && window.CycleCAD.SmartParts) {
|
|
1593
|
+
const partsPanel = window.CycleCAD.SmartParts.getUI();
|
|
1594
|
+
showDialog('Smart Parts Library', '');
|
|
1595
|
+
const dlg6 = document.querySelector('.dialog-content');
|
|
1596
|
+
if (dlg6) { dlg6.innerHTML = ''; dlg6.appendChild(partsPanel); dlg6.style.maxHeight = '500px'; dlg6.style.overflow = 'auto'; }
|
|
1597
|
+
}
|
|
1598
|
+
break;
|
|
1569
1599
|
default:
|
|
1570
1600
|
showToast(`${action}`, 'success');
|
|
1571
1601
|
}
|
|
@@ -1889,6 +1919,24 @@
|
|
|
1889
1919
|
window.CycleCAD.Manufacturability.init(scene);
|
|
1890
1920
|
console.log('[cycleCAD] Manufacturability (DFM) module initialized');
|
|
1891
1921
|
}
|
|
1922
|
+
|
|
1923
|
+
// Initialize Generative Design module
|
|
1924
|
+
if (window.CycleCAD && window.CycleCAD.GenerativeDesign) {
|
|
1925
|
+
window.CycleCAD.GenerativeDesign.init(scene);
|
|
1926
|
+
console.log('[cycleCAD] Generative Design module initialized');
|
|
1927
|
+
}
|
|
1928
|
+
|
|
1929
|
+
// Initialize Multi-Physics module
|
|
1930
|
+
if (window.CycleCAD && window.CycleCAD.MultiPhysics) {
|
|
1931
|
+
window.CycleCAD.MultiPhysics.init(scene);
|
|
1932
|
+
console.log('[cycleCAD] Multi-Physics simulation module initialized');
|
|
1933
|
+
}
|
|
1934
|
+
|
|
1935
|
+
// Initialize Smart Parts Library
|
|
1936
|
+
if (window.CycleCAD && window.CycleCAD.SmartParts) {
|
|
1937
|
+
window.CycleCAD.SmartParts.init(scene);
|
|
1938
|
+
console.log('[cycleCAD] Smart Parts Library initialized');
|
|
1939
|
+
}
|
|
1892
1940
|
}
|
|
1893
1941
|
|
|
1894
1942
|
// ===== Export Global Functions =====
|