Twi117 — ShapeFix_Wire.FixNotchedEdges singular-derivative

§12.3b

topology

Sources

Description

ShapeFix_Wire.FixNotchedEdges singular-derivative

Reproducer recipe

Expected kernel behavior

Detect the degenerate tangent from repeated poles, not from a computed derivative: edge 2's B-spline (#17) repeats its first pole twice — poles (5,0,0),(5,0,0),(8,3,0),(10,0,0) — which collapses the curve's derivative to zero at its own start (5,0,0), immediately after edge 1 arrives there with tangent (1,0,0). A kernel must flag this junction by checking for repeated consecutive poles (a purely algebraic test) rather than relying on a numerically evaluated tangent that is itself undefined at exactly the point being tested.

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/* Twi117: GEOMETRIC_CURVE_SET containing EDGE_LOOP with 2 edges; e1: LINE (0,0,0)→(5,0,0) tangent (1,0,0) at endpoint; e2: B_SPLINE_CURVE_WITH_KNOTS degree-3 (cubic Bezier); control points P0=(5,0,0), P1=(5,0,0), P2=(8,3,0), P3=(10,0,0); P0==P1 => zero derivative C'(0)=(0,0,0) at start IS singular-derivative defect; FixNotchedEdges samples tangent angle but encounters degenerate zero-length tangent vector and silently fails; GEOMETRIC_CURVE_SET IS model entity — OCC yields empty; all EDGE_CURVEs ARE wired into EDGE_LOOP; never orphaned */
3HEADER;
4FILE_DESCRIPTION(('Twi117'),'2;1');
5FILE_NAME('Twi117.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=VERTEX_POINT('',#1);
12#3=CARTESIAN_POINT('',(5.0,0.0,0.0));
13#4=VERTEX_POINT('',#3);
14#5=CARTESIAN_POINT('',(10.0,0.0,0.0));
15#6=VERTEX_POINT('',#5);
16#7=CARTESIAN_POINT('',(0.0,0.0,0.0));
17#8=DIRECTION('',(1.0,0.0,0.0));
18#9=VECTOR('',#8,5.0);
19#10=LINE('',#7,#9);
20#11=EDGE_CURVE('',#2,#4,#10,.T.);
21#12=ORIENTED_EDGE('',$,$,#11,.T.);
22#13=CARTESIAN_POINT('',(5.0,0.0,0.0));
23#14=CARTESIAN_POINT('',(5.0,0.0,0.0));
24#15=CARTESIAN_POINT('',(8.0,3.0,0.0));
25#16=CARTESIAN_POINT('',(10.0,0.0,0.0));
26#17=B_SPLINE_CURVE_WITH_KNOTS('',3,(#13,#14,#15,#16),.UNSPECIFIED.,.F.,.F.,(4,4),(0.0,1.0),.UNSPECIFIED.);
27#18=EDGE_CURVE('',#4,#6,#17,.T.);
28#19=ORIENTED_EDGE('',$,$,#18,.T.);
29#20=EDGE_LOOP('',(#12,#19));
30#21=GEOMETRIC_CURVE_SET('',(#20));
31#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
32#9051=PRODUCT('Twi117','Twi117','',(#9050));
33#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
34#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
35#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
36#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
37#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
38#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
39#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
40#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
41#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
42#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#21),#9060);
43#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
44ENDSEC;
45END-ISO-10303-21;