N118 — BRepLib.UpdateEdgeTol with-pcurve-discontinuity

§12.4

topology

Sources

Description

BRepLib.UpdateEdgeTol with-pcurve-discontinuity

Reproducer recipe

Expected kernel behavior

reject-with-diagnostic: the edge's pcurve is described as having a genuine 0.5-unit discontinuity at u=0.5 between two B-spline segments. Whether a specific sampling routine 'inflates' tolerance to 0.5 to paper over the jump is an internal implementation detail, but the underlying pattern -- a pcurve with a real C0 break -- is a genuine defect class; a correct kernel should detect the discontinuity directly (compare segment endpoints at the shared parameter) and reject or explicitly re-stitch the pcurve rather than silently absorbing the 0.5mm jump into an inflated edge tolerance.

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/* N118: OPEN_SHELL face with edge_pcurve_disc (v_start→v_end, 10mm 3D line); B-spline pcurve has C0 discontinuity jump of 0.5 units at u=0.5; UpdateEdgeTol uniform sampling hits discontinuity and inflates tolerance to 0.5 instead of reporting the gap */
3HEADER;
4FILE_DESCRIPTION(('N118'),'2;1');
5FILE_NAME('N118.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=CARTESIAN_POINT('',(10.0,0.0,0.0));
12#3=VERTEX_POINT('v_start',#1);
13#4=VERTEX_POINT('v_end',#2);
14#5=DIRECTION('',(1.0,0.0,0.0));
15#6=VECTOR('',#5,10.0);
16#7=LINE('',#1,#6);
17#8=DIRECTION('',(0.0,0.0,1.0));
18#9=DIRECTION('',(1.0,0.0,0.0));
19#10=AXIS2_PLACEMENT_3D('',#1,#8,#9);
20#11=PLANE('',#10);
21#12=CARTESIAN_POINT('pca_0',(0.0,0.0));
22#13=CARTESIAN_POINT('pca_1',(2.5,0.1));
23#14=CARTESIAN_POINT('pca_2',(5.0,0.0));
24#15=B_SPLINE_CURVE_WITH_KNOTS('pcurve_a',2,(#12,#13,#14),.UNSPECIFIED.,.F.,.F.,(3,3),(0.0,1.0),.UNSPECIFIED.);
25#16=CARTESIAN_POINT('pcb_0',(5.0,0.5));
26#17=CARTESIAN_POINT('pcb_1',(7.5,0.4));
27#18=CARTESIAN_POINT('pcb_2',(10.0,0.0));
28#19=B_SPLINE_CURVE_WITH_KNOTS('pcurve_b',2,(#16,#17,#18),.UNSPECIFIED.,.F.,.F.,(3,3),(0.0,1.0),.UNSPECIFIED.);
29#20=PCURVE('',#11,#15);
30#21=EDGE_CURVE('edge_pcurve_disc',#3,#4,#7,.T.);
31#22=CARTESIAN_POINT('',(10.0,1.0,0.0));
32#23=CARTESIAN_POINT('',(0.0,1.0,0.0));
33#24=VERTEX_POINT('',#22);
34#25=VERTEX_POINT('',#23);
35#26=DIRECTION('',(0.0,1.0,0.0));
36#27=VECTOR('',#26,1.0);
37#28=LINE('',#2,#27);
38#29=EDGE_CURVE('',#4,#24,#28,.T.);
39#30=DIRECTION('',(-1.0,0.0,0.0));
40#31=VECTOR('',#30,10.0);
41#32=LINE('',#22,#31);
42#33=EDGE_CURVE('',#24,#25,#32,.T.);
43#34=DIRECTION('',(0.0,-1.0,0.0));
44#35=VECTOR('',#34,1.0);
45#36=LINE('',#23,#35);
46#37=EDGE_CURVE('',#25,#3,#36,.T.);
47#38=ORIENTED_EDGE('',$,$,#21,.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),#11,.T.);
54#45=OPEN_SHELL('',(#44));
55#46=SHELL_BASED_SURFACE_MODEL('',(#45));
56#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
57#9051=PRODUCT('N118','N118','',(#9050));
58#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
59#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
60#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
61#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
62#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
63#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
64#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
65#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
66#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
67#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#46),#9060);
68#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
69ENDSEC;
70END-ISO-10303-21;