Twi152 — ShapeFix_Wire.FixIntersectingEdges line-segment-vs-circle-arc

§12.3b

topology

Sources

Description

ShapeFix_Wire.FixIntersectingEdges line-segment-vs-circle-arc

Reproducer recipe

Expected kernel behavior

The wire mixes a straight edge from (0,0,0) to (10,0,0) with a radius-10 `CIRCLE` edge trimmed by its vertices (10,0,0) and (0,10,0), and no two edges actually cross. Any split or intersection parameter on the circle must be obtained by inverting the circle's own parametrization about its placement axis, never by interpolating linearly between the edge's start and end parameters — arc parameter is not affine in position along the curve, so interpolation lands off it. Verify every computed split by evaluating the curve at the returned parameter and comparing with the intended 3D point within tolerance, and discard the split if they disagree.

Expected validation

occt=shape(1)/shape(1) gmsh=shape(9) 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/* Twi152: Single ADVANCED_FACE on a PLANE in a CLOSED_SHELL; outer EDGE_LOOP has 4 edges: E0 LINE P0=(0,0,0)→P1=(10,0,0); E1 CIRCLE arc center=(0,0,0) radius=10, P1=(10,0,0)→P2=(0,10,0), theta=0→pi/2; E2 LINE P2=(0,10,0)→P3=(3,3,0) — intersects arc E1 near theta=pi/3; E3 LINE P3=(3,3,0)→P0=(0,0,0) — closes loop; LINE E2 crosses CIRCLE arc E1 inside the domain; FixIntersectingEdges split logic applies linear parameter interpolation to arc parameter — non-linear arc maps linearly-interpolated parameter to wrong 3D split point IS mechanism; EDGE_LOOP IS wired into FACE_OUTER_BOUND -> ADVANCED_FACE in CLOSED_SHELL; never orphaned */
3HEADER;
4FILE_DESCRIPTION(('Twi152'),'2;1');
5FILE_NAME('Twi152.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=VERTEX_POINT('',#6);
17#8=CARTESIAN_POINT('',(10.0,0.0,0.0));
18#9=VERTEX_POINT('',#8);
19#10=CARTESIAN_POINT('',(0.0,10.0,0.0));
20#11=VERTEX_POINT('',#10);
21#12=CARTESIAN_POINT('',(3.0,3.0,0.0));
22#13=VERTEX_POINT('',#12);
23#14=CARTESIAN_POINT('',(0.0,0.0,0.0));
24#15=DIRECTION('',(1.0,0.0,0.0));
25#16=VECTOR('',#15,10.0);
26#17=LINE('',#14,#16);
27#18=EDGE_CURVE('',#7,#9,#17,.T.);
28#19=ORIENTED_EDGE('',$,$,#18,.T.);
29#20=CARTESIAN_POINT('',(0.0,0.0,0.0));
30#21=DIRECTION('',(0.0,0.0,1.0));
31#22=DIRECTION('',(1.0,0.0,0.0));
32#23=AXIS2_PLACEMENT_3D('',#20,#21,#22);
33#24=CIRCLE('',#23,10.0);
34#25=EDGE_CURVE('',#9,#11,#24,.T.);
35#26=ORIENTED_EDGE('',$,$,#25,.T.);
36#27=CARTESIAN_POINT('',(0.0,10.0,0.0));
37#28=DIRECTION('',(0.393919298579,-0.919145030018,0.0));
38#29=VECTOR('',#28,7.61577310586);
39#30=LINE('',#27,#29);
40#31=EDGE_CURVE('',#11,#13,#30,.T.);
41#32=ORIENTED_EDGE('',$,$,#31,.T.);
42#33=CARTESIAN_POINT('',(3.0,3.0,0.0));
43#34=DIRECTION('',(-0.707106781187,-0.707106781187,0.0));
44#35=VECTOR('',#34,4.24264068712);
45#36=LINE('',#33,#35);
46#37=EDGE_CURVE('',#13,#7,#36,.T.);
47#38=ORIENTED_EDGE('',$,$,#37,.T.);
48#39=EDGE_LOOP('',(#19,#26,#32,#38));
49#40=FACE_OUTER_BOUND('',#39,.T.);
50#41=ADVANCED_FACE('',(#40),#5,.T.);
51#42=CLOSED_SHELL('',(#41));
52#43=SHELL_BASED_SURFACE_MODEL('',(#42));
53#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
54#9051=PRODUCT('Twi152','Twi152','',(#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;