🚀 Auto-deploy: BrainWind atualizado em 30/07/2026 11:01:30

This commit is contained in:
2026-07-30 11:01:30 +00:00
parent 8d5f70e94a
commit ff01f68941
2 changed files with 117 additions and 123 deletions
+4 -3
View File
@@ -7,6 +7,7 @@ interface ResizableBox3DProps {
l1: number;
l2: number;
h: number;
viewMode?: 'solid' | 'airflow';
}
function WindParticles({ l1, l2, h }: { l1: number, l2: number, h: number }) {
@@ -79,7 +80,7 @@ function WindParticles({ l1, l2, h }: { l1: number, l2: number, h: number }) {
);
}
export function ResizableBox3D({ l1, l2, h }: ResizableBox3DProps) {
export function ResizableBox3D({ l1, l2, h, viewMode = 'solid' }: ResizableBox3DProps) {
const meshRef = useRef<THREE.Mesh>(null);
// Create target scale and position based on inputs
@@ -109,12 +110,12 @@ export function ResizableBox3D({ l1, l2, h }: ResizableBox3DProps) {
{/* The Animated Box */}
<mesh ref={meshRef} castShadow receiveShadow>
<boxGeometry args={[1, 1, 1]} />
<meshStandardMaterial color="#4f46e5" transparent opacity={0.7} roughness={0.2} metalness={0.8} />
<meshStandardMaterial color="#4f46e5" transparent opacity={viewMode === 'airflow' ? 0.3 : 0.7} roughness={0.2} metalness={0.8} />
<Edges scale={1} threshold={15} color="#818cf8" />
</mesh>
{/* Wind Flow Animation */}
<WindParticles l1={l1} l2={l2} h={h} />
{viewMode === 'airflow' && <WindParticles l1={l1} l2={l2} h={h} />}
</group>
);
}