step-examples/12-3b-wires/Twi220.stp
Sources
- synthesized — no external source cited
Description
A LINE inlines an anonymous aggregate where a reference to a vector is required, so the reader aborts before degenerate-edge insertion is reached
Reproducer recipe
Expected kernel behavior
The first edge ends on a vertex at (5,0,0) and the second begins on a different vertex instance at exactly the same point, so the contour is broken topologically while being geometrically continuous; the repair is to merge the two coincident vertices, not to insert a connecting edge, since any such edge would have zero length and could not be a valid boundary segment. Insert an edge only where the two ends genuinely differ in the surface's parameter space. The second edge also declares a curve running along -Z although both its vertices lie in the z=0 plane, so an edge's curve must be checked against its own vertices — and the lines here supply a direction where a vector is required, which has to fail curve construction with a named diagnostic instead of yielding a null the topology pass later dereferences.
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/* Twi220 - ShapeAnalysis_Wire.CheckLacking degenerate-fill-in 3 * Defect: Wire has a gap in topology (missing edge between two vertices that 4 * should be connected). The missing edge would be degenerate (zero length) if 5 * inserted. CheckLacking correctly detects the gap and reports "lacking" status, 6 * but FixLacking would attempt to insert a degenerate edge, which is geometrically 7 * useless and violates edge validity constraints. The repair cannot succeed. 8 * Reproduces: ShapeAnalysis_Wire.CheckLacking branch detecting degenerate fills. */ 9HEADER; 10FILE_DESCRIPTION(('Twi220 test case','Lacking edge that would be degenerate'),'2;1'); 11FILE_NAME('Twi220.stp','2026-06-15T00:00:00',(''),(''),'cad-research-suite','',''); 12FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }')); 13ENDSEC; 14DATA; 15#1=APPLICATION_CONTEXT('automotive_design'); 16#2=APPLICATION_PROTOCOL_DEFINITION('international standard','automotive_design',2000,#1); 17#10=CARTESIAN_POINT('',(0.0,0.0,0.0)); 18#11=DIRECTION('',(0.0,0.0,1.0)); 19#12=DIRECTION('',(1.0,0.0,0.0)); 20#13=AXIS2_PLACEMENT_3D('',#10,#11,#12); 21#20=PLANE('',#13); 22/* First edge: from (0,0,0) to (5,0,0) */ 23#30=CARTESIAN_POINT('',(0.0,0.0,0.0)); 24#31=CARTESIAN_POINT('',(5.0,0.0,0.0)); 25#32=LINE('',#30,(DIRECTION('',(1.0,0.0,0.0)),1.0)); 26#33=VERTEX_POINT('',(0.0,0.0,0.0)); 27#34=VERTEX_POINT('',(5.0,0.0,0.0)); 28#35=EDGE_CURVE('',#33,#34,#32,.T.); 29#36=ORIENTED_EDGE('',*,*,#35,.T.); 30/* Missing edge here: would connect (5,0,0) to (5,0,0) (degenerate) */ 31/* Second edge: from (5,0,0) to (0,5,0) */ 32#40=CARTESIAN_POINT('',(5.0,0.0,0.0)); 33#41=CARTESIAN_POINT('',(0.0,5.0,0.0)); 34#42=LINE('',#40,(DIRECTION('',(0.0,0.0,-1.0)),1.0)); 35#43=VERTEX_POINT('',(5.0,0.0,0.0)); 36#44=VERTEX_POINT('',(0.0,5.0,0.0)); 37#45=EDGE_CURVE('',#43,#44,#42,.T.); 38#46=ORIENTED_EDGE('',*,*,#45,.T.); 39/* Third edge: back to start (0,5,0) to (0,0,0) */ 40#50=CARTESIAN_POINT('',(0.0,5.0,0.0)); 41#51=CARTESIAN_POINT('',(0.0,0.0,0.0)); 42#52=LINE('',#50,(DIRECTION('',(0.0,-1.0,0.0)),1.0)); 43#53=VERTEX_POINT('',(0.0,5.0,0.0)); 44#54=VERTEX_POINT('',(0.0,0.0,0.0)); 45#55=EDGE_CURVE('',#53,#54,#52,.T.); 46#56=ORIENTED_EDGE('',*,*,#55,.T.); 47/* Wire missing edge between #34 and #43 (both at (5,0,0)) */ 48#60=EDGE_LOOP('',(#36,#46,#56)); 49#61=FACE_OUTER_BOUND('',#60,.T.); 50#62=ADVANCED_FACE('',(#61),#20,.T.); 51/* Product chain (v3.2 schema) */ 52#9000=PRODUCT_CONTEXT('',#1,'mechanical'); 53#9001=PRODUCT('Twi220','Twi220','',(#9000)); 54#9002=PRODUCT_DEFINITION_FORMATION('','',#9001); 55#9003=PRODUCT_DEFINITION_CONTEXT('part definition',#1,'design'); 56#9004=PRODUCT_DEFINITION('','',#9002,#9003); 57#9005=PRODUCT_DEFINITION_SHAPE('','',#9004); 58#9006=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 59#9007=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 60#9008=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 61#9009=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9006,'distance_accuracy_value',''); 62#9010=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9009))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9006,#9007,#9008))REPRESENTATION_CONTEXT('','3D')); 63#9020=OPEN_SHELL('shell',(#62)); 64#9021=SHELL_BASED_SURFACE_MODEL('sbsm',(#9020)); 65#9022=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#9021),#9010); 66#9023=SHAPE_DEFINITION_REPRESENTATION(#9005,#9022); 67ENDSEC; 68END-ISO-10303-21;