N077 — BRepLib.BuildCurves3d batch-batch failure

§12.4

geometry

Sources

Description

BRepLib.BuildCurves3d batch-batch failure

Reproducer recipe

Expected kernel behavior

accept-and-repair: edges e0/e1 are ordinary unit-length lines; e2 (`e2_no_curve_fails`) is a genuinely zero-length `LINE` (`VECTOR` magnitude 0.0) between two vertices that share the same coordinates (2.0,0.0,0.0) though they are distinct `CARTESIAN_POINT` instances. A correct kernel should detect and drop (or merge the endpoints of) the zero-length edge and still return the two valid edges -- an all-or-nothing failure that discards e0/e1 because e2 is degenerate is the wrong behavior, but so is silently keeping a zero-length edge as if it were normal.

Notes

Provenance tier: bytes-only (Q5 full-corpus 2026-07-01).

Expected validation

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

Provenance tier

bytes-only — defect not fully embodied in fixture bytes.

Tier-3 assertions

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes
1ISO-10303-21;
2/* N077: BuildCurves3d batch: 3 edges; edge3 has no 3D curve; atomic failure hides edges 1+2 success; GEOMETRIC_CURVE_SET — OCC yields empty */
3HEADER;
4FILE_DESCRIPTION(('N077'),'2;1');
5FILE_NAME('N077.stp','2026-06-17T00:00:00',(''),(''),'cad-research-suite','','');
6FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }'));
7ENDSEC;
8DATA;
9#1=CARTESIAN_POINT('p0',(0.0,0.0,0.0));
10#2=CARTESIAN_POINT('p1',(1.0,0.0,0.0));
11#3=CARTESIAN_POINT('p2',(2.0,0.0,0.0));
12#4=VERTEX_POINT('v0',#1);
13#5=VERTEX_POINT('v1',#2);
14#6=VERTEX_POINT('v2',#3);
15#7=DIRECTION('',(1.0,0.0,0.0));
16#8=VECTOR('',#7,1.0);
17#9=LINE('',#1,#8);
18#10=EDGE_CURVE('e0_valid',#4,#5,#9,.T.);
19#11=VECTOR('',#7,1.0);
20#12=LINE('',#2,#11);
21#13=EDGE_CURVE('e1_valid',#5,#6,#12,.T.);
22#14=CARTESIAN_POINT('p3_degen',(2.0,0.0,0.0));
23#15=CARTESIAN_POINT('p4_degen',(2.0,0.0,0.0));
24#16=VERTEX_POINT('v3_degen',#14);
25#17=VERTEX_POINT('v4_degen',#15);
26#18=DIRECTION('',(1.0,0.0,0.0));
27#19=VECTOR('',#18,0.0);
28#20=LINE('degen_line_zero_length',#14,#19);
29#21=EDGE_CURVE('e2_no_curve_fails',#16,#17,#20,.T.);
30#22=GEOMETRIC_CURVE_SET('batch_edges',(#10,#13,#21));
31#23=APPLICATION_CONTEXT('automotive_design');
32#24=PRODUCT_CONTEXT('',#23,'mechanical');
33#25=PRODUCT('N077','N077','',(#24));
34#26=PRODUCT_DEFINITION_FORMATION('','',#25);
35#27=PRODUCT_DEFINITION_CONTEXT('part definition',#23,'design');
36#28=PRODUCT_DEFINITION('','',#26,#27);
37#29=PRODUCT_DEFINITION_SHAPE('','',#28);
38#30=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
39#31=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
40#32=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
41#33=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#30,'distance_accuracy_value','model_precision');
42#34=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#33))GLOBAL_UNIT_ASSIGNED_CONTEXT((#30,#31,#32))REPRESENTATION_CONTEXT('ctx','3D'));
43#35=GEOMETRICALLY_BOUNDED_WIREFRAME_SHAPE_REPRESENTATION('',(#22),#34);
44#36=SHAPE_DEFINITION_REPRESENTATION(#29,#35);
45ENDSEC;
46END-ISO-10303-21;