feat(view): turn the bearing blocks, pads and block rebar to the bearing row (삽도)
Each block takes the skew of its bearing row against the perpendicular of its stretch axis (rowSkewDeg, from the bearing azimuth). The blocks and pads are turned to that skew, and the S1/S2 bars are drawn in the block frame and turned with it, so their lengths and embedments do not change. ② shows the row skew (P1: front −4.42°, back −3.11°). Approved 2026-10-23 with the drawing as reference. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e8541b29cb
commit
61260413c6
5 files changed
+89
-10
No files matched your search
@@ -125,11 +125,15 @@ export function buildPierScene(m: PierModel): PierScene {
|
||||
}
|
||||
|
||||
for (const b of m.blocks) {
|
||||
// Turn the block so its sides follow the bearing row (rowSkewDeg); the 3D turn is rotateY(−skew).
|
||||
const turn = (-b.rowSkewDeg * Math.PI) / 180;
|
||||
const h = b.top - b.bottom;
|
||||
const g = new THREE.BoxGeometry(1.2, h, 1.2);
|
||||
g.rotateY(turn);
|
||||
g.translate(b.s, b.bottom + h / 2, b.n);
|
||||
add('blocks', g, 1, b.k);
|
||||
const pad = new THREE.BoxGeometry(1.0, 0.05, 1.0);
|
||||
pad.rotateY(turn);
|
||||
pad.translate(b.s, b.padTop - 0.025, b.n);
|
||||
add('pads', pad, 1, b.k);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user