feat(rebar): add 3D coupler modeling for P1/P2 (368) and P4/P5 (35) with separate summary table rows
This commit is contained in:
1 parent
9900aa6d8e
commit
b35f5ff0ed
5 files changed
+70
-6
No files matched your search
@@ -27,7 +27,8 @@ describe('③ 철근표 요약 (P1)', () => {
|
||||
it('column: P1 230, P2 230, couplers 368, P3 38, P5 19, P4 8, P6 32', () => {
|
||||
expect(count('P1')).toBe(230);
|
||||
expect(count('P2')).toBe(230);
|
||||
expect(count('커플러')).toBe(368);
|
||||
expect(count('주철근 커플러')).toBe(368);
|
||||
expect(count('띠철근 커플러')).toBe(35);
|
||||
expect(count('P3')).toBe(38);
|
||||
expect(count('P5')).toBe(19);
|
||||
expect(count('P4')).toBe(8);
|
||||
|
||||
@@ -67,6 +67,11 @@ describe('3D 철근 모델 (③)', () => {
|
||||
expect(rb.byName.get('P6')!.length).toBe(8 * 4 * 3);
|
||||
});
|
||||
|
||||
it('couplers in 3D: main bar couplers (368) and tie couplers (35: P5 19 + P4 16)', () => {
|
||||
expect(rb.byName.get('주철근 커플러')!.length).toBe(368);
|
||||
expect(rb.byName.get('띠철근 커플러')!.length).toBe(35);
|
||||
});
|
||||
|
||||
it('highlight dims the other bars and keeps the chosen one', () => {
|
||||
rb.highlight('P3');
|
||||
const p3 = (rb.byName.get('P3')![0].material as THREE.MeshStandardMaterial).opacity;
|
||||
|
||||
Reference in new issue
Block a user