🚀 Auto-deploy: BrainWind atualizado em 30/07/2026 10:29:57
This commit is contained in:
@@ -1,6 +1,3 @@
|
||||
import React, { useRef } from 'react';
|
||||
import * as THREE from 'three';
|
||||
import { useFrame } from '@react-three/fiber';
|
||||
import { Text, Grid, Environment } from '@react-three/drei';
|
||||
import { WindArrow as GlobalWindArrow } from './WindArrow';
|
||||
import { ViewerOrbitControls as OrbitControls } from './ViewerOrbitControls';
|
||||
@@ -35,7 +32,7 @@ function ShelterModel({
|
||||
rightClosure,
|
||||
openingPos,
|
||||
backRange,
|
||||
windAngle = 0,
|
||||
windAngle: _windAngle = 0,
|
||||
viewMode,
|
||||
}: Shelter3DProps) {
|
||||
const isElevation = viewMode === 'elevation';
|
||||
@@ -135,15 +132,15 @@ function ShelterModel({
|
||||
{/* Seta de Vento Global (Sempre visível para não pular de posição) */}
|
||||
<group>
|
||||
<GlobalWindArrow
|
||||
target={[-halfW * 1.2, height * 1.5 - 1.5, -halfD - 5 + 2]}
|
||||
target={[0, height * 1.5 - 1.5, -halfD - 8 + 2]}
|
||||
direction={[0, 0, 1]}
|
||||
scale={4}
|
||||
scale={3.2}
|
||||
/>
|
||||
<Text
|
||||
position={[-halfW * 1.2, height * 1.5, -halfD - 5]}
|
||||
rotation={[0, Math.PI / 4, 0]}
|
||||
fontSize={1.2}
|
||||
color={isDark ? '#60a5fa' : '#3b82f6'}
|
||||
position={[0, height * 1.5, -halfD - 8]}
|
||||
rotation={[0, Math.PI, 0]}
|
||||
fontSize={0.96}
|
||||
color={isDark ? '#60a5fa' : '#2563eb'}
|
||||
anchorX="center"
|
||||
anchorY="bottom"
|
||||
>
|
||||
@@ -166,13 +163,13 @@ function ShelterModel({
|
||||
{/* Textos Informativos 3D - Virados para quem olha da frente (-Z) */}
|
||||
{!isAirflow && (
|
||||
<>
|
||||
<Text position={[0, height + slopeRise + 1.2, 0]} rotation={[0, Math.PI, 0]} fontSize={0.45} color="#e2e8f0">
|
||||
<Text position={[0, height + slopeRise + 1.4, 0]} rotation={[0, Math.PI, 0]} fontSize={0.45} color={isDark ? '#f8fafc' : '#0f172a'}>
|
||||
{isElevation ? 'CORTE A-A (Elevação)' : 'Abrigo / Pórtico (NBR 6123)'}
|
||||
</Text>
|
||||
<Text position={[0, height + slopeRise + 0.5, 0]} rotation={[0, Math.PI, 0]} fontSize={0.32} color="#f43f5e">
|
||||
<Text position={[0, height + slopeRise + 0.6, 0]} rotation={[0, Math.PI, 0]} fontSize={0.51} color={isDark ? '#ff4d6d' : '#b91c1c'}>
|
||||
Arrancamento [+Fz ↑]
|
||||
</Text>
|
||||
<Text position={[0, height * 0.5, halfD + 1.2]} rotation={[0, Math.PI, 0]} fontSize={0.32} color="#fb923c">
|
||||
<Text position={[0, height * 0.5, halfD + 1.2]} rotation={[0, Math.PI, 0]} fontSize={0.51} color={isDark ? '#ff9f43' : '#c2410c'}>
|
||||
Empuxo no Fundo [+Fx →]
|
||||
</Text>
|
||||
</>
|
||||
|
||||
Reference in New Issue
Block a user