From 90a11c5e2d21743521eb61876b8a68b46b2a9fe0 Mon Sep 17 00:00:00 2001 From: cyber Date: Mon, 16 Nov 2026 08:52:37 -0400 Subject: [PATCH] feat(3d): integrate diagonal braces count into quote summary and whatsapp message --- src/components/FenceViewer3D.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/components/FenceViewer3D.tsx b/src/components/FenceViewer3D.tsx index 82ef774..ad374dd 100644 --- a/src/components/FenceViewer3D.tsx +++ b/src/components/FenceViewer3D.tsx @@ -145,6 +145,7 @@ export default function FenceViewer3D() { const wireLines = numericHeight >= 2.0 ? 4 : 3; const estimatedWireKg = Math.max(2, Math.ceil((currentLayout.meters * wireLines) / 35)); const estimatedTensioners = estimatedRolls * wireLines; + const estimatedBraces = layout === "canto_l" ? 4 : 2; // Refs de Three.js const sceneRef = useRef(null); @@ -601,7 +602,7 @@ export default function FenceViewer3D() { estimatedPosts: currentLayout.posts, estimatedWireKg, estimatedTensioners, - notes: `Simulação 3D no site: ${hasBarbedWire ? "Com 3 fios de arame farpado" : "Sem arame farpado"}${hasConcertina ? " + Concertina" : ""}.`, + notes: `Simulação 3D no site: ${hasBarbedWire ? "Com 3 fios de arame farpado" : "Sem arame farpado"}${hasConcertina ? " + Concertina" : ""}${showBraces ? ` + ${estimatedBraces} Escoras de concreto` : ""}.`, }); return ( @@ -962,6 +963,12 @@ export default function FenceViewer3D() { Mourões de Concreto/Aço: {currentLayout.posts} unidades + {showBraces && ( +
+ Escoras de Contraventamento: + {estimatedBraces} unidades +
+ )}
Arame Guia / Tensionador: ~{estimatedWireKg} kg