← Commit history

absolute camera framing from world extents (bundle frameModel mis-frames quantized bounds)

John Lauer ·19aca93710 ·3mo ago ·parent db637c4
3 files changed +20−8
package.json+1−1
@@ -2,7 +2,7 @@   "slug": "bq25792-charger",   "title": "BQ25792 Charger",   "type": "component",-  "version": "0.1.26",+  "version": "0.1.27",   "description": "BQ25792 Charger - buck-boost 1S-4S battery charger board by Adonis, with real 3D copper traces and measured stackup.",   "tags": [     "hardware"
page.json+10−3
@@ -4,9 +4,16 @@   "slug": "bq25792-charger",   "title": "BQ25792 Charger",   "brief": "Buck-boost 1S-4S battery charger board (TI BQ25792) with 14 Adom machine pins, by Adonis",-  "version": "0.1.26",+  "version": "0.1.27",   "tags": [-    "hardware"+    "adom",+    "adom-modular",+    "component",+    "charger",+    "battery",+    "bq25792",+    "power",+    "usb-c"   ],   "license": "proprietary",   "component": {@@ -49,7 +56,7 @@     "email": "[email protected]"   },   "visibility": "public",-  "description": "BQ25792 Charger - buck-boost 1S-4S battery charger board by Adonis, with real 3D copper traces and measured stackup.",+  "description": "BQ25792 Charger - a buck-boost 1S-4S battery charger board (Texas Instruments BQ25792) designed by Adonis in Fusion 360, with 14 Adom machine pins for the modular stack. Interactive colored 3D model, schematic and layout views.",   "dependencies": {},   "files": [     "README.md",
readme.html+9−4
@@ -252,12 +252,17 @@ exported bodies + design rules.</p>     // 7) frame generously for the exploded extents     setTimeout(function(){       try{+        const ext=sc.getWorldExtends();+        const c=new (B().Vector3)((ext.min.x+ext.max.x)/2,(ext.min.y+ext.max.y)/2,(ext.min.z+ext.max.z)/2);+        const dx=ext.max.x-ext.min.x, dy=ext.max.y-ext.min.y, dz=ext.max.z-ext.min.z;+        const diag=Math.sqrt(dx*dx+dy*dy+dz*dz);         const cam=sc.activeCamera;-        cam.radius=cam.radius*1.9;-        cam.beta=1.15;-        cam.minZ=cam.radius*0.01; cam.maxZ=cam.radius*300;+        cam.setTarget(c);+        cam.radius=diag*1.5; cam.beta=1.15; cam.alpha=-1.2;+        cam.minZ=diag*0.005; cam.maxZ=diag*300;+        if(typeof cam.wheelPrecision==="number") cam.wheelPrecision=3/diag;       }catch(e){}-    },300);+    },400);     set("animating");   }