step-examples/12-3c-faces/Tfa180.stp
Sources
- synthesized — no external source cited
Description
PLANE face with outer and inner wires sharing a B-spline curve edge crashes the reader (SIGSEGV) even with the inner wire removed; coincident-edge wire merging is never reached
Reproducer recipe
Expected kernel behavior
Reject with a diagnostic naming the shared B_SPLINE_CURVE_WITH_KNOTS edge referenced by both the outer wire and the FACE_INNER_BOUND: detect that a curved edge is aliased across two distinct wires of the same face before translation and refuse to build the face from it — since the crash persists even with the inner bound entirely removed, the malformed construct evidently lies elsewhere in the file as well, so a correct reader must validate the whole shape's edge/wire graph up front and reject any face it cannot safely construct, never letting translation abort the process.
Notes
Corrected 2026-07-17 (truth-in-labeling audit, Q14 second half): retitled/redescribed as an honest crash-robustness fixture — original claimed coincident-edge wire merging produces a specific silent misclassification/undefined-behavior outcome; in reality the process crashes before that method (or any face-repair/small-face-check method) is ever reached. The crash itself is genuine and is retained as the fixture's real, verified defect (Expected validation unchanged: `signal(11)/signal(11)`). Part of the ~127-entry face-repair/small-face-check misnomer family identified in the truth-in-labeling audit — see `BACKLOG.md` Q14 for the full list and remediation approach. Synonyms: "shared B-spline edge crash persists without inner wire".
Expected validation
occt=signal(11)/signal(11) gmsh=signal(11) ifc=schema_n/a
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1ISO-10303-21; 2/* Tfa180 - ShapeFix_Face.FixWiresTwoCoincEdges with-curved-edges 3 * Defect: FixWiresTwoCoincEdges detects and fixes wires that share edges by 4 * checking if both wires reference the same EDGE_CURVE; however, it only 5 * handles LINE edges and silently ignores curved coincidence (e.g. B-spline 6 * edges), leaving the face with unmerged boundaries that violate manifold. 7 * Reproducer: ADVANCED_FACE with two wires sharing a B-SPLINE_CURVE edge. 8 */ 9HEADER; 10FILE_DESCRIPTION(('Tfa180 FixWiresTwoCoincEdges curved edge'),'2;1'); 11FILE_NAME('Tfa180.stp','2026-06-15T00:00:00',(''),(''), 12 'cad-research-suite','',''); 13FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }')); 14ENDSEC; 15DATA; 16#1=APPLICATION_CONTEXT('automotive design'); 17#2=APPLICATION_PROTOCOL_DEFINITION('international standard', 18 'automotive_design',2009,#1); 19#10=CARTESIAN_POINT('origin',(0.0,0.0,0.0)); 20#11=DIRECTION('z',(0.0,0.0,1.0)); 21#12=DIRECTION('x',(1.0,0.0,0.0)); 22#13=AXIS2_PLACEMENT_3D('plc',#10,#11,#12); 23#20=PLANE('base_plane',#13); 24/* Outer wire vertices */ 25#200=CARTESIAN_POINT('',(0.0,0.0,0.0)); 26#201=VERTEX_POINT('',#200); 27#202=CARTESIAN_POINT('',(10.0,0.0,0.0)); 28#203=VERTEX_POINT('',#202); 29#204=CARTESIAN_POINT('',(10.0,10.0,0.0)); 30#205=VERTEX_POINT('',#204); 31#206=CARTESIAN_POINT('',(0.0,10.0,0.0)); 32#207=VERTEX_POINT('',#206); 33/* Inner wire vertices: shares a B-spline edge with outer */ 34#210=CARTESIAN_POINT('',(2.0,2.0,0.0)); 35#211=VERTEX_POINT('',#210); 36#212=CARTESIAN_POINT('',(8.0,2.0,0.0)); 37#213=VERTEX_POINT('',#212); 38#214=CARTESIAN_POINT('',(8.0,8.0,0.0)); 39#215=VERTEX_POINT('',#214); 40#216=CARTESIAN_POINT('',(2.0,8.0,0.0)); 41#217=VERTEX_POINT('',#216); 42/* B-spline shared between outer and inner wire: from (2,8) to (8,8) */ 43#220=B_SPLINE_CURVE_WITH_KNOTS('bspline_shared',.F.,.F.,.F., 44 (#216,#217,#214), 45 (1,1,1), 46 (0.0,0.5,1.0), 47 .UNSPECIFIED.); 48/* Outer wire straight edges */ 49#300=VECTOR('',(1.0,0.0,0.0),10.0); 50#301=LINE('',#200,#300); 51#302=EDGE_CURVE('',#201,#203,#301,.T.); 52#303=VECTOR('',(0.0,1.0,0.0),10.0); 53#304=LINE('',#202,#303); 54#305=EDGE_CURVE('',#203,#205,#304,.T.); 55/* Outer wire: includes shared B-spline edge (from 8,8 to 2,8) */ 56#306=EDGE_CURVE('',#205,#217,#220,.T.); 57#307=VECTOR('',(-1.0,0.0,0.0),2.0); 58#308=LINE('',#206,#307); 59#309=EDGE_CURVE('',#207,#201,#308,.T.); 60/* Inner wire edges */ 61#310=VECTOR('',(1.0,0.0,0.0),6.0); 62#311=LINE('',#210,#310); 63#312=EDGE_CURVE('',#211,#213,#311,.T.); 64#313=VECTOR('',(0.0,1.0,0.0),6.0); 65#314=LINE('',#212,#313); 66#315=EDGE_CURVE('',#213,#215,#314,.T.); 67#316=VECTOR('',(-1.0,0.0,0.0),6.0); 68#317=LINE('',#216,#316); 69#318=EDGE_CURVE('',#215,#211,#317,.T.); 70/* Inner wire: second straight edge connecting back to shared curve start */ 71#319=VECTOR('',(0.0,-1.0,0.0),6.0); 72#320=LINE('',#214,#319); 73#321=EDGE_CURVE('',#217,#211,#320,.T.); 74/* NOTE: Inner wire shares B-spline #220 with outer wire. FixWiresTwoCoincEdges 75 * should detect this but only handles LINEs, so it silently ignores the shared 76 * curved edge, leaving the face with overlapping boundaries. 77 */ 78/* Inner wire oriented edges */ 79#400=ORIENTED_EDGE('',*,*,#312,.T.); 80#401=ORIENTED_EDGE('',*,*,#315,.T.); 81#402=ORIENTED_EDGE('',*,*,#306,.F.); 82#403=ORIENTED_EDGE('',*,*,#321,.T.); 83/* Outer wire oriented edges */ 84#410=ORIENTED_EDGE('',*,*,#302,.T.); 85#411=ORIENTED_EDGE('',*,*,#305,.T.); 86#412=ORIENTED_EDGE('',*,*,#306,.T.); 87#413=ORIENTED_EDGE('',*,*,#309,.T.); 88/* Loops */ 89#500=EDGE_LOOP('',(#410,#411,#412,#413)); 90#501=FACE_OUTER_BOUND('',#500,.T.); 91#510=EDGE_LOOP('',(#400,#401,#402,#403)); 92#511=FACE_INNER_BOUND('',#510,.F.); 93#600=ADVANCED_FACE('curved_shared_edge',(#501,#511),#20,.T.); 94#9000=PRODUCT_CONTEXT('',#1,'mechanical'); 95#9001=PRODUCT('Tfa180','Tfa180','',(#9000)); 96#9002=PRODUCT_DEFINITION_FORMATION('','',#9001); 97#9003=PRODUCT_DEFINITION_CONTEXT('part definition',#1,'design'); 98#9004=PRODUCT_DEFINITION('','',#9002,#9003); 99#9005=PRODUCT_DEFINITION_SHAPE('','',#9004); 100#9006=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 101#9007=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 102#9008=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 103#9009=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9006,'distance_accuracy_value',''); 104#9010=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9009))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9006,#9007,#9008))REPRESENTATION_CONTEXT('','3D')); 105#9020=OPEN_SHELL('wrap_shell',(#600)); 106#9021=SHELL_BASED_SURFACE_MODEL('sbsm',(#9020)); 107#9022=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#9021),#9010); 108#9023=SHAPE_DEFINITION_REPRESENTATION(#9005,#9022); 109ENDSEC; 110END-ISO-10303-21;