cyclecad 0.1.3 → 0.1.4
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/CLAUDE.md +233 -0
- package/DUO-MANIFEST-README.md +233 -0
- package/MASTERPLAN.md +182 -0
- package/app/duo-manifest-demo.html +337 -0
- package/app/duo-manifest.json +7375 -0
- package/app/index.html +1167 -23
- package/app/js/app.js +79 -9
- package/app/js/assembly-resolver.js +477 -0
- package/app/js/operations.js +501 -112
- package/app/js/project-browser.js +741 -0
- package/app/js/project-loader.js +579 -0
- package/app/js/rebuild-guide.js +743 -0
- package/app/js/viewport.js +24 -0
- package/package.json +2 -2
package/app/js/viewport.js
CHANGED
|
@@ -492,6 +492,30 @@ export function toggleReferencePlanes(visible, plane = null) {
|
|
|
492
492
|
}
|
|
493
493
|
}
|
|
494
494
|
|
|
495
|
+
/**
|
|
496
|
+
* Toggle wireframe mode on all scene meshes
|
|
497
|
+
* @param {boolean} enabled - Enable/disable wireframe mode
|
|
498
|
+
*/
|
|
499
|
+
export function toggleWireframe(enabled) {
|
|
500
|
+
if (scene) {
|
|
501
|
+
scene.traverse((obj) => {
|
|
502
|
+
// Skip reference planes and grid
|
|
503
|
+
if (obj.userData && obj.userData.refPlane) return;
|
|
504
|
+
if (obj === gridHelper || obj === axisLines) return;
|
|
505
|
+
|
|
506
|
+
if (obj.material) {
|
|
507
|
+
if (Array.isArray(obj.material)) {
|
|
508
|
+
obj.material.forEach((m) => {
|
|
509
|
+
m.wireframe = enabled !== false;
|
|
510
|
+
});
|
|
511
|
+
} else {
|
|
512
|
+
obj.material.wireframe = enabled !== false;
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
});
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
|
|
495
519
|
// ============================================================================
|
|
496
520
|
// Accessors
|
|
497
521
|
// ============================================================================
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cyclecad",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "Browser-based parametric 3D CAD modeler with AI-powered tools, native Inventor file parsing, and smart assembly management. No install required.",
|
|
5
5
|
"main": "index.html",
|
|
6
6
|
"scripts": {
|
|
@@ -30,4 +30,4 @@
|
|
|
30
30
|
"bugs": {
|
|
31
31
|
"url": "https://github.com/vvlars-cmd/cyclecad/issues"
|
|
32
32
|
}
|
|
33
|
-
}
|
|
33
|
+
}
|