Twi211 — ShapeFix_Wire.FixLacking surface-edge-direction-mismatch

§12.3b

topology

Sources

Description

ShapeFix_Wire.FixLacking surface-edge-direction-mismatch

Reproducer recipe

Expected kernel behavior

All four edges reference full circles of radius 5 sharing one axis and reference direction, so their extents come only from their vertices; the third additionally declares its curve to run opposite to the edge, which would make it traverse nearly the whole circle backwards instead of the 0.1 rad step from its start vertex to its end vertex. Validate that declaration by evaluating the curve at the parameters of the edge's own start and end vertices and comparing the resulting direction of travel with the vertex order, then set the sense from that measurement rather than trusting the file or copying a neighbour's value.

Expected validation

occt=empty/empty gmsh=empty ifc=schema_n/a

Tier-3 assertions

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes
1ISO-10303-21;
2/* Twi211: GEOMETRIC_CURVE_SET containing EDGE_LOOP with 5 edges on CYLINDRICAL_SURFACE (radius 5, axis +Z); arc_e0: u=[0,1] rad at z=5, arc forward; arc_e1: u=[1,2] rad at z=5, arc forward; sense_mismatch_e: u=[2.0,2.1] rad at z=5, same_sense .F. (WRONG — should be .T.); surface-curve direction mismatch IS the defect; arc_e3: u=[2.1,2pi] rad at z=5 closing arc; degenerate_e: seam closure stub at u=2*pi/0 seam; FixLacking inserts sense_mismatch_e with reversed sense IS mechanism; GEOMETRIC_CURVE_SET IS model entity — OCC yields empty; all EDGE_CURVEs ARE wired into EDGE_LOOP; never orphaned */
3HEADER;
4FILE_DESCRIPTION(('Twi211'),'2;1');
5FILE_NAME('Twi211.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,5.0);
15#6=CARTESIAN_POINT('',(5.0,0.0,5.0));
16#7=VERTEX_POINT('',#6);
17#8=CARTESIAN_POINT('',(2.70151152934,4.20735492404,5.0));
18#9=VERTEX_POINT('',#8);
19#10=CARTESIAN_POINT('',(-2.08073418274,4.54648713413,5.0));
20#11=VERTEX_POINT('',#10);
21#12=CARTESIAN_POINT('',(-2.524230523,4.31604683324,5.0));
22#13=VERTEX_POINT('',#12);
23#14=CARTESIAN_POINT('',(0.0,0.0,5.0));
24#15=DIRECTION('',(0.0,0.0,1.0));
25#16=DIRECTION('',(1.0,0.0,0.0));
26#17=AXIS2_PLACEMENT_3D('',#14,#15,#16);
27#18=CIRCLE('',#17,5.0);
28#19=EDGE_CURVE('arc_e0',#7,#9,#18,.T.);
29#20=ORIENTED_EDGE('',*,*,#19,.T.);
30#21=CARTESIAN_POINT('',(0.0,0.0,5.0));
31#22=DIRECTION('',(0.0,0.0,1.0));
32#23=DIRECTION('',(1.0,0.0,0.0));
33#24=AXIS2_PLACEMENT_3D('',#21,#22,#23);
34#25=CIRCLE('',#24,5.0);
35#26=EDGE_CURVE('arc_e1',#9,#11,#25,.T.);
36#27=ORIENTED_EDGE('',*,*,#26,.T.);
37#28=CARTESIAN_POINT('',(0.0,0.0,5.0));
38#29=DIRECTION('',(0.0,0.0,1.0));
39#30=DIRECTION('',(1.0,0.0,0.0));
40#31=AXIS2_PLACEMENT_3D('',#28,#29,#30);
41#32=CIRCLE('',#31,5.0);
42#33=EDGE_CURVE('sense_mismatch_e',#11,#13,#32,.F.);
43#34=ORIENTED_EDGE('',*,*,#33,.T.);
44#35=CARTESIAN_POINT('',(0.0,0.0,5.0));
45#36=DIRECTION('',(0.0,0.0,1.0));
46#37=DIRECTION('',(1.0,0.0,0.0));
47#38=AXIS2_PLACEMENT_3D('',#35,#36,#37);
48#39=CIRCLE('',#38,5.0);
49#40=EDGE_CURVE('arc_e3',#13,#7,#39,.T.);
50#41=ORIENTED_EDGE('',*,*,#40,.T.);
51#42=EDGE_LOOP('',(#20,#27,#34,#41));
52#43=GEOMETRIC_CURVE_SET('',(#42));
53#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
54#9051=PRODUCT('Twi211','Twi211','',(#9050));
55#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
56#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
57#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
58#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
59#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
60#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
61#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
62#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
63#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
64#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#43),#9060);
65#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
66ENDSEC;
67END-ISO-10303-21;