step-examples/12-3b-wires/Twi227.stp
Sources
- synthesized — no external source cited
Description
Every LINE puts a direction entity in the slot that requires a vector, so the reader aborts before pcurve gap repair is reached
Reproducer recipe
Expected kernel behavior
Reject the file, naming each unbuildable curve: LINE entities #400, #405, #408, #410, and #412 all put a DIRECTION (#102) where Part 21 requires a `#N` reference to a VECTOR, so five of the wire's six edge curves cannot be constructed. Two further PCURVE definitions (#403, #406) compound the malformation one level deeper, writing `#B_SPLINE_CURVE_WITH_KNOTS(...)` and `#LINE(...)` inline instead of as `#N` references. A kernel must surface a per-entity diagnostic for the first construction failure it hits rather than dereferencing a null curve; the pcurve-gap defect the old title named is unreachable because none of the wire's LINE-based edges can be built at all.
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/* Twi227 - ShapeFix_Wire.FixGaps2d on-bspline-surface 3 * Defect: Wire on B-spline surface with non-uniform pcurve. FixGaps2d's 4 * bridge logic uses uniform spacing assumption that fails for non-uniform 5 * knot distributions. Gap bridging produces misaligned 2D geometry. 6 */ 7HEADER; 8FILE_DESCRIPTION(('Twi227 test case','FixGaps2d on-bspline-surface â non-uniform pcurve gap'),'2;1'); 9FILE_NAME('Twi227.stp','2026-06-15T00:00:00',('[email protected]'),(''),'cad-research-suite','',''); 10FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }')); 11ENDSEC; 12DATA; 13#1=APPLICATION_CONTEXT('automotive_design'); 14#2=APPLICATION_PROTOCOL_DEFINITION('international standard','automotive_design',2000,#1); 15#100=CARTESIAN_POINT('',(0.0,0.0,0.0)); 16#101=DIRECTION('',(0.0,0.0,1.0)); 17#102=DIRECTION('',(1.0,0.0,0.0)); 18#103=AXIS2_PLACEMENT_3D('',#100,#101,#102); 19/* B-spline surface with non-uniform parametrization */ 20#200=CARTESIAN_POINT('',(0.0,0.0,0.0)); 21#201=CARTESIAN_POINT('',(5.0,0.0,2.0)); 22#202=CARTESIAN_POINT('',(10.0,0.0,1.0)); 23#203=CARTESIAN_POINT('',(0.0,5.0,1.0)); 24#204=CARTESIAN_POINT('',(5.0,5.0,3.0)); 25#205=CARTESIAN_POINT('',(10.0,5.0,2.0)); 26#206=CARTESIAN_POINT('',(0.0,10.0,0.5)); 27#207=CARTESIAN_POINT('',(5.0,10.0,2.5)); 28#208=CARTESIAN_POINT('',(10.0,10.0,1.5)); 29/* B-spline surface with non-uniform knot distribution */ 30#210=B_SPLINE_SURFACE_WITH_KNOTS('bsurf',2,2,(#200,#201,#202,#203,#204,#205,#206,#207,#208), 31 (0.0,0.0,0.0,5.0,10.0,10.0,10.0),(0.0,0.0,0.0,3.0,10.0,10.0,10.0), 32 (0.0,5.0,10.0),(0.0,3.0,10.0),(1,1,1,1,1,1),(1,1,1,1,1,1),.UNSPECIFIED.); 33/* Vertices for wire with gap in parametric space */ 34#300=CARTESIAN_POINT('',(0.0,0.0,0.0)); 35#301=CARTESIAN_POINT('',(5.0,2.5,1.5)); 36#302=CARTESIAN_POINT('',(5.2,2.8,1.6)); 37#303=CARTESIAN_POINT('',(10.0,5.0,2.0)); 38#304=CARTESIAN_POINT('',(7.5,7.5,2.0)); 39#305=CARTESIAN_POINT('',(0.0,10.0,0.5)); 40/* Wire vertices */ 41#310=VERTEX_POINT('',#300); 42#311=VERTEX_POINT('',#301); 43#312=VERTEX_POINT('',#302); 44#313=VERTEX_POINT('',#303); 45#314=VERTEX_POINT('',#304); 46#315=VERTEX_POINT('',#305); 47/* Edges with parametric gap between E2 and E3 */ 48#400=LINE('',#300,#102); 49#401=EDGE_CURVE('',#310,#311,#400,.T.); 50/* Edge2: curve on surface with non-uniform knot region */ 51#402=B_SPLINE_CURVE_WITH_KNOTS('',2,(#301,#302,#303),(0.0,2.5,5.0,7.5,10.0),(2,1,2),.U.); 52#403=PCURVE('',#210,(#B_SPLINE_CURVE_WITH_KNOTS('',1,(CARTESIAN_POINT('',(1.0,2.5)),CARTESIAN_POINT('',(1.0,2.8)),CARTESIAN_POINT('',(1.0,5.0))),(0.0,2.5,5.0,7.5,10.0),(1,1,1),.U.))); 53#404=EDGE_CURVE('',#311,#313,#402,.T.); 54/* Edge3: gap segment bridging parametric discontinuity */ 55#405=LINE('',#302,#102); 56#406=PCURVE('',#210,(#LINE('',#CARTESIAN_POINT('',(1.0,2.8)),#DIRECTION('',(0.05,0.15))))); 57#407=EDGE_CURVE('',#312,#314,#405,.T.); 58/* Closing edges */ 59#408=LINE('',#303,#102); 60#409=EDGE_CURVE('',#313,#314,#408,.T.); 61#410=LINE('',#304,#102); 62#411=EDGE_CURVE('',#314,#315,#410,.T.); 63#412=LINE('',#305,#102); 64#413=EDGE_CURVE('',#315,#310,#412,.T.); 65/* Oriented edges forming closed loop */ 66#500=ORIENTED_EDGE('',*,*,#401,.T.); 67#501=ORIENTED_EDGE('',*,*,#404,.T.); 68#502=ORIENTED_EDGE('',*,*,#407,.T.); 69#503=ORIENTED_EDGE('',*,*,#409,.T.); 70#504=ORIENTED_EDGE('',*,*,#411,.T.); 71#505=ORIENTED_EDGE('',*,*,#413,.T.); 72/* Closed edge loop */ 73#510=EDGE_LOOP('',(#500,#501,#502,#503,#504,#505)); 74/* Face on B-spline surface */ 75#520=FACE_OUTER_BOUND('',#510,.T.); 76#521=ADVANCED_FACE('',(#520),#210,.T.); 77/* Shell and representation */ 78#600=CLOSED_SHELL('',(#521)); 79#9021=SHELL_BASED_SURFACE_MODEL('sbsm',(#600)); 80#9000=PRODUCT_CONTEXT('',#1,'mechanical'); 81#9001=PRODUCT('Twi227','Twi227','',(#9000)); 82#9002=PRODUCT_DEFINITION_FORMATION('','',#9001); 83#9003=PRODUCT_DEFINITION_CONTEXT('part definition',#1,'design'); 84#9004=PRODUCT_DEFINITION('','',#9002,#9003); 85#9005=PRODUCT_DEFINITION_SHAPE('','',#9004); 86#9006=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 87#9007=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 88#9008=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 89#9009=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9006,'distance_accuracy_value',''); 90#9010=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9009))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9006,#9007,#9008))REPRESENTATION_CONTEXT('','3D')); 91#9022=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#9021),#9010); 92#9023=SHAPE_DEFINITION_REPRESENTATION(#9005,#9022); 93ENDSEC; 94END-ISO-10303-21;