feat(battery): add welded R05 frame and correct CATL enclosure labels

This commit is contained in:
DCCONSTRUCTIONS
2026-11-04 17:14:56 +03:00
parent 42213001ba
commit c9d79456ef
6 changed files with 194 additions and 10 deletions
@@ -12,8 +12,8 @@ export function BatteryScene({editing,soc,fresh,deviceId,seedKey,cellVoltages=[]
const scene=useSceneDocument(deviceId,profile);
const [api,setApi]=useState<Parameters<NonNullable<PlayCanvasViewerProps['onSceneReady']>>[0]|null>(null);
const [phase,setPhase]=useState<'loading'|'ready'|'error'>('loading');
return <div className="bms-scene" data-editing={editing} aria-label="3D-модель батареи R04">
<SceneEditor scene={scene} defaults={defaultBatteryScene} editing={editing} modelUrl="/battery-scene/catl-r04.glb?objects-v5" minFitDistance={.6} chargeState={{soc,fresh}} onModelState={setPhase} onSceneReady={setApi}/>
return <div className="bms-scene" data-editing={editing} aria-label="3D-модель батареи R05">
<SceneEditor scene={scene} defaults={defaultBatteryScene} editing={editing} modelUrl="/battery-scene/catl-r04.glb?objects-v6-r05" minFitDistance={.6} chargeState={{soc,fresh}} onModelState={setPhase} onSceneReady={setApi}/>
<BatteryCellLabels api={api} ready={phase==='ready'} values={cellVoltages} appearance={markingAppearance}/>
{phase!=='ready'&&<div className="bms-scene-status"><Description role="status">{phase==='error'?'Модель не загрузилась. Показания BMS доступны ниже.':'Загружается модель аккумулятора…'}</Description></div>}
</div>;
@@ -431,6 +431,22 @@
"doubleSided": true,
"tiling": 1,
"textures": {}
},
"bms/FRAME | welded graphite steel": {
"name": "Рама · стальной уголок 20×20×2",
"color": "#42474b",
"metalness": 0.72,
"roughness": 0.38,
"opacity": 1,
"reflectivity": 1,
"clearCoat": 0,
"clearCoatRoughness": 0.3,
"emissive": "#000000",
"emissiveIntensity": 0,
"normalStrength": 1,
"doubleSided": true,
"tiling": 1,
"textures": {}
}
},
"objects": {
@@ -496,6 +512,18 @@
"bms/CASE | dielectric liner/right": true,
"bms/Connector / gold plated contacts": true,
"bms/XT90-S / anti spark green insert": true,
"bms/XT90-S / yellow PA housing": true
"bms/XT90-S / yellow PA housing": true,
"bms/FRAME | welded graphite steel/FRAME | bottom cross front": true,
"bms/FRAME | welded graphite steel/FRAME | bottom cross rear": true,
"bms/FRAME | welded graphite steel/FRAME | bottom longitudinal left": true,
"bms/FRAME | welded graphite steel/FRAME | bottom longitudinal right": true,
"bms/FRAME | welded graphite steel/FRAME | post front left": true,
"bms/FRAME | welded graphite steel/FRAME | post front right": true,
"bms/FRAME | welded graphite steel/FRAME | post rear left": true,
"bms/FRAME | welded graphite steel/FRAME | post rear right": true,
"bms/FRAME | welded graphite steel/FRAME | top cross front": true,
"bms/FRAME | welded graphite steel/FRAME | top cross rear": true,
"bms/FRAME | welded graphite steel/FRAME | top longitudinal left": true,
"bms/FRAME | welded graphite steel/FRAME | top longitudinal right": true
}
}