Fi004 — B-spline edge's control polygon self-crosses (figure-eight) but the evaluated curve does not; contour is a closed, connected loop

§12.7 feature defects (sub-class: faulty contour)

topology

Sources

Sender

deduced — OCCT uncovered-class sweep

Description

Originally claimed: the user-provided fillet contour (list of spine edges) is not a connected, non-self-crossing curve. Verified 2026-08-07: neither half of that disjunction holds. The 4-edge loop is closed and connected (each edge shares a real vertex with its neighbor, no disjoint segment). The one B-spline edge's 6 control points do form a self-crossing (figure-eight) polygon, but the actual evaluated curve stays smooth throughout its domain — the `self_intersect=.T.` flag on the `B_SPLINE_CURVE_WITH_KNOTS` entity is not supported by the curve's own geometry. What the file actually demonstrates is a curve whose control polygon looks self-crossing while the true curve is not, with a mismatched `self_intersect` metadata flag — not a self-crossing or disjoint fillet contour.

Reproducer recipe

User selects three edges for a single fillet contour, but two of them are not adjacent and one self-crosses.

Expected kernel behavior

Validate contour at request time; reject; or split into multiple contours.

Notes

Synonyms: "broken contour", "fillet input not chainable", "fillet contour invalid", "fillet edges don't connect", "control polygon self-crosses but curve is smooth", "self_intersect flag mismatched with actual curve geometry". **OCC behavior**: OCC loads the file and produces no shape (empty). Re-audit (2026-07-18, empty-claim re-audit) shows the empty is not caused by the declared defect (geometrically inconsistent fillet contour): the model root is a GEOMETRIC_CURVE_SET that wraps an ADVANCED_FACE, and OCC's geometric_set transfer does not build a face from a face embedded in a GEOMETRIC_CURVE_SET. Base, a CLEAN copy (edge loop repaired to a simple contour) and a HUGE copy are all empty, whereas the identical face placed in an OPEN_SHELL loads f=1. Container-level schema-abuse, not a defect-driven silent data-loss, so this is not a proven kernel bug. Corrected 2026-08-07 (title-vs-bytes audit): retitled/redescribed — original claimed the fillet contour itself is disjoint or self-crossing; the loop is provably closed/connected and the B-spline edge's evaluated curve provably does not self-cross (only its control polygon does), so neither disjunct of the original title is true of the bytes.

Expected validation

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

Byte assertions

Tier-3 assertions

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* Fi004: GEOMETRIC_CURVE_SET containing ADVANCED_FACE; FACE_OUTER_BOUND references EDGE_LOOP with a self-crossing fillet contour; one edge is a B_SPLINE_CURVE_WITH_KNOTS labelled 'e3_self_crossing' whose control polygon forms a figure_eight shape; fillet contour is geometrically inconsistent — disjoint or self-crossing; GEOMETRIC_CURVE_SET IS model entity — OCC yields empty; no orphaned entities */
3HEADER;
4FILE_DESCRIPTION(('Fi004'),'2;1');
5FILE_NAME('Fi004.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('',(10.0,0.0,0.0));
17#8=CARTESIAN_POINT('',(10.0,5.0,0.0));
18#9=CARTESIAN_POINT('',(0.0,5.0,0.0));
19#10=VERTEX_POINT('',#6);
20#11=VERTEX_POINT('',#7);
21#12=VERTEX_POINT('',#8);
22#13=VERTEX_POINT('',#9);
23#14=DIRECTION('',(1.0,0.0,0.0));
24#15=VECTOR('',#14,10.0);
25#16=LINE('',#6,#15);
26#17=EDGE_CURVE('e0_bottom',#10,#11,#16,.T.);
27#18=DIRECTION('',(0.0,1.0,0.0));
28#19=VECTOR('',#18,5.0);
29#20=LINE('',#7,#19);
30#21=EDGE_CURVE('e1_right',#11,#12,#20,.T.);
31#22=DIRECTION('',(-1.0,0.0,0.0));
32#23=VECTOR('',#22,10.0);
33#24=LINE('',#8,#23);
34#25=EDGE_CURVE('e2_top',#12,#13,#24,.T.);
35#26=CARTESIAN_POINT('',(0.0,5.0,0.0));
36#27=CARTESIAN_POINT('',(8.0,10.0,0.0));
37#28=CARTESIAN_POINT('',(12.0,2.5,0.0));
38#29=CARTESIAN_POINT('',(-2.0,8.0,0.0));
39#30=CARTESIAN_POINT('',(6.0,-2.0,0.0));
40#31=CARTESIAN_POINT('',(0.0,0.0,0.0));
41#32=B_SPLINE_CURVE_WITH_KNOTS('e3_self_crossing',3,(#26,#27,#28,#29,#30,#31),.UNSPECIFIED.,.F.,.T.,(4,1,1,4),(0.0,0.333333333333,0.666666666667,1.0),.UNSPECIFIED.);
42#33=EDGE_CURVE('figure_eight_contour',#13,#10,#32,.T.);
43#34=ORIENTED_EDGE('',$,$,#17,.T.);
44#35=ORIENTED_EDGE('',$,$,#21,.T.);
45#36=ORIENTED_EDGE('',$,$,#25,.T.);
46#37=ORIENTED_EDGE('',*,*,#33,.T.);
47#38=EDGE_LOOP('',(#34,#35,#36,#37));
48#39=FACE_OUTER_BOUND('',#38,.T.);
49#40=ADVANCED_FACE('',(#39),#5,.T.);
50#41=GEOMETRIC_CURVE_SET('',(#40));
51#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
52#9051=PRODUCT('Fi004','Fi004','',(#9050));
53#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
54#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
55#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
56#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
57#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
58#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
59#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
60#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
61#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
62#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#41),#9060);
63#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
64ENDSEC;
65END-ISO-10303-21;