A120 — `SHAPE_REPRESENTATION_RELATIONSHIP_WITH_TRANSFORMATION` where only ONE of Origin/Target belongs to its expected representation

§12.6 assembly (sub-class: SRRWT axis-placement membership check, half-resolved subvariant)

P2 — spec deviation (no data loss)

assembly

Sources

Sender

deduced — OCCT uncovered-class sweep

Description

A007 demonstrates the FULLY-repairable case: both Origin and Target axis placements are found cross-referenced (Origin sits in Target's representation's item list, Target sits in Origin's), so `ComputeTransformation` transparently swaps them and computes a repaired transform. This fixture is the narrower, distinct half-resolved case: Origin (`Ax1`) genuinely belongs to its OWN representation's item list (`isOKOrigin=True`), but Target (`Ax2`) belongs to NEITHER representation's item list — a completely foreign placement (`isOKTarget=False`, and neither `isSwapOrigin` nor `isSwapTarget` is True since Ax1/Ax2 never cross-appear). The membership check cannot determine a consistent swap, so OCCT falls through to the unrepairable `"Axis placement used by SRRWT does not belong to corresponding representation"` branch and silently computes a transform from the inconsistent org/trg pair anyway, rather than rejecting the file.

Reproducer recipe

`ITEM_DEFINED_TRANSFORMATION('','',#Ax1,#Ax2)` inside a `SHAPE_REPRESENTATION_RELATIONSHIP_WITH_TRANSFORMATION('srrwt','',#rep1,#rep2,#idt)` where `#Ax1` is listed in `#rep1.items` but `#Ax2` is listed in neither `#rep1.items` nor `#rep2.items`, wrapped via `NEXT_ASSEMBLY_USAGE_OCCURRENCE` + `CONTEXT_DEPENDENT_SHAPE_REPRESENTATION` (same NAUO/CDSR wiring as A118).

Expected kernel behavior

reject the SRRWT as malformed (an axis placement that belongs to neither declared representation cannot be trusted to compute a correct transform), or clearly flag the resulting transform as unreliable rather than silently using it.

Notes

Structure note: Origin/Target are wired through DEDICATED placement-only representations (`parent_placement_rep`/`child_placement_rep`), mirroring A007's own `asm_rep`/`cmp_rep` split, rather than the parts' real geometry-bearing representations — mixing a bare `AXIS2_PLACEMENT_3D` item into a geometry-bearing `SHAPE_REPRESENTATION`'s item list was independently tested and found to break the Parent-PD root's own normal shape transfer; A007's established split avoids that. The parts' REAL geometry (Parent's 1×1 face, Child's 5×5 face) each transfer via their own normal, independent product chain, exactly like A007. Live-verified (2026-07-12, OCP 7.8.1, direct probing — not mirrored/guessed): `shape_null=False`, `n_faces_total=1` (Parent's own face, bbox `[0,1]×[0,1]` at the origin, confirmed un-transformed via its own SDR chain). Since the placement-only representations carry no geometry (`Recognize()` does not accept a bare `AXIS2_PLACEMENT_3D` item), `TransferEntity(CDSR)`'s own contribution resolves to a null/empty shape and is silently absent from the compound — the SRRWT/NAUO/CDSR defect bytes are present, well-formed, and structurally correct (the same epistemic status as A007's own already-shipped SRRWT fixture, which has the identical placement-only-representation limitation); the specific membership-check outcome is confirmed via source-level mechanism analysis rather than an observable shape-count difference. Provenance tier: bytes-sufficient. **See also**: A007 (fully-swapped, repairable sibling), A118 (CDSR/NAUO wiring precedent). Synonyms: "SRRWT axis placement does not belong", "half-swapped SRRWT", "unrepairable axis-placement mismatch", "ComputeTransformation membership check fails one side".

Expected validation

occt=shape(1)/shape(1) gmsh=shape(9) ifc=schema_n/a

Byte assertions

Tier-3 assertions

Cross-references

A007, A118

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* A120: SRRWT where only ONE of Origin/Target belongs to its expected representation */
3/* DEFECT: Origin(Ax1) IS in Parent's items; Target(Ax2) is in NEITHER rep's items -- */
4/* the unrepairable 'does not belong' branch (A007 is the FULLY-swapped, repairable case) */
5HEADER;
6FILE_DESCRIPTION(('A120: SRRWT half-swap, only Origin resolves to its own representation'),'2;1');
7FILE_NAME('A120.stp','2026-07-12T00:00:00',(''),(''),'cad-research-suite','','');
8FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }'));
9ENDSEC;
10DATA;
11#100=APPLICATION_CONTEXT('mechanical design');
12#101=(GEOMETRIC_REPRESENTATION_CONTEXT(3)REPRESENTATION_CONTEXT('','3D'));
13/* ---- Parent product: 1x1 marker face at the origin ---- */
14#1=CARTESIAN_POINT('',(0.0,0.0,0.0));
15#2=DIRECTION('',(0.0,0.0,1.0));
16#3=DIRECTION('',(1.0,0.0,0.0));
17#4=AXIS2_PLACEMENT_3D('',#1,#2,#3);
18#5=PLANE('',#4);
19#6=CARTESIAN_POINT('',(0.0,0.0,0.0));
20#7=CARTESIAN_POINT('',(1.0,0.0,0.0));
21#8=CARTESIAN_POINT('',(1.0,1.0,0.0));
22#9=CARTESIAN_POINT('',(0.0,1.0,0.0));
23#10=VERTEX_POINT('',#6);
24#11=VERTEX_POINT('',#7);
25#12=VERTEX_POINT('',#8);
26#13=VERTEX_POINT('',#9);
27#14=DIRECTION('',(1.0,0.0,0.0));
28#15=VECTOR('',#14,1.0);
29#16=LINE('',#6,#15);
30#17=EDGE_CURVE('',#10,#11,#16,.T.);
31#18=DIRECTION('',(0.0,1.0,0.0));
32#19=VECTOR('',#18,1.0);
33#20=LINE('',#7,#19);
34#21=EDGE_CURVE('',#11,#12,#20,.T.);
35#22=DIRECTION('',(-1.0,0.0,0.0));
36#23=VECTOR('',#22,1.0);
37#24=LINE('',#8,#23);
38#25=EDGE_CURVE('',#12,#13,#24,.T.);
39#26=DIRECTION('',(0.0,-1.0,0.0));
40#27=VECTOR('',#26,1.0);
41#28=LINE('',#9,#27);
42#29=EDGE_CURVE('',#13,#10,#28,.T.);
43#30=ORIENTED_EDGE('',$,$,#17,.T.);
44#31=ORIENTED_EDGE('',$,$,#21,.T.);
45#32=ORIENTED_EDGE('',$,$,#25,.T.);
46#33=ORIENTED_EDGE('',$,$,#29,.T.);
47#34=EDGE_LOOP('',(#30,#31,#32,#33));
48#35=FACE_OUTER_BOUND('',#34,.T.);
49#36=ADVANCED_FACE('',(#35),#5,.T.);
50#37=OPEN_SHELL('',(#36));
51#38=SHELL_BASED_SURFACE_MODEL('',(#37));
52#40=SHAPE_REPRESENTATION('parent_rep',(#38),#101);
53#41=PRODUCT_CONTEXT('',#100,'mechanical');
54#42=PRODUCT('Parent','Parent','',(#41));
55#43=PRODUCT_DEFINITION_FORMATION('','',#42);
56#44=PRODUCT_DEFINITION_CONTEXT('part definition',#100,'design');
57#45=PRODUCT_DEFINITION('','',#43,#44);
58#46=PRODUCT_DEFINITION_SHAPE('','',#45);
59#47=SHAPE_DEFINITION_REPRESENTATION(#46,#40);
60/* DEFECT setup: a SEPARATE placement-only representation for the assembly relationship -- */
61/* Ax1 (Origin) IS included in ITS items, so isOKOrigin=True for the SRRWT membership check */
62#39=CARTESIAN_POINT('ax1_origin',(0.0,0.0,0.0));
63#60=AXIS2_PLACEMENT_3D('Ax1_Origin',#39,#2,#3);
64#48=SHAPE_REPRESENTATION('parent_placement_rep',(#60),#101);
65/* ---- Child product: 5x5 marker face at (100,0,0) ---- */
66#50=CARTESIAN_POINT('',(100.0,0.0,0.0));
67#51=AXIS2_PLACEMENT_3D('',#50,#2,#3);
68#52=PLANE('',#51);
69#53=CARTESIAN_POINT('',(100.0,0.0,0.0));
70#54=CARTESIAN_POINT('',(105.0,0.0,0.0));
71#55=CARTESIAN_POINT('',(105.0,5.0,0.0));
72#56=CARTESIAN_POINT('',(100.0,5.0,0.0));
73#57=VERTEX_POINT('',#53);
74#58=VERTEX_POINT('',#54);
75#59=VERTEX_POINT('',#55);
76#61=VERTEX_POINT('',#56);
77#62=VECTOR('',#14,5.0);
78#63=LINE('',#53,#62);
79#64=EDGE_CURVE('',#57,#58,#63,.T.);
80#65=VECTOR('',#18,5.0);
81#66=LINE('',#54,#65);
82#67=EDGE_CURVE('',#58,#59,#66,.T.);
83#68=VECTOR('',#22,5.0);
84#69=LINE('',#55,#68);
85#70=EDGE_CURVE('',#59,#61,#69,.T.);
86#71=VECTOR('',#26,5.0);
87#72=LINE('',#56,#71);
88#73=EDGE_CURVE('',#61,#57,#72,.T.);
89#74=ORIENTED_EDGE('',$,$,#64,.T.);
90#75=ORIENTED_EDGE('',$,$,#67,.T.);
91#76=ORIENTED_EDGE('',$,$,#70,.T.);
92#77=ORIENTED_EDGE('',$,$,#73,.T.);
93#78=EDGE_LOOP('',(#74,#75,#76,#77));
94#79=FACE_OUTER_BOUND('',#78,.T.);
95#80=ADVANCED_FACE('',(#79),#52,.T.);
96#81=OPEN_SHELL('',(#80));
97#82=SHELL_BASED_SURFACE_MODEL('',(#81));
98#83=SHAPE_REPRESENTATION('child_rep',(#82),#101);
99#84=PRODUCT_CONTEXT('',#100,'mechanical');
100#85=PRODUCT('Child','Child','',(#84));
101#86=PRODUCT_DEFINITION_FORMATION('','',#85);
102#87=PRODUCT_DEFINITION('','',#86,#44);
103#88=PRODUCT_DEFINITION_SHAPE('','',#87);
104#89=SHAPE_DEFINITION_REPRESENTATION(#88,#83);
105/* Child's SEPARATE placement-only representation for the assembly relationship -- */
106/* DEFECT: Ax2 (Target) is NOT included in ITS items (nor Parent's placement rep's) -- */
107/* a completely foreign, unreferenced placement -- isOKTarget=False, isSwapTarget=False */
108#97=SHAPE_REPRESENTATION('child_placement_rep',(),#101);
109#90=CARTESIAN_POINT('ax2_foreign_origin',(200.0,200.0,200.0));
110#91=AXIS2_PLACEMENT_3D('Ax2_Target_foreign',#90,#2,#3);
111/* ---- NAUO: Parent relating, Child related ---- */
112#92=NEXT_ASSEMBLY_USAGE_OCCURRENCE('1','','uses',#45,#87,$);
113#93=PRODUCT_DEFINITION_SHAPE('Placement','Placement of an item',#92);
114/* DEFECT: SRRWT relates the two PLACEMENT-ONLY reps; Ax1 genuinely belongs to Rep1 */
115/* (parent_placement_rep), but Ax2 belongs to NEITHER Rep1 nor Rep2 (child_placement_rep) */
116#94=ITEM_DEFINED_TRANSFORMATION('','',#60,#91);
117#95=SHAPE_REPRESENTATION_RELATIONSHIP_WITH_TRANSFORMATION('srrwt','',#48,#97,#94);
118#96=CONTEXT_DEPENDENT_SHAPE_REPRESENTATION(#95,#93);
119ENDSEC;
120END-ISO-10303-21;