Twi017 — Closed 3D curve with two distinct VERTEX_POINTs (single-edge closed)

§12.3b wire-loop

topology

Sources

Description

An EDGE_CURVE whose 3D curve is closed (full circle/ellipse) but cites two distinct VERTEX_POINTs as endpoints; per STEP/OCCT, a closed curve must reuse the same vertex at both ends.

Reproducer recipe

`EDGE_CURVE('',#v1,#v2,#circle_geom,.T.);` with `#circle_geom` a full `CIRCLE` and `#v1`, `#v2` distinct entities.

Expected kernel behavior

heal; translator reuses the first vertex on both ends.

Notes

The translator's edge-transfer pass must detect the closed-curve case and reuse the same vertex at both ends, regardless of how many distinct vertex entities the file references. **See also**: Twi002, Twi018. Synonyms: "circle edge has two distinct endpoints", "full circle stored with separate start and end vertex", "closed curve uses two vertex instances", "ellipse edge with mismatched endpoints", "periodic curve doesn't reuse vertex".

Expected validation

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

Closure intent

sheet — the open shell is the intended final geometry; a solid-only kernel should cleanly refuse.

Tier-3 assertions

Cross-references

Twi002, Twi018

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes
1ISO-10303-21;
2/* Twi017: OPEN_SHELL with one ADVANCED_FACE on a PLANE (z=0, normal +Z); FACE_OUTER_BOUND references an EDGE_LOOP with a single ORIENTED_EDGE wrapping an EDGE_CURVE whose underlying curve is a full CIRCLE (360°) but start vertex #v1 and end vertex #v2 are two distinct VERTEX_POINT entities; two distinct VERTEX_POINTs on a closed circle IS the mechanism; translator must detect closed-curve case and reuse first vertex on both ends; both VERTEX_POINTs wired into EDGE_CURVE, EDGE_LOOP, FACE_OUTER_BOUND, ADVANCED_FACE, OPEN_SHELL */
3HEADER;
4FILE_DESCRIPTION(('Twi017'),'2;1');
5FILE_NAME('Twi017.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=CARTESIAN_POINT('',(0.0,0.0,0.0));
16#7=DIRECTION('',(0.0,0.0,1.0));
17#8=DIRECTION('',(1.0,0.0,0.0));
18#9=AXIS2_PLACEMENT_3D('',#6,#7,#8);
19#10=CIRCLE('',#9,1.0);
20#11=CARTESIAN_POINT('',(1.0,0.0,0.0));
21#12=VERTEX_POINT('',#11);
22#13=CARTESIAN_POINT('',(1.0,0.0,0.0));
23#14=VERTEX_POINT('',#13);
24#15=EDGE_CURVE('',#12,#14,#10,.T.);
25#16=ORIENTED_EDGE('',*,*,#15,.T.);
26#17=EDGE_LOOP('',(#16));
27#18=FACE_OUTER_BOUND('',#17,.T.);
28#19=ADVANCED_FACE('',(#18),#5,.T.);
29#20=OPEN_SHELL('',(#19));
30#21=SHELL_BASED_SURFACE_MODEL('',(#20));
31#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
32#9051=PRODUCT('Twi017','Twi017','',(#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;