feat(3d): integrate diagonal braces count into quote summary and whatsapp message
This commit is contained in:
1 parent
18082438fa
commit
90a11c5e2d
1 file changed
+8
-1
@@ -145,6 +145,7 @@ export default function FenceViewer3D() {
|
|||||||
const wireLines = numericHeight >= 2.0 ? 4 : 3;
|
const wireLines = numericHeight >= 2.0 ? 4 : 3;
|
||||||
const estimatedWireKg = Math.max(2, Math.ceil((currentLayout.meters * wireLines) / 35));
|
const estimatedWireKg = Math.max(2, Math.ceil((currentLayout.meters * wireLines) / 35));
|
||||||
const estimatedTensioners = estimatedRolls * wireLines;
|
const estimatedTensioners = estimatedRolls * wireLines;
|
||||||
|
const estimatedBraces = layout === "canto_l" ? 4 : 2;
|
||||||
|
|
||||||
// Refs de Three.js
|
// Refs de Three.js
|
||||||
const sceneRef = useRef<THREE.Scene | null>(null);
|
const sceneRef = useRef<THREE.Scene | null>(null);
|
||||||
@@ -601,7 +602,7 @@ export default function FenceViewer3D() {
|
|||||||
estimatedPosts: currentLayout.posts,
|
estimatedPosts: currentLayout.posts,
|
||||||
estimatedWireKg,
|
estimatedWireKg,
|
||||||
estimatedTensioners,
|
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 (
|
return (
|
||||||
@@ -962,6 +963,12 @@ export default function FenceViewer3D() {
|
|||||||
<span>Mourões de Concreto/Aço:</span>
|
<span>Mourões de Concreto/Aço:</span>
|
||||||
<strong className="text-[#a3c745]">{currentLayout.posts} unidades</strong>
|
<strong className="text-[#a3c745]">{currentLayout.posts} unidades</strong>
|
||||||
</div>
|
</div>
|
||||||
|
{showBraces && (
|
||||||
|
<div className="flex justify-between text-zinc-400">
|
||||||
|
<span>Escoras de Contraventamento:</span>
|
||||||
|
<strong className="text-[#a3c745]">{estimatedBraces} unidades</strong>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
<div className="flex justify-between text-zinc-400">
|
<div className="flex justify-between text-zinc-400">
|
||||||
<span>Arame Guia / Tensionador:</span>
|
<span>Arame Guia / Tensionador:</span>
|
||||||
<strong className="text-white">~{estimatedWireKg} kg</strong>
|
<strong className="text-white">~{estimatedWireKg} kg</strong>
|
||||||
|
|||||||
Reference in new issue
Block a user