Twi254 — ShapeAnalysis_Wire.CheckConnected.SAME_VERTEX_BOTH_ENDS

§12.3b

topology

Sources

Description

ShapeAnalysis_Wire.CheckConnected.SAME_VERTEX_BOTH_ENDS

Reproducer recipe

Expected kernel behavior

Recognize a genuine degenerate self-loop: `self_loop_e` has the same VERTEX_POINT entity as both its start and end vertex. Since an EDGE_CURVE's real extent is bounded by projecting its vertices onto the curve, and both vertices project to the identical point (0,0,0), this edge is zero-length regardless of the underlying LINE's own declared direction and magnitude. A kernel must test vertex identity explicitly (same entity or coincident within tolerance) rather than assume any edge referencing a curve implies nonzero length, and reject or drop a self-loop edge like this one.

Expected validation

occt=empty/empty gmsh=empty 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/* Twi254: GEOMETRIC_CURVE_SET containing EDGE_LOOP with single self-loop edge; self_loop_e: EDGE_CURVE with V1 == V2 (same VERTEX_POINT entity) IS self-loop defect; FirstVertex() == LastVertex() — IsSame() must detect IS connectivity masked without guard; NbEdges==1 also exercises trivial-wire guard path; GEOMETRIC_CURVE_SET IS model entity — OCC yields empty; EDGE_LOOP has no wrapping FACE — bare loop */
3HEADER;
4FILE_DESCRIPTION(('Twi254'),'2;1');
5FILE_NAME('Twi254.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=VERTEX_POINT('',#1);
12#3=DIRECTION('',(1.0,0.0,0.0));
13#4=VECTOR('',#3,1.0);
14#5=CARTESIAN_POINT('',(0.0,0.0,0.0));
15#6=LINE('',#5,#4);
16#7=EDGE_CURVE('self_loop_e',#2,#2,#6,.T.);
17#8=ORIENTED_EDGE('',*,*,#7,.T.);
18#9=EDGE_LOOP('',(#8));
19#10=GEOMETRIC_CURVE_SET('',(#9));
20#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
21#9051=PRODUCT('Twi254','Twi254','',(#9050));
22#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
23#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
24#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
25#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
26#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
27#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
28#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
29#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
30#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
31#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#10),#9060);
32#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
33ENDSEC;
34END-ISO-10303-21;