step-examples/12-8-mixed/M054.stp
Sources
- 20-general-forums.md (J001)
- OCCT forum
Description
`FACETED_BREP` is required by the schema to reference a `CLOSED_SHELL`. Some producers emit it pointing at an `OPEN_SHELL`. OCCT only handles the closed case, so loading aborts.
Reproducer recipe
`#N = FACETED_BREP('', #M);` where `#M = OPEN_SHELL('', (..));`.
Expected kernel behavior
reject with a precise diagnostic; optionally heal by promoting the shell to `CLOSED_SHELL` if topology actually closes.
Notes
Synonyms: "FACETED_BREP linked to OPEN_SHELL", "schema-illegal faceted brep", "faceted brep needs closed shell", "schema-version vs entity-vocabulary disagreement".
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Closure intent
solid — authored as a closed solid; openness is the defect — heal it shut.
Byte assertions
contains(b'FACETED_BREP')contains(b'OPEN_SHELL')
Tier-3 assertions
shape_null == True
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* M054: GEOMETRIC_CURVE_SET containing FACETED_BREP referencing OPEN_SHELL â schema-illegal: FACETED_BREP must reference CLOSED_SHELL; input: AP242 STEP file where FACETED_BREP points at an OPEN_SHELL instead of the schema-required CLOSED_SHELL; ISO 10303-42 §B.2 / AP242 schema: FACETED_BREP.outer is typed CLOSED_SHELL â no relaxation permitted; OCCT forum: loading aborts silently on open-shell FACETED_BREP; kernel must reject with a precise diagnostic; optionally heal by promoting the shell to CLOSED_SHELL if topology actually closes; OCC silently accepts (no diagnostic, empty result); GEOMETRIC_CURVE_SET IS the model entity â OCC yields empty; synonyms: FACETED_BREP linked to OPEN_SHELL, schema-illegal faceted brep, faceted brep needs closed shell, schema-version vs entity-vocabulary disagreement */ 3HEADER; 4FILE_DESCRIPTION(('M054'),'2;1'); 5FILE_NAME('M054.stp','2026-06-17T00:00:00',(''),(''),'cad-research-suite','',''); 6FILE_SCHEMA(('AP242_MANAGED_MODEL_BASED_3D_ENGINEERING_MIM_LF { 1 0 10303 442 1 1 4 }')); 7ENDSEC; 8DATA; 9#9000=APPLICATION_CONTEXT('mechanical design'); 10#1=CARTESIAN_POINT('v0',(0.,0.,0.)); 11#2=CARTESIAN_POINT('v1',(10.,0.,0.)); 12#3=CARTESIAN_POINT('v2',(0.,10.,0.)); 13#4=VERTEX_POINT('vx0',#1); 14#5=VERTEX_POINT('vx1',#2); 15#6=VERTEX_POINT('vx2',#3); 16#7=DIRECTION('d01',(1.,0.,0.)); 17#8=VECTOR(#7,10.); 18#9=LINE('l01',#1,#8); 19#10=EDGE_CURVE('e01',#4,#5,#9,.T.); 20#11=DIRECTION('d12',(-1.,1.,0.)); 21#12=VECTOR(#11,14.142); 22#13=LINE('l12',#2,#12); 23#14=EDGE_CURVE('e12',#5,#6,#13,.T.); 24#15=DIRECTION('d20',(0.,-1.,0.)); 25#16=VECTOR(#15,10.); 26#17=LINE('l20',#3,#16); 27#18=EDGE_CURVE('e20',#6,#4,#17,.T.); 28#19=ORIENTED_EDGE('',*,*,#10,.T.); 29#20=ORIENTED_EDGE('',*,*,#14,.T.); 30#21=ORIENTED_EDGE('',*,*,#18,.T.); 31#22=EDGE_LOOP('',(#19,#20,#21)); 32#23=CARTESIAN_POINT('plane_origin',(0.,0.,0.)); 33#24=DIRECTION('plane_normal',(0.,0.,1.)); 34#25=DIRECTION('plane_ref',(1.,0.,0.)); 35#26=AXIS2_PLACEMENT_3D('plane_placement',#23,#24,#25); 36#27=PLANE('tri_plane',#26); 37#28=FACE_OUTER_BOUND('',#22,.T.); 38#29=ADVANCED_FACE('tri_face',(#28),#27,.T.); 39#30=OPEN_SHELL('open_shell_illegal',(#29)); 40#31=FACETED_BREP('faceted_brep_open_shell',#30); 41#32=GEOMETRIC_CURVE_SET('faceted-brep-linked-to-open-shell',(#31,#30,#26)); 42#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 43#9051=PRODUCT('M054','M054','',(#9050)); 44#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 45#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 46#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 47#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 48#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 49#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 50#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 51#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 52#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 53#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#32),#9060); 54#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 55ENDSEC; 56END-ISO-10303-21;