Twi295 — Chain of two tangent-continuous cubic Bezier edges should be concatenated under ConcatBSplines mode

§12.3b (sub-class: redundant vertex, B-spline/Bezier concatenation)

P2 — spec deviation (no data loss)

topology

Sources

Description

Unlike the LINE case (parallel-direction test) or the CIRCLE case (coincident-centre test, Twi294), B-spline/Bezier edges don't have a single analytic "same curve" predicate — ConcatBSplines mode instead requires the two curves to be geometrically compatible (same degree, and G1/tangent-continuous at the shared vertex) before `GeomConvert`/`BSplCLib` splices their pole and knot sequences into one curve. This fixture's two `EDGE_CURVE`s are distinct `B_SPLINE_CURVE_WITH_KNOTS` entities (degree 3, 4 poles each — ordinary cubic Beziers) positioned so the shared vertex's incoming and outgoing tangent directions agree EXACTLY (`(1,-1,0)` on both sides), meeting at a degree-2 vertex not used by any other wire/face.

Reproducer recipe

`GEOMETRIC_CURVE_SET` containing one `EDGE_LOOP` (mirrors Twi089/Twi294's structure): two `B_SPLINE_CURVE_WITH_KNOTS`-based `EDGE_CURVE`s — e1 poles `(0,0,0)-(1,1,0)-(2,1,0)-(3,0,0)`; e2 poles `(3,0,0)-(4,-1,0)-(5,-1,0)-(6,0,0)` — sharing a tangent-continuous degree-2 `VERTEX_POINT` at `(3,0,0)`.

Expected kernel behavior

splice the two pole/knot sequences into one concatenated B-spline edge (same-domain unification, `myConcatBSplines` mode), or leave as-is if downstream needs the split.

Notes

**See also**: Twi089 (LINE case), Twi294 (CIRCLE-arc case) — the three same-curve-fragmentation siblings for lines, arcs, and B-splines respectively. Verified live: same `GEOMETRIC_CURVE_SET`-is-not-a-shape convention as Twi089/Twi294 — `occt=empty/empty` (`accept_silent`, `shape_null==True`, `n_roots==0`). Synonyms: "two Bezier edges tangent continuous not merged", "ConcatBSplines missing input", "cubic Bezier chain redundant vertex", "G1 continuous B-spline edges unconcatenated", "same-degree B-spline chain fragmentation". Provenance tier: bytes-sufficient.

Expected validation

occt=empty/empty gmsh=empty ifc=schema_n/a

Closure intent

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

Byte assertions

Tier-3 assertions

Cross-references

Twi089, Twi294

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* Twi295: GEOMETRIC_CURVE_SET containing EDGE_LOOP 'bspline_chain_loop'; exactly TWO EDGE_CURVEs, each on a DISTINCT degree-3 B_SPLINE_CURVE_WITH_KNOTS (4 poles, no internal knots -- an ordinary cubic Bezier arc); e1 poles (0,0,0)-(1,1,0)-(2,1,0)-(3,0,0); e2 poles (3,0,0)-(4,-1,0)-(5,-1,0)-(6,0,0) -- the incoming tangent direction at the shared point ((3,0,0)-(2,1,0) == (1,-1,0)) exactly equals the outgoing tangent direction ((4,-1,0)-(3,0,0) == (1,-1,0)): genuinely G1/tangent-continuous, a real ConcatBSplines candidate, not just two unrelated curves that happen to touch; shared VERTEX_POINT 'mid_bspline_vertex' at (3,0,0) -- degree-2 vertex not used by any other face; ShapeUpgrade_UnifySameDomain (myConcatBSplines mode) should splice the two pole/knot sequences into one concatenated B-spline edge; GEOMETRIC_CURVE_SET IS the model entity -- OCC yields empty; all EDGE_CURVEs ARE wired into EDGE_LOOP; never orphaned */
3HEADER;
4FILE_DESCRIPTION(('Twi295'),'2;1');
5FILE_NAME('Twi295.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=CARTESIAN_POINT('',(1.0,1.0,0.0));
12#3=CARTESIAN_POINT('',(2.0,1.0,0.0));
13#4=CARTESIAN_POINT('',(3.0,0.0,0.0));
14#5=CARTESIAN_POINT('',(4.0,-1.0,0.0));
15#6=CARTESIAN_POINT('',(5.0,-1.0,0.0));
16#7=CARTESIAN_POINT('',(6.0,0.0,0.0));
17#8=VERTEX_POINT('',#1);
18#9=VERTEX_POINT('mid_bspline_vertex',#4);
19#10=VERTEX_POINT('',#7);
20#11=B_SPLINE_CURVE_WITH_KNOTS('',3,(#1,#2,#3,#4),.UNSPECIFIED.,.F.,.F.,(4,4),(0.0,1.0),.UNSPECIFIED.);
21#12=EDGE_CURVE('',#8,#9,#11,.T.);
22#13=ORIENTED_EDGE('',$,$,#12,.T.);
23#14=B_SPLINE_CURVE_WITH_KNOTS('',3,(#4,#5,#6,#7),.UNSPECIFIED.,.F.,.F.,(4,4),(0.0,1.0),.UNSPECIFIED.);
24#15=EDGE_CURVE('',#9,#10,#14,.T.);
25#16=ORIENTED_EDGE('',$,$,#15,.T.);
26#17=EDGE_LOOP('bspline_chain_loop',(#13,#16));
27#18=GEOMETRIC_CURVE_SET('',(#17));
28#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
29#9051=PRODUCT('Twi295','Twi295','',(#9050));
30#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
31#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
32#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
33#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
34#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
35#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
36#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
37#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
38#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
39#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#18),#9060);
40#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
41ENDSEC;
42END-ISO-10303-21;