🚀 Auto-deploy: BrainWind atualizado em 01/09/2026 14:27:19
This commit is contained in:
@@ -17,6 +17,7 @@ export interface Shelter3DProps {
|
||||
rightClosure: number;
|
||||
openingPos: OpeningPosition;
|
||||
backRange?: [number, number];
|
||||
numColumns?: number;
|
||||
windAngle?: ShelterWindAngle;
|
||||
viewMode: '3d' | 'elevation' | 'airflow';
|
||||
}
|
||||
@@ -32,6 +33,7 @@ function ShelterModel({
|
||||
rightClosure,
|
||||
openingPos,
|
||||
backRange,
|
||||
numColumns = 2,
|
||||
windAngle: _windAngle = 0,
|
||||
viewMode,
|
||||
}: Shelter3DProps) {
|
||||
@@ -91,10 +93,17 @@ function ShelterModel({
|
||||
);
|
||||
};
|
||||
|
||||
const overhang = 0.6;
|
||||
const spanWidth = Math.max(0.1, width - 2 * overhang);
|
||||
const spacing = spanWidth / Math.max(1, numColumns - 1);
|
||||
const columnPositions = Array.from({ length: numColumns }).map(
|
||||
(_, i) => -halfW + overhang + i * spacing
|
||||
);
|
||||
|
||||
return (
|
||||
<group position={[0, -height / 2, 0]}>
|
||||
{/* 1. Estrutura Metálica Principal (Pilares e Vigas em Balanço - Tubos Quadrados) */}
|
||||
{[-halfW + 0.6, halfW - 0.6].map((xPos, idx) => (
|
||||
{columnPositions.map((xPos, idx) => (
|
||||
<group key={`frame-${idx}`} position={[xPos, 0, 0]}>
|
||||
{/* Pilar traseiro (lado direito na elevação) */}
|
||||
<mesh position={[0, height / 2, halfD - 0.25]}>
|
||||
|
||||
Reference in New Issue
Block a user