step-examples/12-3b-wires/Twi181.stp
Sources
- synthesized — no external source cited
Description
ShapeAnalysis_Wire.CheckGap3d B-spline-vs-LINE
Reproducer recipe
Expected kernel behavior
this model is a bare curve set — it carries no face and no shell — so returning no solid is CORRECT here and is not the defect. `heal` means the wire-level condition (a 3D gap between adjacent edges carrying different curve types) must be detected and reported; it does not mean geometry should appear. A kernel should diagnose that condition and continue processing the remaining entities rather than discarding the model without comment.
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/* Twi181: GEOMETRIC_CURVE_SET containing EDGE_LOOP with 4 edges on PLANE; PLANE: normal +Z, origin (0,0,0); unit square A(0,0)->B(1,0)->C(1,1)->D(0,1)->A; edge e0 (A->B, bspline_end_gap) is a degree-1 B_SPLINE_CURVE_WITH_KNOTS; edge e1 (B->C, line_start_gap) is a plain LINE; both curves meet at B=(1,0,0) with zero actual 3-D gap; CheckGap3d IS mechanism â extracts B-spline endpoint at parameter 1.0 and LINE startpoint at parameter 0.0 via different code paths; parametric mismatch between code paths causes false gap detection; GEOMETRIC_CURVE_SET IS model entity â OCC yields empty; all EDGE_CURVEs ARE wired into EDGE_LOOP; never orphaned */ 3HEADER; 4FILE_DESCRIPTION(('Twi181'),'2;1'); 5FILE_NAME('Twi181.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('',(1.0,0.0,0.0)); 18#9=VERTEX_POINT('',#8); 19#10=CARTESIAN_POINT('',(1.0,1.0,0.0)); 20#11=VERTEX_POINT('',#10); 21#12=CARTESIAN_POINT('',(0.0,1.0,0.0)); 22#13=VERTEX_POINT('',#12); 23#14=CARTESIAN_POINT('',(0.0,0.0,0.0)); 24#15=CARTESIAN_POINT('',(1.0,0.0,0.0)); 25#16=B_SPLINE_CURVE_WITH_KNOTS('',1,(#14,#15),.UNSPECIFIED.,.F.,.F.,(2,2),(0.0,1.0),.UNSPECIFIED.); 26#17=CARTESIAN_POINT('',(0.0,0.0)); 27#18=CARTESIAN_POINT('',(1.0,0.0)); 28#19=B_SPLINE_CURVE_WITH_KNOTS('',1,(#17,#18),.UNSPECIFIED.,.F.,.F.,(2,2),(0.0,1.0),.UNSPECIFIED.); 29#20=DEFINITIONAL_REPRESENTATION('',(#19),#*); 30#21=PCURVE('',#5,#20); 31#22=SURFACE_CURVE('',#16,(#21),.PCURVE_S1.); 32#23=EDGE_CURVE('bspline_end_gap',#7,#9,#22,.T.); 33#24=ORIENTED_EDGE('',*,*,#23,.T.); 34#25=CARTESIAN_POINT('',(1.0,0.0,0.0)); 35#26=DIRECTION('',(0.0,1.0,0.0)); 36#27=VECTOR('',#26,1.0); 37#28=LINE('',#25,#27); 38#29=CARTESIAN_POINT('',(1.0,0.0)); 39#30=DIRECTION('',(0.0,1.0)); 40#31=VECTOR('',#30,1.0); 41#32=LINE('',#29,#31); 42#33=DEFINITIONAL_REPRESENTATION('',(#32),#*); 43#34=PCURVE('',#5,#33); 44#35=SURFACE_CURVE('',#28,(#34),.PCURVE_S1.); 45#36=EDGE_CURVE('line_start_gap',#9,#11,#35,.T.); 46#37=ORIENTED_EDGE('',*,*,#36,.T.); 47#38=CARTESIAN_POINT('',(1.0,1.0,0.0)); 48#39=DIRECTION('',(-1.0,0.0,0.0)); 49#40=VECTOR('',#39,1.0); 50#41=LINE('',#38,#40); 51#42=CARTESIAN_POINT('',(1.0,1.0)); 52#43=DIRECTION('',(-1.0,0.0)); 53#44=VECTOR('',#43,1.0); 54#45=LINE('',#42,#44); 55#46=DEFINITIONAL_REPRESENTATION('',(#45),#*); 56#47=PCURVE('',#5,#46); 57#48=SURFACE_CURVE('',#41,(#47),.PCURVE_S1.); 58#49=EDGE_CURVE('',#11,#13,#48,.T.); 59#50=ORIENTED_EDGE('',*,*,#49,.T.); 60#51=CARTESIAN_POINT('',(0.0,1.0,0.0)); 61#52=DIRECTION('',(0.0,-1.0,0.0)); 62#53=VECTOR('',#52,1.0); 63#54=LINE('',#51,#53); 64#55=CARTESIAN_POINT('',(0.0,1.0)); 65#56=DIRECTION('',(0.0,-1.0)); 66#57=VECTOR('',#56,1.0); 67#58=LINE('',#55,#57); 68#59=DEFINITIONAL_REPRESENTATION('',(#58),#*); 69#60=PCURVE('',#5,#59); 70#61=SURFACE_CURVE('',#54,(#60),.PCURVE_S1.); 71#62=EDGE_CURVE('',#13,#7,#61,.T.); 72#63=ORIENTED_EDGE('',*,*,#62,.T.); 73#64=EDGE_LOOP('',(#24,#37,#50,#63)); 74#65=GEOMETRIC_CURVE_SET('',(#64)); 75#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 76#9051=PRODUCT('Twi181','Twi181','',(#9050)); 77#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 78#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 79#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 80#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 81#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 82#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 83#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 84#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 85#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 86#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#65),#9060); 87#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 88ENDSEC; 89END-ISO-10303-21;