Ad137 — COMPOSITE_CURVE with one numerically degenerate segment (non-monotonic B-spline knots): segment-dropped-not-whole-curve-aborted catch site

§12.11 adversarial (sub-class: `stp-transfer-exception-to-fail`, PARTIAL, narrow breadth)

P3 — cosmetic / metadata-only

adversarial

Sources

Description

`StepToTopoDS_TranslateCompositeCurve::Init` wraps EACH segment's own 3D-curve/pcurve conversion in its own try/catch; a segment whose underlying geometry throws during construction (as opposed to merely being disconnected from its neighbor — Gp034/Gp188's already-covered connectivity-gap warning path) should be dropped, letting the rest of the composite curve's segments — and the containing face — still translate. This fixture's `COMPOSITE_CURVE` has two segments: `good_composite_segment_line` (an ordinary `LINE`, genuinely constructible) and `degenerate_composite_segment_bspline` (a `B_SPLINE_CURVE_WITH_KNOTS` whose knot vector `(1.0, 0.5, 2.0)` is NOT monotonically non-decreasing — schema-legal Part-21 bytes, but numerically invalid for `Geom_BSplineCurve`'s constructor, which requires a non-decreasing knot sequence).

Reproducer recipe

`ADVANCED_FACE` on a `PLANE`; sole boundary is a self-loop `EDGE_CURVE` whose 3D geometry is a `SURFACE_CURVE` wrapping a `COMPOSITE_CURVE` of two `COMPOSITE_CURVE_SEGMENT`s (one good `LINE`, one non-monotonic-knot `B_SPLINE_CURVE_WITH_KNOTS`) — mirrors Gp188's proven-working structural pattern (segments reference base curves directly, not `TRIMMED_CURVE`-wrapped; the `COMPOSITE_CURVE` itself wrapped in `SURFACE_CURVE`+`PCURVE`, not used bare as `EDGE_CURVE.edge_geometry`).

Expected kernel behavior

drop the bad segment's contribution via the per-segment catch, letting the whole face still translate (`occt=shape(1)`) rather than aborting the whole read.

Notes

**See also**: Ad043, Xp008 (coarser-granularity catch sites for this same task-brief family), Gp034, Gp188 (connectivity-gap sibling, a DIFFERENT defect — disconnection, not a throwing segment). Live-verified (this worktree, OCP/OCCT 7.8.1): reads to completion without aborting, `TransferRoots()==1`, `OneShape()` not null, `occt=shape(1)/shape(1)`, `shape_null=False`, `n_faces_total=1` — matching Gp188's own pre-existing "`n_edges_total==0` despite `n_faces_total==1`" tier-3 signature for this single-self-loop `COMPOSITE_CURVE`-edge structural family (confirmed via direct read this is a known, established, ACCEPTED pattern for this construction style in this corpus — see Gp188's own notes — not a new concern introduced here). A prior variant of this fixture used `TRIMMED_CURVE`-wrapped segments (Gp063's pattern) instead of Gp188's plain-LINE-segment style, and used the `COMPOSITE_CURVE` bare as `EDGE_CURVE.edge_geometry` instead of Gp188's `SURFACE_CURVE`+`PCURVE` wrapper — both prior variants ALSO read as `shape(1)`/non-null, so the exact sub-pattern choice does not appear load-bearing for reachability; this version follows Gp188's own proven convention for consistency. Synonyms: "composite curve segment throws", "per-segment try catch composite curve", "non-monotonic knot vector segment", "segment dropped not curve aborted", "TranslateCompositeCurve per-segment catch". Provenance tier: bytes-sufficient.

Expected validation

occt=shape(1)/shape(1) gmsh=shape(1) 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

Ad043, Xp008, Gp034, Gp188, Gp063

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* Ad137: ADVANCED_FACE on a PLANE (z=0); its sole boundary is a self-loop EDGE_CURVE whose 3D geometry is a SURFACE_CURVE wrapping a COMPOSITE_CURVE ('mixed_segment_composite_curve') of TWO COMPOSITE_CURVE_SEGMENTs: good_composite_segment_line (an ordinary LINE, genuinely constructible) and degenerate_composite_segment_bspline (a B_SPLINE_CURVE_WITH_KNOTS whose knot vector (1.0,0.5,2.0) is NOT monotonically non-decreasing -- schema-legal bytes, numerically invalid geometry that throws Standard_ConstructionError when Geom_BSplineCurve actually tries to construct it); StepToTopoDS_TranslateCompositeCurve::Init's per-segment try/catch IS the mechanism under test -- the bad segment should be dropped, not the whole composite curve/edge/face aborted; EDGE_CURVE IS wired into FACE_OUTER_BOUND, ADVANCED_FACE, OPEN_SHELL; never orphaned */
3HEADER;
4FILE_DESCRIPTION(('Ad137'),'2;1');
5FILE_NAME('Ad137.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=VERTEX_POINT('',#7);
18#9=DIRECTION('',(1.0,0.0,0.0));
19#10=VECTOR('',#9,1.0);
20#11=LINE('good_composite_segment_line',#7,#10);
21#12=CARTESIAN_POINT('',(1.0,0.0,0.0));
22#13=CARTESIAN_POINT('',(1.5,0.3,0.0));
23#14=CARTESIAN_POINT('',(2.0,0.0,0.0));
24#15=B_SPLINE_CURVE_WITH_KNOTS('degenerate_composite_segment_bspline',2,(#12,#13,#14),.UNSPECIFIED.,.F.,.F.,(3,3),(1.0,0.5,2.0),.UNSPECIFIED.);
25#16=COMPOSITE_CURVE_SEGMENT(.CONTINUOUS.,.T.,#11);
26#17=COMPOSITE_CURVE_SEGMENT(.CONTINUOUS.,.T.,#15);
27#18=COMPOSITE_CURVE('mixed_segment_composite_curve',(#16,#17),.F.);
28#19=CARTESIAN_POINT('',(0.0,0.0));
29#20=DIRECTION('',(1.0,0.0));
30#21=VECTOR('',#20,2.0);
31#22=LINE('',#19,#21);
32#23=DEFINITIONAL_REPRESENTATION('',(#22),#6);
33#24=PCURVE('',#5,#23);
34#25=SURFACE_CURVE('',#18,(#24),.PCURVE_S1.);
35#26=EDGE_CURVE('',#8,#8,#25,.T.);
36#27=ORIENTED_EDGE('',$,$,#26,.T.);
37#28=EDGE_LOOP('',(#27));
38#29=FACE_OUTER_BOUND('',#28,.T.);
39#30=ADVANCED_FACE('',(#29),#5,.T.);
40#31=OPEN_SHELL('',(#30));
41#32=SHELL_BASED_SURFACE_MODEL('',(#31));
42#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
43#9051=PRODUCT('Ad137','Ad137','',(#9050));
44#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
45#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
46#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
47#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
48#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
49#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
50#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
51#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
52#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
53#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#32),#9060);
54#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
55ENDSEC;
56END-ISO-10303-21;