step-examples/12-8-mixed/M202.stp
Sources
- Pattern-mined from Formlabs/foxtrot #24 (a pure-Rust, non-OCCT STEP reader
- MIT — pattern only, no bytes copied). foxtrot's representation-matching "falls through the root representation match" and panics ("Could not get shape from GeometricallyBoundedSurfaceShapeRepresentation") on the auxiliary representation instead of skipping it and triangulating the real B-rep.
Description
A STEP part carries two representations of its shape tied by a `SHAPE_REPRESENTATION_RELATIONSHIP`: the primary `ADVANCED_BREP_SHAPE_REPRESENTATION` (a real `MANIFOLD_SOLID_BREP` — one clean truncated-cone face) and an auxiliary `GEOMETRICALLY_BOUNDED_SURFACE_SHAPE_REPRESENTATION` whose items are a `GEOMETRIC_CURVE_SET` of construction geometry (a `LINE` and a `CIRCLE` off to the side). This is a common real-world CAD export — the writer emits construction/wireframe geometry as a secondary geometrically-bounded representation next to the solid. A reader must select the advanced-brep representation to build the solid and treat the geometrically-bounded auxiliary representation as free-form non-solid geometry.
Reproducer recipe
a `MANIFOLD_SOLID_BREP` wrapped in an `ADVANCED_BREP_SHAPE_REPRESENTATION`, plus a `GEOMETRIC_CURVE_SET` (a `LINE` + a `CIRCLE`) wrapped in a `GEOMETRICALLY_BOUNDED_SURFACE_SHAPE_REPRESENTATION`, both sharing one geometric context and tied by a `SHAPE_REPRESENTATION_RELATIONSHIP`.
Expected kernel behavior
resolve the multi-representation shape by selecting the advanced-brep representation for the solid and absorbing (or skipping) the auxiliary geometrically-bounded set as free-form geometry; never fail to find the root representation or crash trying to build a solid from the auxiliary set.
Notes
RUNTIME-VERIFIED (2026-08-12, OCP/OCCT 7.8.1): OCCT accepts and loads shape(1) in both heal modes, pulling the auxiliary line+circle into the result compound alongside the cone shell (vertex 12 / edge 7 vs the cone face alone); part21_strict clean (0 unresolved refs). The independent Rust reader foxtrot panics on the same construct (#24) — an OCCT-handles / independent-reader-fails divergence. Synonyms: "auxiliary geometrically-bounded surface representation", "construction geometry alongside solid brep", "multiple shape representations related", "GEOMETRIC_CURVE_SET wireframe next to brep", "representation-selection robustness". Provenance tier: bytes-sufficient.
Expected validation
occt=shape(1)/shape(1) gmsh=shape(7) ifc=schema_n/a
Byte assertions
contains(b'GEOMETRICALLY_BOUNDED_SURFACE_SHAPE_REPRESENTATION')contains(b'SHAPE_REPRESENTATION_RELATIONSHIP')contains(b'GEOMETRIC_CURVE_SET')
Tier-3 assertions
shape_null == False
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* M202: one product carries two representations of its shape tied by a SHAPE_REPRESENTATION_RELATIONSHIP: a primary ADVANCED_BREP_SHAPE_REPRESENTATION (a real MANIFOLD_SOLID_BREP, one clean truncated-cone face) and an auxiliary GEOMETRICALLY_BOUNDED_SURFACE_SHAPE_REPRESENTATION whose items are a GEOMETRIC_CURVE_SET of construction geometry (a LINE and a CIRCLE off to the side); a reader must select the advanced-brep representation to build the solid and treat the geometrically-bounded auxiliary representation as free-form non-solid geometry, never try to build a solid from the auxiliary set and fail resolving the root representation; synonyms: auxiliary geometrically-bounded surface representation, construction geometry alongside solid, multiple shape representations related, GEOMETRIC_CURVE_SET wireframe next to brep, representation-selection robustness; the auxiliary GBSSR and its GEOMETRIC_CURVE_SET are the defect carriers */ 3HEADER; 4FILE_DESCRIPTION(('M202'),'2;1'); 5FILE_NAME('M202.stp','2026-06-17T00:00:00',(''),(''),'cad-research-suite','',''); 6FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }')); 7ENDSEC; 8DATA; 9#9000=APPLICATION_CONTEXT('mechanical design'); 10#1=CARTESIAN_POINT('',(0.0,0.0,0.0)); 11#2=DIRECTION('',(0.0,0.0,1.0)); 12#3=DIRECTION('',(1.0,0.0,0.0)); 13#4=AXIS2_PLACEMENT_3D('',#1,#2,#3); 14#5=CONICAL_SURFACE('',#4,1.0,0.4); 15#6=CARTESIAN_POINT('',(1.0,0.0,0.0)); 16#7=CARTESIAN_POINT('',(0.577206781262,0.0,1.0)); 17#8=VERTEX_POINT('',#6); 18#9=VERTEX_POINT('',#7); 19#10=CARTESIAN_POINT('',(0.0,0.0,0.0)); 20#11=DIRECTION('',(0.0,0.0,-1.0)); 21#12=DIRECTION('',(1.0,0.0,0.0)); 22#13=AXIS2_PLACEMENT_3D('',#10,#11,#12); 23#14=CIRCLE('',#13,1.0); 24#15=EDGE_CURVE('',#8,#8,#14,.T.); 25#16=CARTESIAN_POINT('',(0.0,0.0,1.0)); 26#17=DIRECTION('',(0.0,0.0,1.0)); 27#18=DIRECTION('',(1.0,0.0,0.0)); 28#19=AXIS2_PLACEMENT_3D('',#16,#17,#18); 29#20=CIRCLE('',#19,0.577206781262); 30#21=EDGE_CURVE('',#9,#9,#20,.T.); 31#22=DIRECTION('',(-0.389418342309,0.0,0.921060994003)); 32#23=VECTOR('',#22,1.08570442838); 33#24=LINE('',#6,#23); 34#25=EDGE_CURVE('',#8,#9,#24,.T.); 35#26=ORIENTED_EDGE('',$,$,#25,.T.); 36#27=ORIENTED_EDGE('',$,$,#21,.T.); 37#28=ORIENTED_EDGE('',$,$,#25,.F.); 38#29=ORIENTED_EDGE('',$,$,#15,.F.); 39#30=EDGE_LOOP('',(#26,#27,#28,#29)); 40#31=FACE_OUTER_BOUND('',#30,.T.); 41#32=ADVANCED_FACE('',(#31),#5,.T.); 42#33=CLOSED_SHELL('',(#32)); 43#34=MANIFOLD_SOLID_BREP('',#33); 44#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 45#9051=PRODUCT('M202','M202','',(#9050)); 46#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 47#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 48#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 49#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 50#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 51#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 52#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 53#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 54#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 55#9061=ADVANCED_BREP_SHAPE_REPRESENTATION('',(#34),#9060); 56#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 57#9063=CARTESIAN_POINT('',(10.0,0.0,0.0)); 58#9064=DIRECTION('',(0.0,1.0,0.0)); 59#9065=VECTOR('',#9064,5.0); 60#9066=LINE('',#9063,#9065); 61#9067=CARTESIAN_POINT('',(10.0,0.0,0.0)); 62#9068=DIRECTION('',(0.0,0.0,1.0)); 63#9069=DIRECTION('',(1.0,0.0,0.0)); 64#9070=AXIS2_PLACEMENT_3D('',#9067,#9068,#9069); 65#9071=CIRCLE('',#9070,2.0); 66#9072=GEOMETRIC_CURVE_SET('construction',(#9066,#9071)); 67#9073=GEOMETRICALLY_BOUNDED_SURFACE_SHAPE_REPRESENTATION('auxiliary_construction',(#9072),#9060); 68#9074=SHAPE_REPRESENTATION_RELATIONSHIP('main solid + auxiliary set','auxiliary construction geometry',#9061,#9073); 69ENDSEC; 70END-ISO-10303-21;