Gp187 — Ill-conditioned (highly non-uniform) pcurve knot spacing (`sew-pcurve-parameter-desync-repair`, PARTIAL, subvariant: arc-length reparametrization trigger)

§12.2a pcurve (sub-class: SameParameter repair, ill-conditioned knot-ratio subvariant — `sew-pcurve-parameter-desync-repair`)

P3 — cosmetic / metadata-only

geometry

Sources

Sender

deduced — OCCT uncovered-class sweep, work packet D2.

Description

A `PLANE`-hosted edge's 3D curve is a plain `LINE` from `(0,0,0)` to `(1,0,0)`, uniformly parametrized over `[0,1]`. Its `PCURVE` is a degree-3 `B_SPLINE_CURVE_WITH_KNOTS` with 7 non-collinear control points tracing a gentle S-wiggle from `(0,0)` to `(1,0)` in UV — but the interior knot vector is `(0.0001, 0.0002, 0.0003)`: three knots crammed into the first three ten-thousandths of the parameter range, leaving a single `~0.9997`-wide span for the rest of the curve. The smallest:largest knot-interval ratio is roughly 1:10000 — the "severely non-uniform (ill-conditioned) knot spacing" signature the class description says defeats a polynomial-domain `SameParameter` approximation and forces curvilinear (arc-length) reparametrization.

Reproducer recipe

3D `LINE` `(0,0,0)`→`(1,0,0)`, domain `[0,1]`; `PCURVE` degree-3 B-spline, 7 control points, knot multiplicities `(4,1,1,1,4)`, knots `(0.0, 0.0001, 0.0002, 0.0003, 1.0)`.

Expected kernel behavior

`BRepLib::SameParameter` detects the ill-conditioned knot ratio and reparametrizes by arc length rather than attempting a direct polynomial-domain approximation that would be numerically unstable at that scale.

Notes

**See also**: Gp040 (this class's prior witness — a plain positional pcurve/3D-curve displacement, a different input shape from this fixture's knot-ratio ill-conditioning). This fixture covers the "ill-conditioned knot-ratio arc-length reparametrization" subvariant. **Scope note (evidence-based, honest deferral)**: the class is missing 3 of 4 subvariants; the packet asked for 2 of them. The OTHER missing subvariant ("a pcurve needing the relaxed second smoothing attempt after the first C0→C1 upgrade doesn't fully resolve, with a deliberate regression so the revert-on-regression path fires") requires distinguishing, from outside, WHICH internal retry branch `BRepLib::SameParameter` takes — no counter or diagnostic enum for "first pass" vs. "second, more relaxed pass" is exposed through OCCT's public API, so a STEP-input-only fixture cannot be verified (rather than merely asserted) to hit that specific branch instead of the ordinary single-pass smoothing Gp040 already demonstrates. Rather than ship an unverifiable duplicate of Gp040 under a different subvariant label, that item is deferred to `BACKLOG.md` with this same reasoning. Only this one new fixture (of the requested 2) ships from this class in this wave.

Expected validation

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

Byte assertions

Tier-3 assertions

Cross-references

Gp040

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* Gp187: PLANE-hosted edge: 3D LINE (0,0,0)->(1,0,0), uniform domain [0,1]. PCURVE: degree-3 B-spline, 7 non-collinear control points tracing a gentle S-wiggle (0,0)->(1,0) in UV, interior knots (0.0001,0.0002,0.0003) -- smallest:largest knot-interval ratio ~1:10000, ill-conditioned spacing that defeats polynomial-domain SameParameter approximation and forces arc-length (curvilinear) reparametrization */
3HEADER;
4FILE_DESCRIPTION(('Gp187'),'2;1');
5FILE_NAME('Gp187.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('',(1.0,0.0,0.0));
18#9=VERTEX_POINT('',#7);
19#10=VERTEX_POINT('',#8);
20#11=DIRECTION('',(1.0,0.0,0.0));
21#12=VECTOR('',#11,1.0);
22#13=LINE('',#7,#12);
23#14=CARTESIAN_POINT('',(0.0,0.0));
24#15=CARTESIAN_POINT('',(0.15,0.08));
25#16=CARTESIAN_POINT('',(0.3,-0.06));
26#17=CARTESIAN_POINT('',(0.5,0.05));
27#18=CARTESIAN_POINT('',(0.7,-0.05));
28#19=CARTESIAN_POINT('',(0.85,0.06));
29#20=CARTESIAN_POINT('',(1.0,0.0));
30#21=B_SPLINE_CURVE_WITH_KNOTS('gp187_ill_conditioned_pcurve',3,(#14,#15,#16,#17,#18,#19,#20),.UNSPECIFIED.,.F.,.F.,(4,1,1,1,4),(0.0,0.0001,0.0002,0.0003,1.0),.UNSPECIFIED.);
31#22=DEFINITIONAL_REPRESENTATION('gp187_def',(#21),#6);
32#23=PCURVE('gp187_uv',#5,#22);
33#24=SURFACE_CURVE('gp187_sc',#13,(#23),.PCURVE_S1.);
34#25=EDGE_CURVE('gp187_edge',#9,#10,#24,.T.);
35#26=ORIENTED_EDGE('',$,$,#25,.T.);
36#27=EDGE_LOOP('',(#26));
37#28=FACE_OUTER_BOUND('',#27,.T.);
38#29=ADVANCED_FACE('',(#28),#5,.T.);
39#30=OPEN_SHELL('',(#29));
40#31=SHELL_BASED_SURFACE_MODEL('',(#30));
41#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
42#9051=PRODUCT('Gp187','Gp187','',(#9050));
43#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
44#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
45#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
46#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
47#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
48#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
49#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
50#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
51#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
52#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#31),#9060);
53#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
54ENDSEC;
55END-ISO-10303-21;