step-examples/12-3b-wires/Twi173.stp
Sources
- synthesized — no external source cited
Description
ShapeAnalysis_Wire.CheckLacking endpoint-degenerate
Reproducer recipe
Expected kernel behavior
The chain runs (0,0,0) to (10,0,0) to (10.000001,0,0) to (5,8,0) and stops: the closing segment from (5,8,0) back to (0,0,0), a 9.43-unit gap, is simply absent. Measure the closure gap between the last edge's end and the first edge's start and act on that alone; the near-degenerate 1.0E-6 middle edge is ten times the declared 1.0E-7 accuracy, so it is not removable and must not be allowed to mask the check. Insert the missing closing edge, or reject the wire naming the (5,8,0)-to-(0,0,0) gap — never declare it closed because two of its vertices are nearly coincident somewhere else.
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Tier-3 assertions
shape_null == True
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1ISO-10303-21; 2/* Twi173: GEOMETRIC_CURVE_SET containing EDGE_LOOP with 3 edges on PLANE; PLANE: normal +Z, origin (0,0,0); 3-edge chain: A(0,0)âB(10,0); B(10,0)âB'(10.000001,0) (degenerate near-B); B'(10.000001,0)âC(5,8) â near-coincident B/B' pair IS degenerate vertex; wire is open: C(5,8)â A(0,0) â gap exists where closing edge should be; vertex labelled 'degenerate_vertex_mask' at B'(10.000001,0); CheckLacking IS mechanism â degenerate-vertex test at B/B' junction masks detection of the real gap CâA; GEOMETRIC_CURVE_SET IS model entity â OCC yields empty; all EDGE_CURVEs ARE wired into EDGE_LOOP; never orphaned */ 3HEADER; 4FILE_DESCRIPTION(('Twi173'),'2;1'); 5FILE_NAME('Twi173.stp','2026-06-17T00: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=DIRECTION('',(0.0,0.0,1.0)); 12#3=DIRECTION('',(1.0,0.0,0.0)); 13#4=AXIS2_PLACEMENT_3D('',#1,#2,#3); 14#5=PLANE('',#4); 15#6=CARTESIAN_POINT('',(0.0,0.0,0.0)); 16#7=VERTEX_POINT('',#6); 17#8=CARTESIAN_POINT('',(10.0,0.0,0.0)); 18#9=VERTEX_POINT('',#8); 19#10=CARTESIAN_POINT('',(10.000001,0.0,0.0)); 20#11=VERTEX_POINT('degenerate_vertex_mask',#10); 21#12=CARTESIAN_POINT('',(5.0,8.0,0.0)); 22#13=VERTEX_POINT('',#12); 23#14=CARTESIAN_POINT('',(0.0,0.0,0.0)); 24#15=DIRECTION('',(1.0,0.0,0.0)); 25#16=VECTOR('',#15,10.0); 26#17=LINE('',#14,#16); 27#18=CARTESIAN_POINT('',(0.0,0.0)); 28#19=DIRECTION('',(1.0,0.0)); 29#20=VECTOR('',#19,10.0); 30#21=LINE('',#18,#20); 31#22=DEFINITIONAL_REPRESENTATION('',(#21),#*); 32#23=PCURVE('',#5,#22); 33#24=SURFACE_CURVE('',#17,(#23),.PCURVE_S1.); 34#25=EDGE_CURVE('',#7,#9,#24,.T.); 35#26=ORIENTED_EDGE('',*,*,#25,.T.); 36#27=CARTESIAN_POINT('',(10.0,0.0,0.0)); 37#28=DIRECTION('',(1.0,0.0,0.0)); 38#29=VECTOR('',#28,9.99999999252E-07); 39#30=LINE('',#27,#29); 40#31=CARTESIAN_POINT('',(10.0,0.0)); 41#32=DIRECTION('',(1.0,0.0)); 42#33=VECTOR('',#32,9.99999999252E-07); 43#34=LINE('',#31,#33); 44#35=DEFINITIONAL_REPRESENTATION('',(#34),#*); 45#36=PCURVE('',#5,#35); 46#37=SURFACE_CURVE('',#30,(#36),.PCURVE_S1.); 47#38=EDGE_CURVE('',#9,#11,#37,.T.); 48#39=ORIENTED_EDGE('',*,*,#38,.T.); 49#40=CARTESIAN_POINT('',(10.000001,0.0,0.0)); 50#41=DIRECTION('',(-0.529999016228,0.847998256365,0.0)); 51#42=VECTOR('',#41,9.43398166206); 52#43=LINE('',#40,#42); 53#44=CARTESIAN_POINT('',(10.000001,0.0)); 54#45=DIRECTION('',(-0.529999016228,0.847998256365)); 55#46=VECTOR('',#45,9.43398166206); 56#47=LINE('',#44,#46); 57#48=DEFINITIONAL_REPRESENTATION('',(#47),#*); 58#49=PCURVE('',#5,#48); 59#50=SURFACE_CURVE('',#43,(#49),.PCURVE_S1.); 60#51=EDGE_CURVE('',#11,#13,#50,.T.); 61#52=ORIENTED_EDGE('',*,*,#51,.T.); 62#53=EDGE_LOOP('',(#26,#39,#52)); 63#54=GEOMETRIC_CURVE_SET('',(#53)); 64#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 65#9051=PRODUCT('Twi173','Twi173','',(#9050)); 66#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 67#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 68#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 69#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 70#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 71#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 72#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 73#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 74#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 75#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#54),#9060); 76#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 77ENDSEC; 78END-ISO-10303-21;