step-examples/12-3a-shells/Tsh256.stp
Sources
- occt-coverage PARTIAL audit, work packet A4 item `stp-partial-assembly-continuation`, `exchange/problems.json` `stp-partial-assembly-continuation` (`StepToTopoDS_Builder::Init(FaceBasedSurfaceModel)`, `StepToTopoDS_Builder.cxx:567-590` — per-face `myTranFace.IsDone()` check, `continue` on failure, shell/compound built from the survivors). Mirror Bo002 demonstrates the analogous fatal-outer-shell case for `MANIFOLD_SOLID_BREP`
- this class's `FACE_BASED_SURFACE_MODEL`/`EDGE_BASED_WIREFRAME_MODEL` member-failure subvariant was previously unrepresented in the live corpus (only in `_quarantine`/early-waves per prior audit notes).
Description
A `FACE_BASED_SURFACE_MODEL` wraps one `CONNECTED_FACE_SET` containing two `ADVANCED_FACE`s: `good_face` (a normal 4-edge planar face, `(0,0,0)-(5,0,0)-(5,5,0)-(0,5,0)`) and `bad_face_null_surface` (a second, geometrically well-formed 4-edge loop, `x:[10,15]`) whose `ADVANCED_FACE.face_geometry` attribute is left unset (`$`) — mirroring Xp008's proven null-surface pattern, now inside a `FACE_BASED_SURFACE_MODEL` container instead of a `MANIFOLD_SOLID_BREP`.
Reproducer recipe
`CONNECTED_FACE_SET('cfs',(#35,#66))` where `#35=ADVANCED_FACE('good_face',(#34),#33,.T.)` (real `PLANE`) and `#66=ADVANCED_FACE('bad_face_null_surface',(#65),$,.T.)` (surface `$`); `FACE_BASED_SURFACE_MODEL('fbsm',(#67))` wraps the one connected-face-set.
Expected kernel behavior
the face-translation stage cannot build a face without a surface and reports not-done for `bad_face_null_surface`; the `FaceBasedSurfaceModel` builder's per-face loop skips it with a warning and still returns a shell built from the surviving `good_face`, rather than aborting the whole connected-face-set or the whole model.
Notes
Live-verified (this worktree's OCP/OCCT 7.8.1): the reader's root-transfer step on this fixture returns 1 transferred root and 1 output shape, and the resulting shape has exactly 1 face / 4 edges / 8 (raw) vertices — `good_face` alone, confirming `bad_face_null_surface` was silently dropped rather than nulling the whole model or raising a hard failure. `brepcheck.valid == True` on the surviving shape. Synonyms: "FaceBasedSurfaceModel drops failed face", "connected_face_set null surface skipped", "partial container continuation surface model", "one bad face doesn't sink the whole model", "face geometry unset item skipped". Provenance tier: bytes-sufficient.
Expected validation
occt=shape(1)/shape(1) gmsh=shape(9) ifc=schema_n/a
Byte assertions
contains(b'good_face')contains(b'bad_face_null_surface')count_entity_def(b'ADVANCED_FACE') >= 2contains(b'FACE_BASED_SURFACE_MODEL')
Tier-3 assertions
shape_null == Falsen_faces_total == 1n_edges_total == 4n_vertices_total == 8face[0].surface_type == "plane"brepcheck.valid == 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/* Tsh256: TEST - FACE_BASED_SURFACE_MODEL whose CONNECTED_FACE_SET has one good ADVANCED_FACE and one failing ADVANCED_FACE (null surface, Xp008's proven null-surface pattern) */ 3HEADER; 4FILE_DESCRIPTION(('Tsh256'),'2;1'); 5FILE_NAME('Tsh256.stp','2026-07-13T00: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=CARTESIAN_POINT('',(5.0,0.0,0.0)); 12#3=CARTESIAN_POINT('',(5.0,5.0,0.0)); 13#4=CARTESIAN_POINT('',(0.0,5.0,0.0)); 14#5=VERTEX_POINT('',#1); 15#6=VERTEX_POINT('',#2); 16#7=VERTEX_POINT('',#3); 17#8=VERTEX_POINT('',#4); 18#9=DIRECTION('',(1.0,0.0,0.0)); 19#10=VECTOR('',#9,5.0); 20#11=LINE('',#1,#10); 21#12=EDGE_CURVE('good_e1',#5,#6,#11,.T.); 22#13=DIRECTION('',(0.0,1.0,0.0)); 23#14=VECTOR('',#13,5.0); 24#15=LINE('',#2,#14); 25#16=EDGE_CURVE('good_e2',#6,#7,#15,.T.); 26#17=DIRECTION('',(-1.0,0.0,0.0)); 27#18=VECTOR('',#17,5.0); 28#19=LINE('',#3,#18); 29#20=EDGE_CURVE('good_e3',#7,#8,#19,.T.); 30#21=DIRECTION('',(0.0,-1.0,0.0)); 31#22=VECTOR('',#21,5.0); 32#23=LINE('',#4,#22); 33#24=EDGE_CURVE('good_e4',#8,#5,#23,.T.); 34#25=ORIENTED_EDGE('',*,*,#12,.T.); 35#26=ORIENTED_EDGE('',*,*,#16,.T.); 36#27=ORIENTED_EDGE('',*,*,#20,.T.); 37#28=ORIENTED_EDGE('',*,*,#24,.T.); 38#29=EDGE_LOOP('',(#25,#26,#27,#28)); 39#30=DIRECTION('',(0.0,0.0,1.0)); 40#31=DIRECTION('',(1.0,0.0,0.0)); 41#32=AXIS2_PLACEMENT_3D('',#1,#30,#31); 42#33=PLANE('',#32); 43#34=FACE_OUTER_BOUND('',#29,.T.); 44#35=ADVANCED_FACE('good_face',(#34),#33,.T.); 45/* Failing member: a second face sharing edge #12/#16/#20/#24's loop geometry 46 but ADVANCED_FACE's own surface item is left NULL ($) -- StepToTopoDS_TranslateFace 47 cannot build a TopoDS_Face without a surface and reports not-done; the 48 FACE_BASED_SURFACE_MODEL builder must skip it and warn rather than aborting 49 the whole connected_face_set. */ 50#36=CARTESIAN_POINT('',(10.0,0.0,0.0)); 51#37=CARTESIAN_POINT('',(15.0,0.0,0.0)); 52#38=CARTESIAN_POINT('',(15.0,5.0,0.0)); 53#39=CARTESIAN_POINT('',(10.0,5.0,0.0)); 54#40=VERTEX_POINT('',#36); 55#41=VERTEX_POINT('',#37); 56#42=VERTEX_POINT('',#38); 57#43=VERTEX_POINT('',#39); 58#44=DIRECTION('',(1.0,0.0,0.0)); 59#45=VECTOR('',#44,5.0); 60#46=LINE('',#36,#45); 61#47=EDGE_CURVE('bad_e1',#40,#41,#46,.T.); 62#48=DIRECTION('',(0.0,1.0,0.0)); 63#49=VECTOR('',#48,5.0); 64#50=LINE('',#37,#49); 65#51=EDGE_CURVE('bad_e2',#41,#42,#50,.T.); 66#52=DIRECTION('',(-1.0,0.0,0.0)); 67#53=VECTOR('',#52,5.0); 68#54=LINE('',#38,#53); 69#55=EDGE_CURVE('bad_e3',#42,#43,#54,.T.); 70#56=DIRECTION('',(0.0,-1.0,0.0)); 71#57=VECTOR('',#56,5.0); 72#58=LINE('',#39,#57); 73#59=EDGE_CURVE('bad_e4',#43,#40,#58,.T.); 74#60=ORIENTED_EDGE('',*,*,#47,.T.); 75#61=ORIENTED_EDGE('',*,*,#51,.T.); 76#62=ORIENTED_EDGE('',*,*,#55,.T.); 77#63=ORIENTED_EDGE('',*,*,#59,.T.); 78#64=EDGE_LOOP('',(#60,#61,#62,#63)); 79#65=FACE_OUTER_BOUND('',#64,.T.); 80#66=ADVANCED_FACE('bad_face_null_surface',(#65),$,.T.); 81#67=CONNECTED_FACE_SET('cfs',(#35,#66)); 82#68=FACE_BASED_SURFACE_MODEL('fbsm',(#67)); 83#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 84#9051=PRODUCT('Tsh256','Tsh256','',(#9050)); 85#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 86#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 87#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 88#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 89#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 90#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 91#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 92#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 93#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 94#9061=ADVANCED_BREP_SHAPE_REPRESENTATION('',(#68),#9060); 95#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 96ENDSEC; 97END-ISO-10303-21;