step-examples/12-12-cross-product/Xp003.stp
Sources
- synthesized cross-product.
Description
An `OPEN_SHELL` contains three planar faces that all share the same `EDGE_CURVE`. One of the three faces is a sliver; its area is near-zero because two of its bounding edges differ only in the third decimal. The non-manifoldness and the sliver are co-located: the same edge that is shared by three faces is also one of the two near-coincident edges of the sliver.
Reproducer recipe
Three `ADVANCED_FACE`s on a planar surface, each bounded by an `EDGE_LOOP` referencing a common `EDGE_CURVE` `#E`. The third face's outer wire contains `#E` plus a second edge whose endpoints differ from `#E`'s by 1e-4.
Expected kernel behavior
Two independent decisions; whether to collapse the sliver (and if so, into which neighbour), and whether to treat the 3-face junction as legitimate non-manifold topology or a malformed shell. The corpus does not prescribe order.
Expected validation
occt=shape(1)/shape(1) gmsh=shape(21) ifc=schema_n/a
Closure intent
sheet — the open shell is the intended final geometry; a solid-only kernel should cleanly refuse.
Byte assertions
contains(b'FILE_SCHEMA')contains(b'EDGE_CURVE')contains(b'ADVANCED_FACE')
Tier-3 assertions
load == "ok"
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* Xp003: Sliver face à non-manifold edge (3 faces share one edge) */ 3HEADER; 4FILE_DESCRIPTION(('Xp003'),'2;1'); 5FILE_NAME('Xp003.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=CARTESIAN_POINT('',(1.0,0.0,0.0)); 17#8=CARTESIAN_POINT('',(1.0,1.0,0.0)); 18#9=CARTESIAN_POINT('',(0.0,1.0,0.0)); 19#10=CARTESIAN_POINT('',(1.0,-1.0,0.0)); 20#11=CARTESIAN_POINT('',(0.0,-1.0,0.0)); 21#12=CARTESIAN_POINT('',(1.0,0.0001,0.0)); 22#13=CARTESIAN_POINT('',(0.0,0.0001,0.0)); 23#14=VERTEX_POINT('',#6); 24#15=VERTEX_POINT('',#7); 25#16=VERTEX_POINT('',#8); 26#17=VERTEX_POINT('',#9); 27#18=VERTEX_POINT('',#10); 28#19=VERTEX_POINT('',#11); 29#20=VERTEX_POINT('',#12); 30#21=VERTEX_POINT('',#13); 31#22=DIRECTION('',(1.0,0.0,0.0)); 32#23=VECTOR('',#22,1.0); 33#24=LINE('',#6,#23); 34#25=EDGE_CURVE('',#14,#15,#24,.T.); 35#26=DIRECTION('',(0.0,1.0,0.0)); 36#27=VECTOR('',#26,1.0); 37#28=LINE('',#7,#27); 38#29=EDGE_CURVE('',#15,#16,#28,.T.); 39#30=DIRECTION('',(-1.0,0.0,0.0)); 40#31=VECTOR('',#30,1.0); 41#32=LINE('',#8,#31); 42#33=EDGE_CURVE('',#16,#17,#32,.T.); 43#34=DIRECTION('',(0.0,-1.0,0.0)); 44#35=VECTOR('',#34,1.0); 45#36=LINE('',#9,#35); 46#37=EDGE_CURVE('',#17,#14,#36,.T.); 47#38=ORIENTED_EDGE('',$,$,#25,.T.); 48#39=ORIENTED_EDGE('',$,$,#29,.T.); 49#40=ORIENTED_EDGE('',$,$,#33,.T.); 50#41=ORIENTED_EDGE('',$,$,#37,.T.); 51#42=EDGE_LOOP('',(#38,#39,#40,#41)); 52#43=FACE_OUTER_BOUND('',#42,.T.); 53#44=ADVANCED_FACE('',(#43),#5,.T.); 54#45=DIRECTION('',(0.0,-1.0,0.0)); 55#46=VECTOR('',#45,1.0); 56#47=LINE('',#6,#46); 57#48=EDGE_CURVE('',#14,#19,#47,.T.); 58#49=DIRECTION('',(1.0,0.0,0.0)); 59#50=VECTOR('',#49,1.0); 60#51=LINE('',#11,#50); 61#52=EDGE_CURVE('',#19,#18,#51,.T.); 62#53=DIRECTION('',(0.0,1.0,0.0)); 63#54=VECTOR('',#53,1.0); 64#55=LINE('',#10,#54); 65#56=EDGE_CURVE('',#18,#15,#55,.T.); 66#57=ORIENTED_EDGE('',$,$,#25,.F.); 67#58=ORIENTED_EDGE('',$,$,#48,.T.); 68#59=ORIENTED_EDGE('',$,$,#52,.T.); 69#60=ORIENTED_EDGE('',$,$,#56,.T.); 70#61=EDGE_LOOP('',(#57,#58,#59,#60)); 71#62=FACE_OUTER_BOUND('',#61,.T.); 72#63=ADVANCED_FACE('',(#62),#5,.T.); 73#64=DIRECTION('',(0.0,1.0,0.0)); 74#65=VECTOR('',#64,0.0001); 75#66=LINE('',#7,#65); 76#67=EDGE_CURVE('',#15,#20,#66,.T.); 77#68=DIRECTION('',(-1.0,0.0,0.0)); 78#69=VECTOR('',#68,1.0); 79#70=LINE('',#12,#69); 80#71=EDGE_CURVE('',#20,#21,#70,.T.); 81#72=DIRECTION('',(0.0,-1.0,0.0)); 82#73=VECTOR('',#72,0.0001); 83#74=LINE('',#13,#73); 84#75=EDGE_CURVE('',#21,#14,#74,.T.); 85#76=ORIENTED_EDGE('',$,$,#25,.T.); 86#77=ORIENTED_EDGE('',$,$,#67,.T.); 87#78=ORIENTED_EDGE('',$,$,#71,.T.); 88#79=ORIENTED_EDGE('',$,$,#75,.T.); 89#80=EDGE_LOOP('',(#76,#77,#78,#79)); 90#81=FACE_OUTER_BOUND('',#80,.T.); 91#82=ADVANCED_FACE('',(#81),#5,.T.); 92#83=OPEN_SHELL('',(#44,#63,#82)); 93#84=SHELL_BASED_SURFACE_MODEL('',(#83)); 94#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 95#9051=PRODUCT('Xp003','Xp003','',(#9050)); 96#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 97#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 98#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 99#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 100#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 101#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 102#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 103#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 104#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 105#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#84),#9060); 106#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 107ENDSEC; 108END-ISO-10303-21;