Gp059 — ShapeFix_Edge.FixSameParameter zero-length edge

§12.2a

crash geometry

Sources

Description

ShapeFix_Edge.FixSameParameter zero-length edge

Reproducer recipe

Expected kernel behavior

Given an edge whose 3D curve has zero arc length (both ends are the same point), test for the zero before using the length as a divisor: fall back to the model's default tolerance rather than computing a length-scaled one, so the edge's tolerance can never become NaN or infinite. Mark the edge degenerate — a candidate to be merged away with its neighbours — and report it; a non-finite tolerance must never be propagated into the topology.

Notes

RUNTIME-VERIFIED 2026-08-09 — this file's recorded `signal(11)` is driven by a core geometry entity written with the wrong number of arguments (typically the name string omitted, which shifts every later value one slot left, putting a reference where a string belongs). The abort happens during loading — before any repair routine runs. Full census in `BACKLOG.md` (M.18).

Expected validation

occt=signal(11)/signal(11) gmsh=signal(11) ifc=accept(0)

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes
1ISO-10303-21;
2HEADER;
3FILE_DESCRIPTION(('Gp059: FixSameParameter zero-length edge; division by arc length produces NaN'),2000);
4FILE_NAME('Gp059.stp','2026-06-15T00:00:00',(''),(''),'',' ',' ');
5FILE_SCHEMA(('IFC4'));
6ENDSEC;
7DATA;
8#1=APPLICATION_PROTOCOL_DEFINITION('international standard','ifc',2000,#2);
9#2=APPLICATION_CONTEXT('3D structural analysis and design');
10#10=AXIS2_PLACEMENT_3D('origin',#11,#12,#13);
11#11=CARTESIAN_POINT('',(0.,0.,0.));
12#12=DIRECTION('',(0.,0.,1.));
13#13=DIRECTION('',(1.,0.,0.));
14#20=PLANE('face_zero_len',#10);
15#30=LINE('zero_arc_length_3d',#31,#32);
16#31=CARTESIAN_POINT('',(5.,5.,0.));
17#32=DIRECTION('',(1.,0.,0.));
18#40=LINE('zero_arc_pcurve',#41,#42);
19#41=CARTESIAN_POINT('',(1.,1.));
20#42=DIRECTION('',(1.,0.));
21#50=VERTEX_POINT('v_zero',#31);
22#60=EDGE_CURVE('zero_length_degen',#50,#50,.T.,#30,.T.);
23#70=PCURVE('pcurve_zero_len',#20,#40);
24#80=EDGE_LOOP('loop_zero',(#60));
25#90=ADVANCED_FACE('face_zero_arc',
26  (#80),#20,.T.);
27#100=SHELL_BASED_SURFACE_MODEL('sbsm',(#110));
28#110=CLOSED_SHELL('shell',(#90));
29#9000=PRODUCT_CONTEXT('',#1,'mechanical');
30#9001=PRODUCT('Gp059','Gp059','',(#9000));
31#9002=PRODUCT_DEFINITION_FORMATION('','',#9001);
32#9003=PRODUCT_DEFINITION_CONTEXT('part definition',#1,'design');
33#9004=PRODUCT_DEFINITION('','',#9002,#9003);
34#9005=PRODUCT_DEFINITION_SHAPE('','',#9004);
35#9006=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
36#9007=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
37#9008=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
38#9009=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9006,'distance_accuracy_value','');
39#9010=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9009))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9006,#9007,#9008))REPRESENTATION_CONTEXT('','3D'));
40#9021=SHELL_BASED_SURFACE_MODEL('sbsm',(#110));
41#9022=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#9021),#9010);
42#9023=SHAPE_DEFINITION_REPRESENTATION(#9005,#9022);
43ENDSEC;
44END-ISO-10303-21;