Revert "fix(rebar): warn when the pile spacing along a 열 is above the 2250 mm maximum"
This reverts commit d61e5d082f.
This commit is contained in:
1 parent
d61e5d082f
commit
304b350481
3 files changed
+3
-34
No files matched your search
+1
-6
@@ -50,17 +50,12 @@ export interface RowLayout {
|
||||
spacing: number;
|
||||
/** True when the spacing is below the minimum (warning, not refused). */
|
||||
belowMinimum: boolean;
|
||||
/** True when the spacing is above the maximum 2.25 m (warning: add piles). */
|
||||
aboveMaximum: boolean;
|
||||
}
|
||||
|
||||
/** Maximum centre spacing of the piles along a 열 (m), spec §4.6 (승인 2026-10-23: 2250 mm). */
|
||||
export const PILE_SPACING_MAX = 2.25;
|
||||
|
||||
export function rowLayout(counts: number[], g: PileGeometry): RowLayout[] {
|
||||
return counts.map((count) => {
|
||||
const spacing = (g.footingLength - 2 * g.end) / (count - 1);
|
||||
return { count, spacing, belowMinimum: spacing < g.minSpacing - 1e-9, aboveMaximum: spacing > PILE_SPACING_MAX + 1e-9 };
|
||||
return { count, spacing, belowMinimum: spacing < g.minSpacing - 1e-9 };
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user