step-examples/12-3b-wires/Twi108.stp
Sources
- synthesized — no external source cited
Description
FixGaps3d 3D-Gap Repair
Reproducer recipe
Expected kernel behavior
The first edge ends at vertex (10,0,0) while the next begins at a different vertex (10,0,0.05) — a 0.05 gap, five orders of magnitude above the declared 1.0E-7 accuracy — so the loop is geometrically open even though it is listed as a closed `EDGE_LOOP`. Measure real 3D endpoint distances rather than trusting the listing, and close a gap this large by changing geometry (trim or extend the second edge's line back to (10,0,0), or insert a connecting edge) and merging the two vertices; it is far too big to absorb into vertex tolerance on a 10-unit contour. That second edge also leaves the face's z=0 plane at its start, so if the boundary cannot be brought onto the surface, reject the face and name the junction.
Expected validation
occt=shape(1)/shape(1) gmsh=shape(9) ifc=schema_n/a
Tier-3 assertions
n_faces_total == 1
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1ISO-10303-21; 2/* Twi108: Single ADVANCED_FACE on a PLANE in a CLOSED_SHELL; outer EDGE_LOOP has 4 edges; E0 ends at v_P1=(10,0,0), E1 starts at v_P1b=(10,0,0.05) â a deliberate 0.05-unit 3D gap in Z; vertex tolerance balls overlap (tolerance ~0.1) but gap exceeds Confusion; FixGaps3d detects the gap and bridges it with a new pcurve segment; P0=(0,0,0), P1=(10,0,0), P1b=(10,0,0.05), P2=(10,10,0), P3=(0,10,0); EDGE_LOOP IS wired into FACE_OUTER_BOUND -> ADVANCED_FACE in CLOSED_SHELL; never orphaned â FixGaps3d edge vertex connection tolerance IS mechanism */ 3HEADER; 4FILE_DESCRIPTION(('Twi108'),'2;1'); 5FILE_NAME('Twi108.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.0,0.0,0.05)); 20#11=VERTEX_POINT('',#10); 21#12=CARTESIAN_POINT('',(10.0,10.0,0.0)); 22#13=VERTEX_POINT('',#12); 23#14=CARTESIAN_POINT('',(0.0,10.0,0.0)); 24#15=VERTEX_POINT('',#14); 25#16=CARTESIAN_POINT('',(0.0,0.0,0.0)); 26#17=DIRECTION('',(1.0,0.0,0.0)); 27#18=VECTOR('',#17,10.0); 28#19=LINE('',#16,#18); 29#20=EDGE_CURVE('',#7,#9,#19,.T.); 30#21=ORIENTED_EDGE('',$,$,#20,.T.); 31#22=CARTESIAN_POINT('',(10.0,0.0,0.05)); 32#23=DIRECTION('',(0.0,0.999987500234,-0.00499993750117)); 33#24=VECTOR('',#23,10.0001249992); 34#25=LINE('',#22,#24); 35#26=EDGE_CURVE('',#11,#13,#25,.T.); 36#27=ORIENTED_EDGE('',$,$,#26,.T.); 37#28=CARTESIAN_POINT('',(10.0,10.0,0.0)); 38#29=DIRECTION('',(-1.0,0.0,0.0)); 39#30=VECTOR('',#29,10.0); 40#31=LINE('',#28,#30); 41#32=EDGE_CURVE('',#13,#15,#31,.T.); 42#33=ORIENTED_EDGE('',$,$,#32,.T.); 43#34=CARTESIAN_POINT('',(0.0,10.0,0.0)); 44#35=DIRECTION('',(0.0,-1.0,0.0)); 45#36=VECTOR('',#35,10.0); 46#37=LINE('',#34,#36); 47#38=EDGE_CURVE('',#15,#7,#37,.T.); 48#39=ORIENTED_EDGE('',$,$,#38,.T.); 49#40=EDGE_LOOP('',(#21,#27,#33,#39)); 50#41=FACE_OUTER_BOUND('',#40,.T.); 51#42=ADVANCED_FACE('',(#41),#5,.T.); 52#43=CLOSED_SHELL('',(#42)); 53#44=SHELL_BASED_SURFACE_MODEL('',(#43)); 54#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 55#9051=PRODUCT('Twi108','Twi108','',(#9050)); 56#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 57#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 58#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 59#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 60#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 61#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 62#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 63#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 64#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 65#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#44),#9060); 66#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 67ENDSEC; 68END-ISO-10303-21;