Gp195 — Composite curve whose segments are listed out of connected order, in the container where the reorder repair is observable

§12.2a pcurve (sub-class: `stp-compcurve-reorder`)

P3 — cosmetic / metadata-only

geometry

Sources

Description

A `COMPOSITE_CURVE` traces the unit square with four `COMPOSITE_CURVE_SEGMENT`s, but lists them A, C, B, D — the top edge sits between the bottom edge and the right edge, so successive entries in the list do not follow on from one another, and the permutation is neither the identity nor a cyclic rotation (which on a closed wire would be a mere choice of starting point). Every segment's parent curve is a genuinely BOUNDED curve — a degree-1 `B_SPLINE_CURVE_WITH_KNOTS` over a finite [0,1] domain — so each yields a real finite edge, unlike the infinite-parameter segments a bare `LINE` produces. The composite curve is the sole element of the shape representation's own curve set, so it is a real translation root, not an orphan.

Reproducer recipe

four `B_SPLINE_CURVE_WITH_KNOTS` of degree 1, knots `(0.0,1.0)`, multiplicities `(2,2)`: `seg_a_bottom` (0,0,0)→(1,0,0), `seg_b_right` (1,0,0)→(1,1,0), `seg_c_top` (1,1,0)→(0,1,0), `seg_d_left` (0,1,0)→(0,0,0); each wrapped in `COMPOSITE_CURVE_SEGMENT(.CONTINUOUS.,.T.,#crv)`; then `COMPOSITE_CURVE('composite_curve_scrambled_order',(#seg_a,#seg_c,#seg_b,#seg_d),.F.)` — note the A, C, B, D order — inside `GEOMETRIC_CURVE_SET('gp195_composite_set',(#composite))` in a `MANIFOLD_SURFACE_SHAPE_REPRESENTATION`.

Expected kernel behavior

detect that the segment list is not in connected sequence, reorder the collected segments algorithmically before assembling them, log that the disorder was repaired, and emit a single wire — rather than building a disjoint or self-crossing wire in list order.

Notes

**See also**: Gp176 (byte-genuine disordered composite curve in the container where the repair cannot be observed — this entry is its observable counterpart, not a duplicate), Twi007, Twi028, Twi038 (`EDGE_LOOP` edge-list scrambles, a different translation path), Ad137, Gp188 (composite-curve siblings). Live-verified (2026-07-31, this worktree, OCP/OCCT 7.8.1): the transfer check list carries exactly one message, the warning "Segments were disordered; fixed" — the literal string emitted when the reorder status comes back set — and the transfer yields ONE wire of 4 edges (8 raw vertices). Perturbation control (byte-level A/B): re-listing the same four unchanged segment entities in their connected order A, B, C, D — a single-token edit to the segment list, nothing else — makes the warning disappear entirely while the resulting topology is identical (1 wire, 4 edges, 8 vertices, zero check messages). The message is therefore caused by the segment ORDER alone, which is exactly what Gp176's own control could not establish, because in Gp176's configuration both orders produced the identical empty signature. Synonyms: "segments were disordered fixed", "composite curve segments out of sequence", "composite curve reorder", "successive segments do not follow on", "wire assembled from scrambled segments". Provenance tier: bytes-sufficient.

Expected validation

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

Byte assertions

Tier-3 assertions

Cross-references

Gp176, Twi007, Twi028, Twi038, Ad137, Gp188

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* Gp195: GEOMETRIC_CURVE_SET (the shape representation's own item, a real translation root) whose sole element is 'composite_curve_scrambled_order', a COMPOSITE_CURVE of FOUR COMPOSITE_CURVE_SEGMENTs tracing the unit square (seg_a_bottom, seg_b_right, seg_c_top, seg_d_left, each a degree-1 B_SPLINE_CURVE_WITH_KNOTS with a finite [0,1] domain so every segment yields a real bounded edge) but LISTED in the order A, C, B, D -- successive entries in the list do not follow on from one another, and the permutation is neither the identity nor a cyclic rotation. The segment-reordering pass that runs over the collected segments before the wire is assembled IS the mechanism under test; the COMPOSITE_CURVE is an element of the root GEOMETRIC_CURVE_SET, the one call site that reaches that pass, never orphaned */
3HEADER;
4FILE_DESCRIPTION(('Gp195'),'2;1');
5FILE_NAME('Gp195.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,0.0,0.0));
12#3=B_SPLINE_CURVE_WITH_KNOTS('seg_a_bottom',1,(#1,#2),.UNSPECIFIED.,.F.,.F.,(2,2),(0.0,1.0),.UNSPECIFIED.);
13#4=CARTESIAN_POINT('',(1.0,0.0,0.0));
14#5=CARTESIAN_POINT('',(1.0,1.0,0.0));
15#6=B_SPLINE_CURVE_WITH_KNOTS('seg_b_right',1,(#4,#5),.UNSPECIFIED.,.F.,.F.,(2,2),(0.0,1.0),.UNSPECIFIED.);
16#7=CARTESIAN_POINT('',(1.0,1.0,0.0));
17#8=CARTESIAN_POINT('',(0.0,1.0,0.0));
18#9=B_SPLINE_CURVE_WITH_KNOTS('seg_c_top',1,(#7,#8),.UNSPECIFIED.,.F.,.F.,(2,2),(0.0,1.0),.UNSPECIFIED.);
19#10=CARTESIAN_POINT('',(0.0,1.0,0.0));
20#11=CARTESIAN_POINT('',(0.0,0.0,0.0));
21#12=B_SPLINE_CURVE_WITH_KNOTS('seg_d_left',1,(#10,#11),.UNSPECIFIED.,.F.,.F.,(2,2),(0.0,1.0),.UNSPECIFIED.);
22#13=COMPOSITE_CURVE_SEGMENT(.CONTINUOUS.,.T.,#3);
23#14=COMPOSITE_CURVE_SEGMENT(.CONTINUOUS.,.T.,#6);
24#15=COMPOSITE_CURVE_SEGMENT(.CONTINUOUS.,.T.,#9);
25#16=COMPOSITE_CURVE_SEGMENT(.CONTINUOUS.,.T.,#12);
26#17=COMPOSITE_CURVE('composite_curve_scrambled_order',(#13,#15,#14,#16),.F.);
27#18=GEOMETRIC_CURVE_SET('gp195_composite_set',(#17));
28#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
29#9051=PRODUCT('Gp195','Gp195','',(#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;