step-examples/12-8-mixed/M193.stp
Sources
- 04-occt-translation.md
- StepToTopoDS_TranslateFace.cxx:718-738 (unresolved geometric_link falls back to a fresh empty face with the has-geometry flag cleared, via a lookup against the transient-process binder map rather than a recursive translate of the linked entity)
- BRepCheck_Face.cxx:106 (NoSurface status).
Description
A tessellated face declares a link to its exact-geometry counterpart, but that counterpart, while a real and well-formed face entity present in the file, is never itself built as part of the model because nothing else in the model's shell/solid structure reaches it. The declared link therefore resolves to nothing at read time, and the reader quietly substitutes an empty face carrying only the mesh data in its place — a face with triangle geometry attached but no underlying continuous surface at all.
Reproducer recipe
`TRIANGULATED_FACE` whose `geometric_link` attribute is populated with a reference to a syntactically valid `ADVANCED_FACE` entity that is fully defined in the file (its own `PLANE`/`EDGE_LOOP` boundary) but never appears inside any `CLOSED_SHELL`/`OPEN_SHELL`/`MANIFOLD_SOLID_BREP` reachable from the model's shape representation; own `COORDINATES_LIST` for the tessellated item (not shared with any other tessellated item); wired directly as the sole item of a `MANIFOLD_SURFACE_SHAPE_REPRESENTATION` rather than nested inside a `GEOMETRIC_SET`/`GEOMETRIC_CURVE_SET` wrapper, which independently destabilizes this reader build for any tessellated content regardless of link resolution (live-verified on a minimal control).
Expected kernel behavior
reject a tessellated face whose declared exact-geometry link cannot be resolved, or heal by substituting a diagnosed placeholder surface; never silently emit a mesh-bearing face with no surface behind it and no diagnostic distinguishing it from a legitimately surfaceless mesh.
Notes
Synonyms: "tessellated face dangling geometric link", "unresolved exact-geometry counterpart falls back to empty face", "mesh face with no B-rep surface behind it", "surfaceless face from unbound tessellation link". Live-verified: loads cleanly as a single face whose surface kind reports as unrecognized and whose validity check reports invalid for lacking a surface, confirming the fallback path fires exactly as described. A minimal control with the identical layout but an entirely absent link (rather than a populated-but-unresolvable one) reaches the identical unrecognized-surface, invalid-check outcome — since any tessellated face with no attached exact-geometry counterpart takes this same empty-face path, the unresolvable-versus-absent distinction only shows up in the file bytes, never downstream. The independent mesh-processing oracle used alongside the primary kernel crashes on this fixture and on the absent-link control identically — that crash is a property of any surfaceless mesh-only face reaching that oracle at all, not of the unresolvable-link mechanism this entry targets (isolated by testing both variants). See also: M022 (absent link, not unresolvable; also shares one coordinate list across six faces, which independently crashes this build regardless of link content).
Expected validation
occt=shape(1)/shape(1) gmsh=signal(11) ifc=schema_n/a
Byte assertions
contains(b'TRIANGULATED_FACE')count_entity_def(b'ADVANCED_FACE') == 1count_entity_def(b'TRIANGULATED_FACE') == 1
Tier-3 assertions
shape_null == Falsen_faces_total == 1face[0].surface_type == "other"brepcheck.valid == False
Cross-references
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* M193: TRIANGULATED_FACE whose geometric_link references a real ADVANCED_FACE entity (#37, own PLANE/EDGE_LOOP geometry) that is never itself wired into any CLOSED_SHELL/OPEN_SHELL/MANIFOLD_SOLID_BREP reachable from the shape representation; input: AP242 file where a tessellated face declares an exact-BRep counterpart that the reader transfer graph never visits, so the geometric_link entity is syntactically present but never bound in the transient-process map; wired as a direct shape_representation item (own COORDINATES_LIST, no GEOMETRIC_CURVE_SET wrapper) to isolate the fallback from the GEOMETRIC_SET GRI-fallback-path instability that crashes OCCT for M022/Pmi164/probe-equivalent bare-GEOMETRIC_CURVE_SET layouts regardless of geometric_link content; StepToTopoDS_TranslateFace.cxx:718-738 looks up the link via aTP->Find() (a lookup, not a recursive translate), finds no binder, and falls back to a fresh empty TopoDS_Face with theHasGeom cleared -- a face genuinely lacking a B-Rep surface, giving BRepCheck_Face::Blind NoSurface check a live target; mirrors M022 (which used geometric_link=$, the absent case, not the unresolvable-reference case); covers stp-tess-dangling-brep-link (face subvariant) + bc-no-surface in one fixture; live-verified: occt=shape(1)/shape(1) clean (face[0].surface_type=="other", brepcheck.valid==False -- NoSurface genuinely fires), gmsh=signal(11) on BOTH this fixture and a minimal fully-resolved control (geometric_link=$, no dangling ref) -- the gmsh crash is inherent to gmsh independent-OCC-build processing of any surfaceless tessellated-only face, not an artifact of the unresolved-link defect itself; synonyms: tessellated face dangling geometric_link, unresolved exact-BRep counterpart, fresh empty face on unbound link, TESSELLATED_FACE geometric_link unbound, NoSurface fallback face from tessellation */ 3HEADER; 4FILE_DESCRIPTION(('M193'),'2;1'); 5FILE_NAME('M193.stp','2026-07-12T00: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=COORDINATES_LIST('tess_face_coords',3,((0.,0.,0.),(1.,0.,0.),(0.,1.,0.))); 11#2=CARTESIAN_POINT('',(0.,0.,5.)); 12#3=DIRECTION('',(0.,0.,1.)); 13#4=DIRECTION('',(1.,0.,0.)); 14#5=AXIS2_PLACEMENT_3D('',#2,#3,#4); 15#6=PLANE('',#5); 16#7=CARTESIAN_POINT('',(0.,0.,5.)); 17#8=CARTESIAN_POINT('',(1.,0.,5.)); 18#9=CARTESIAN_POINT('',(1.,1.,5.)); 19#10=CARTESIAN_POINT('',(0.,1.,5.)); 20#11=VERTEX_POINT('',#7); 21#12=VERTEX_POINT('',#8); 22#13=VERTEX_POINT('',#9); 23#14=VERTEX_POINT('',#10); 24#15=DIRECTION('',(1.,0.,0.)); 25#16=VECTOR('',#15,1.); 26#17=LINE('',#7,#16); 27#18=EDGE_CURVE('',#11,#12,#17,.T.); 28#19=DIRECTION('',(0.,1.,0.)); 29#20=VECTOR('',#19,1.); 30#21=LINE('',#8,#20); 31#22=EDGE_CURVE('',#12,#13,#21,.T.); 32#23=DIRECTION('',(-1.,0.,0.)); 33#24=VECTOR('',#23,1.); 34#25=LINE('',#9,#24); 35#26=EDGE_CURVE('',#13,#14,#25,.T.); 36#27=DIRECTION('',(0.,-1.,0.)); 37#28=VECTOR('',#27,1.); 38#29=LINE('',#10,#28); 39#30=EDGE_CURVE('',#14,#11,#29,.T.); 40#31=ORIENTED_EDGE('',$,$,#18,.T.); 41#32=ORIENTED_EDGE('',$,$,#22,.T.); 42#33=ORIENTED_EDGE('',$,$,#26,.T.); 43#34=ORIENTED_EDGE('',$,$,#30,.T.); 44#35=EDGE_LOOP('',(#31,#32,#33,#34)); 45#36=FACE_OUTER_BOUND('',#35,.T.); 46#37=ADVANCED_FACE('unreachable_target_face',(#36),#6,.T.); 47#40=TRIANGULATED_FACE('dangling_link_face',#1,3,(),#37,(),((1,2,3))); 48#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 49#9051=PRODUCT('M193','M193','',(#9050)); 50#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 51#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 52#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 53#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 54#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 55#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 56#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 57#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 58#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 59#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#40),#9060); 60#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 61ENDSEC; 62END-ISO-10303-21;