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.
@@ -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",
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
+ }