Gp034 — Composite curve segments do not meet within connectivity tolerance

§12.2a pcurves/curves (sub-class: continuity)

geometry

Sources

Description

A `COMPOSITE_CURVE` lists multiple segments that are intended to form a single continuous curve. Segment N's last 3D point sits at a distance of several millimetres from segment N+1's first 3D point; far beyond any reasonable connectivity tolerance. The composite curve is not actually connected; treating it as one curve produces invalid downstream geometry.

Reproducer recipe

Two LINE-based EDGE_CURVEs whose vertices are at `(5,0,0)` and `(5.005,0,0)` respectively. Both edges share a wire but the kernel must report a 5e-3 disconnect.

Expected kernel behavior

report the connectivity defect with the offending segment indices and 3D gap; either bridge the segments by inserting a connecting curve, snap endpoints, or refuse to treat the aggregate as a single curve.

Notes

Similar defect class to `Twi-` wire connectivity but at the curve-aggregate level. **OCC behavior**: accepts and loads shape(1); OCC does not transfer the COMPOSITE_CURVE into the face wire at all (the face loads with no edges), so the declared 3D inter-segment gap never reaches the built shape. Dialing the gap from 0 to 0.5 mm leaves shape-counts and BRepCheck validity unchanged, so the shape-count oracle cannot distinguish it from a gap-free input; shape(1) does not witness a kernel bug. Synonyms: "composite curve segments don't meet", "gap between consecutive composite curve segments", "composite_curve has disconnected segments", "segment N+1 starts far from segment N's end", "composite curve connectivity check fails".

Expected validation

occt=shape(1)/shape(1) gmsh=shape(1) 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/* Gp034: COMPOSITE_CURVE of two LINE segments: segment-1 ends at (5.0,0,0) but segment-2 starts at (5.005,0,0), a 5mm gap far beyond connectivity tolerance; kernel must report gap or refuse; OCC silently accepts */
3HEADER;
4FILE_DESCRIPTION(('Gp034'),'2;1');
5FILE_NAME('Gp034.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=CARTESIAN_POINT('',(10.0,0.0,0.0));
18#9=CARTESIAN_POINT('',(10.0,5.0,0.0));
19#10=CARTESIAN_POINT('',(0.0,5.0,0.0));
20#11=VERTEX_POINT('',#7);
21#12=VERTEX_POINT('',#8);
22#13=VERTEX_POINT('',#9);
23#14=VERTEX_POINT('',#10);
24#15=CARTESIAN_POINT('',(5.0,0.0,0.0));
25#16=CARTESIAN_POINT('',(5.005,0.0,0.0));
26#17=DIRECTION('',(1.0,0.0,0.0));
27#18=VECTOR('',#17,5.0);
28#19=LINE('',#7,#18);
29#20=DIRECTION('',(1.0,0.0,0.0));
30#21=VECTOR('',#20,4.995);
31#22=LINE('',#16,#21);
32#23=COMPOSITE_CURVE_SEGMENT(.CONTINUOUS.,.T.,#19);
33#24=COMPOSITE_CURVE_SEGMENT(.CONTINUOUS.,.T.,#22);
34#25=COMPOSITE_CURVE('gapped_composite',(#23,#24),.F.);
35#26=CARTESIAN_POINT('',(0.0,0.0));
36#27=DIRECTION('',(1.0,0.0));
37#28=VECTOR('',#27,10.0);
38#29=LINE('',#26,#28);
39#30=DEFINITIONAL_REPRESENTATION('pc_bot',(#29),#6);
40#31=PCURVE('bot_pc',#5,#30);
41#32=SURFACE_CURVE('bottom_composite',#25,(#31),.PCURVE_S1.);
42#33=EDGE_CURVE('bottom_edge',#11,#12,#32,.T.);
43#34=DIRECTION('',(0.0,1.0,0.0));
44#35=VECTOR('',#34,5.0);
45#36=LINE('',#8,#35);
46#37=CARTESIAN_POINT('',(10.0,0.0));
47#38=DIRECTION('',(0.0,1.0));
48#39=VECTOR('',#38,5.0);
49#40=LINE('',#37,#39);
50#41=DEFINITIONAL_REPRESENTATION('pc_right',(#40),#6);
51#42=PCURVE('right_pc',#5,#41);
52#43=SURFACE_CURVE('right_edge',#36,(#42),.PCURVE_S1.);
53#44=EDGE_CURVE('right_edge',#12,#13,#43,.T.);
54#45=DIRECTION('',(1.0,0.0,0.0));
55#46=VECTOR('',#45,10.0);
56#47=LINE('',#10,#46);
57#48=CARTESIAN_POINT('',(0.0,5.0));
58#49=DIRECTION('',(1.0,0.0));
59#50=VECTOR('',#49,10.0);
60#51=LINE('',#48,#50);
61#52=DEFINITIONAL_REPRESENTATION('pc_top',(#51),#6);
62#53=PCURVE('top_pc',#5,#52);
63#54=SURFACE_CURVE('top_edge',#47,(#53),.PCURVE_S1.);
64#55=EDGE_CURVE('top_edge',#14,#13,#54,.T.);
65#56=DIRECTION('',(0.0,-1.0,0.0));
66#57=VECTOR('',#56,5.0);
67#58=LINE('',#10,#57);
68#59=CARTESIAN_POINT('',(0.0,5.0));
69#60=DIRECTION('',(0.0,-1.0));
70#61=VECTOR('',#60,5.0);
71#62=LINE('',#59,#61);
72#63=DEFINITIONAL_REPRESENTATION('pc_left',(#62),#6);
73#64=PCURVE('left_pc',#5,#63);
74#65=SURFACE_CURVE('left_edge',#58,(#64),.PCURVE_S1.);
75#66=EDGE_CURVE('left_edge',#14,#11,#65,.T.);
76#67=ORIENTED_EDGE('',$,$,#33,.T.);
77#68=ORIENTED_EDGE('',$,$,#44,.T.);
78#69=ORIENTED_EDGE('',$,$,#55,.F.);
79#70=ORIENTED_EDGE('',$,$,#66,.T.);
80#71=EDGE_LOOP('',(#67,#68,#69,#70));
81#72=FACE_OUTER_BOUND('',#71,.T.);
82#73=ADVANCED_FACE('',(#72),#5,.T.);
83#74=OPEN_SHELL('',(#73));
84#75=SHELL_BASED_SURFACE_MODEL('',(#74));
85#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
86#9051=PRODUCT('Gp034','Gp034','',(#9050));
87#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
88#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
89#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
90#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
91#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
92#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
93#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
94#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
95#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
96#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#75),#9060);
97#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
98ENDSEC;
99END-ISO-10303-21;