Gp171 — Full-circle `CIRCLE` `EDGE_CURVE` with two near-coincident but distinct `VERTEX_POINT`s

§12-2a pcurves (sub-class: full-circle closure / near-coincident vertices)

P2 — spec deviation (no data loss)

geometry

Sources

Sender

STEP exporters that emit a full-circle `EDGE_CURVE` with `edge_start` ≠ `edge_end` but at distance < `UNCERTAINTY_MEASURE_WITH_UNIT`; common in CATIA/SolidWorks exports of near-degenerate revolution features.

Description

STEP file with a planar face (`PLANE`, z=0, normal +Z) bounded by a single `FACE_OUTER_BOUND` containing one `ORIENTED_EDGE` whose basis is a `CIRCLE` (radius=5.0, axis=+Z, center at origin). `edge_start` and `edge_end` are two **distinct** `VERTEX_POINT` entities — V1 at (5.0, 0.0, 0.0) and V2 at (5.0, −1e-8, 0.0) — separated by ~1e-8 m, which is within the declared `UNCERTAINTY_MEASURE_WITH_UNIT = 1e-7`. The circle's parametric extent runs from θ=0 to θ≈2π−2×10⁻⁹ rad (not exactly 2π). Some readers collapse the two vertices into one (treating the loop as closed); others preserve both vertices and produce a wire with a near-zero-length free edge at the closure point.

Reproducer recipe

`CIRCLE(radius=5)` on z=0 `PLANE`; `EDGE_CURVE` with `edge_start=VERTEX_POINT((5,0,0))` and `edge_end=VERTEX_POINT((5,-1e-8,0))`; `UNCERTAINTY_MEASURE_WITH_UNIT=1e-7`; single `ORIENTED_EDGE` in the `FACE_OUTER_BOUND`. OCCT loads the face (shape(1)) with 2 vertex entries both resolving to (5,0,0) and 1 edge.

Expected kernel behavior

detect near-coincident `edge_start`/`edge_end` on a closed-curve `EDGE_CURVE` when vertex gap < declared tolerance; collapse to a single vertex and treat as a true closed loop; emit `W_NEAR_COINCIDENT_CLOSURE_VERTICES`.

Notes

OCCT MANTIS 0027634. B4 wave-6 DEF-DD. Synonyms: "full-circle edge with two vertices at closure", "CIRCLE EDGE_CURVE edge_start edge_end near-coincident", "near-degenerate circle closure vertex", "two distinct vertices on full-revolution CIRCLE", "zero-length free edge at closure point".

Expected validation

occt=shape(1)/shape(1) gmsh=shape(3) ifc=schema_n/a

Byte assertions

Tier-3 assertions

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* Gp171: PLANE face with single CIRCLE EDGE_CURVE (radius=5.0); edge_start = VERTEX_POINT at (5.0,0.0,0.0); edge_end = distinct VERTEX_POINT at (5.0,-1e-8,0.0) (gap=1e-8 < UNCERTAINTY=1e-7); circle endpoints at theta=0 and theta=2pi-2e-9 rad; near-coincident vertices create near-zero free edge at closure — readers may collapse to one vertex (treating loop as closed) or preserve both (zero-length free edge); OCCT MANTIS 0027634; SHELL_BASED_SURFACE_MODEL IS model entity */
3HEADER;
4FILE_DESCRIPTION(('Gp171'),'2;1');
5FILE_NAME('Gp171.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=(GEOMETRIC_REPRESENTATION_CONTEXT(2)PARAMETRIC_REPRESENTATION_CONTEXT()REPRESENTATION_CONTEXT('UV','2D'));
16#7=CARTESIAN_POINT('',(0.0,0.0,0.0));
17#8=DIRECTION('',(0.0,0.0,1.0));
18#9=DIRECTION('',(1.0,0.0,0.0));
19#10=AXIS2_PLACEMENT_3D('',#7,#8,#9);
20#11=CIRCLE('full_circle',#10,5.0);
21#12=CARTESIAN_POINT('',(5.0,0.0,0.0));
22#13=CARTESIAN_POINT('',(5.0,-1.0E-08,0.0));
23#14=VERTEX_POINT('',#12);
24#15=VERTEX_POINT('',#13);
25#16=CARTESIAN_POINT('',(0.0,0.0));
26#17=DIRECTION('',(1.0,0.0));
27#18=AXIS2_PLACEMENT_2D('',#16,#17);
28#19=CIRCLE('pc_circle_2d',#18,5.0);
29#20=DEFINITIONAL_REPRESENTATION('pc_circle_def',(#19),#6);
30#21=PCURVE('full_circle_pc',#5,#20);
31#22=SURFACE_CURVE('full_circle_sc',#11,(#21),.PCURVE_S1.);
32#23=EDGE_CURVE('full_circle_ec',#14,#15,#22,.T.);
33#24=ORIENTED_EDGE('',$,$,#23,.T.);
34#25=EDGE_LOOP('',(#24));
35#26=FACE_OUTER_BOUND('',#25,.T.);
36#27=ADVANCED_FACE('',(#26),#5,.T.);
37#28=OPEN_SHELL('',(#27));
38#29=SHELL_BASED_SURFACE_MODEL('',(#28));
39#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
40#9051=PRODUCT('Gp171','Gp171','',(#9050));
41#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
42#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
43#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
44#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
45#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
46#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
47#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
48#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
49#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
50#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#29),#9060);
51#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
52ENDSEC;
53END-ISO-10303-21;