step-examples/12-3b-wires/Twi073.stp
Sources
- OCCT `ShapeAnalysis_Wire::CheckGap2d` (`ShapeAnalysis_Wire.hxx:352`)
Description
Pcurve-space analogue of Twi072. Targeted single-junction query that returns whether the pcurve endpoints at junction `num` disagree in UV.
Reproducer recipe
A face with a wire whose junction 2 has a 0.5-unit pcurve gap; caller queries `num=2`.
Expected kernel behavior
Heal and accept: normalize an O(1) check returning OK/DONE/FAIL plus the 2D gap.
Notes
**See also**: Twi072. Per-junction counterpart to Twi069. Synonyms: "single-junction parametric gap query", "specific UV gap location query", "ask about one specific junction in wire UV", "per-index 2D gap diagnostic".- **Byte assertion**: contains(b'CYLINDRICAL_SURFACE(')
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Byte assertions
contains(b'junction2_pcurve_gap_0p5')contains(b'(2.5,0.0)')
Tier-3 assertions
shape_null == True
Cross-references
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* Twi073: GEOMETRIC_CURVE_SET containing EDGE_LOOP on CYLINDRICAL_SURFACE (radius 1); 3 SURFACE_CURVE edges; junction 1 (e1/e2) is clean in UV; junction 2 (e2/e3): e2 pcurve ends at (2.0,0.0), e3 pcurve starts at (2.5,0.0) labelled 'junction2_pcurve_gap_0p5' â 0.5-unit UV gap; CheckGap2d(num=2) targets this specific junction; GEOMETRIC_CURVE_SET IS model entity â OCC yields empty; all EDGE_CURVEs ARE wired into EDGE_LOOP; never orphaned */ 3HEADER; 4FILE_DESCRIPTION(('Twi073'),'2;1'); 5FILE_NAME('Twi073.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=CYLINDRICAL_SURFACE('',#4,1.0); 15#6=CARTESIAN_POINT('',(1.0,0.0,0.0)); 16#7=VERTEX_POINT('',#6); 17#8=CARTESIAN_POINT('',(-0.416146836547,0.909297426826,0.0)); 18#9=VERTEX_POINT('',#8); 19#10=CARTESIAN_POINT('',(-0.416146836547,0.909297426826,0.0)); 20#11=VERTEX_POINT('',#10); 21#12=CARTESIAN_POINT('',(-0.801143615547,0.598472144104,0.0)); 22#13=VERTEX_POINT('',#12); 23#14=CARTESIAN_POINT('',(-0.210795799431,-0.977530117665,0.0)); 24#15=VERTEX_POINT('',#14); 25#16=CARTESIAN_POINT('',(0.0,0.0)); 26#17=DIRECTION('',(1.0,0.0)); 27#18=VECTOR('',#17,2.0); 28#19=LINE('',#16,#18); 29#20=DEFINITIONAL_REPRESENTATION('',(#19),#?); 30#21=PCURVE('',#5,#20); 31#22=CARTESIAN_POINT('',(2.0,0.0)); 32#23=DIRECTION('',(0.0,1.0)); 33#24=VECTOR('',#23,0.5); 34#25=LINE('',#22,#24); 35#26=DEFINITIONAL_REPRESENTATION('',(#25),#?); 36#27=PCURVE('',#5,#26); 37#28=CARTESIAN_POINT('',(2.5,0.0)); 38#29=DIRECTION('',(1.0,0.0)); 39#30=VECTOR('',#29,2.0); 40#31=LINE('junction2_pcurve_gap_0p5',#28,#30); 41#32=DEFINITIONAL_REPRESENTATION('',(#31),#?); 42#33=PCURVE('',#5,#32); 43#34=CARTESIAN_POINT('',(-0.416146836547,0.909297426826,0.0)); 44#35=VERTEX_POINT('',#34); 45#36=CARTESIAN_POINT('',(-0.416146836547,0.909297426826,0.5)); 46#37=VERTEX_POINT('',#36); 47#38=CARTESIAN_POINT('',(1.0,0.0,0.0)); 48#39=DIRECTION('',(-0.841470984808,0.540302305868,0.0)); 49#40=VECTOR('',#39,1.68294196962); 50#41=LINE('',#38,#40); 51#42=SURFACE_CURVE('',#41,(#21),.PCURVE_S1.); 52#43=EDGE_CURVE('',#7,#9,#42,.T.); 53#44=ORIENTED_EDGE('',*,*,#43,.T.); 54#45=CARTESIAN_POINT('',(-0.416146836547,0.909297426826,0.0)); 55#46=DIRECTION('',(0.0,0.0,1.0)); 56#47=VECTOR('',#46,0.5); 57#48=LINE('',#45,#47); 58#49=SURFACE_CURVE('',#48,(#27),.PCURVE_S1.); 59#50=EDGE_CURVE('',#35,#37,#49,.T.); 60#51=ORIENTED_EDGE('',*,*,#50,.T.); 61#52=CARTESIAN_POINT('',(-0.801143615547,0.598472144104,0.0)); 62#53=DIRECTION('',(0.35078322769,-0.936456687291,0.0)); 63#54=VECTOR('',#53,1.68294196962); 64#55=LINE('',#52,#54); 65#56=SURFACE_CURVE('',#55,(#33),.PCURVE_S1.); 66#57=EDGE_CURVE('',#13,#15,#56,.T.); 67#58=ORIENTED_EDGE('',*,*,#57,.T.); 68#59=EDGE_LOOP('',(#44,#51,#58)); 69#60=GEOMETRIC_CURVE_SET('',(#59)); 70#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 71#9051=PRODUCT('Twi073','Twi073','',(#9050)); 72#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 73#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 74#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 75#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 76#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 77#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 78#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 79#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 80#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 81#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#60),#9060); 82#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 83ENDSEC; 84END-ISO-10303-21;