step-examples/12-12-cross-product/Xp021.stp
Sources
- synthesized cross-product.
Description
A face on a closed `CYLINDRICAL_SURFACE` is bounded by three edges. Edge[1].end ≠ Edge[2].start (gap of 0.5 in 3D, far above any reasonable tolerance). The pcurves are absent. The wire's 3D path also wraps around the cylinder (covers > one period in U). All three classes interact on the same wire.
Reproducer recipe
cylinder; face wire with three open edges, gaps, no pcurves, total U-extent > 2π.
Expected kernel behavior
Heal and accept, or reject with E_CONNECTEDNESS / E_MISSING_PCURVE diagnostic: connectedness invariant, pcurve-existence invariant, and period-spanning invariant each addressed; repair where possible, otherwise reject.
Expected validation
occt=shape(1)/shape(1) gmsh=shape(7) ifc=schema_n/a
Byte assertions
contains(b'FILE_SCHEMA')contains(b'EDGE_CURVE')contains(b'ADVANCED_FACE')
Tier-3 assertions
load == "ok"face[0].surface_type == "cylinder"face[0].quadric.radius == 1.0
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* Xp021: Disconnected EDGE_LOOP x pcurve missing x wire bypassing seam */ 3HEADER; 4FILE_DESCRIPTION(('Xp021'),'2;1'); 5FILE_NAME('Xp021.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=CARTESIAN_POINT('',(-1.0,0.0,0.5)); 17#8=CARTESIAN_POINT('',(-0.87758256189,-0.479425538604,0.5)); 18#9=CARTESIAN_POINT('',(-0.809016994375,-0.587785252292,1.0)); 19#10=VERTEX_POINT('',#6); 20#11=VERTEX_POINT('',#7); 21#12=VERTEX_POINT('',#8); 22#13=VERTEX_POINT('',#9); 23#14=DIRECTION('',(-0.970142500145,0.0,0.242535625036)); 24#15=VECTOR('',#14,2.06155281281); 25#16=LINE('',#6,#15); 26#17=EDGE_CURVE('',#10,#11,#16,.T.); 27#18=DIRECTION('',(0.132832352713,-0.209925713884,0.968652032839)); 28#19=VECTOR('',#18,0.51618123232); 29#20=LINE('',#8,#19); 30#21=EDGE_CURVE('',#12,#13,#20,.T.); 31#22=DIRECTION('',(0.841810007277,0.27352065185,-0.465341127195)); 32#23=VECTOR('',#22,2.14896114175); 33#24=LINE('',#9,#23); 34#25=EDGE_CURVE('',#13,#10,#24,.T.); 35#26=ORIENTED_EDGE('',$,$,#17,.T.); 36#27=ORIENTED_EDGE('',$,$,#21,.T.); 37#28=ORIENTED_EDGE('',$,$,#25,.T.); 38#29=EDGE_LOOP('',(#26,#27,#28)); 39#30=FACE_OUTER_BOUND('',#29,.T.); 40#31=ADVANCED_FACE('',(#30),#5,.T.); 41#32=OPEN_SHELL('',(#31)); 42#33=SHELL_BASED_SURFACE_MODEL('',(#32)); 43#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 44#9051=PRODUCT('Xp021','Xp021','',(#9050)); 45#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 46#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 47#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 48#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 49#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 50#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 51#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 52#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 53#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 54#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#33),#9060); 55#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 56#9063=/* xp021 defect: edge_loop disconnected (gap 0.5 in 3D); no pcurves; wire U-extent > 2*pi */; 57ENDSEC; 58END-ISO-10303-21;