Gp191 — Pcurve whose 2D trim parameters literally collapse to a point (w1==w2) on a real, non-degenerate 3D edge

§12.2a pcurve (sub-class: `stp-pcurve-trim-range-repair`, PARTIAL, missing subvariant (a): "a pcurve whose 2D trim parameters literally collapse to a point (w1==w2) on an otherwise real, non-degenerate 3D edge — pcurve dropped, edge kept 3D-only")

P3 — cosmetic / metadata-only

geometry

Sources

Description

`CheckPCurves` detects when a pcurve's own 2D parameter range collapses to a single point (w1==w2) and (per the catalog's citation) drops that pcurve, leaving the edge's 3D curve intact but with no 2D representation on that face. Gp007/Gn019/Gs007/Gp028 all present pcurve DOMAIN mismatches (out-of-bounds, periodic-band) but none presents a literal w1==w2 collapsed range. This fixture does: the 3D curve genuinely spans a real 1-unit `LINE` (`edge_positive_length_3d`), but its `PCURVE` (`collapsed_pcurve_edge`) is a UV `LINE` with a zero-magnitude `VECTOR` — its own 2D domain literally has w1==w2 regardless of the 3D edge's real traversal.

Reproducer recipe

`PLANE` host; `EDGE_CURVE` `collapsed_pcurve_edge` between `(0,0,0)` and `(1,0,0)`, 3D curve a real 1-unit `LINE`, wrapped in a `SURFACE_CURVE` with ONE `PCURVE` whose 2D `LINE` has a zero-magnitude `VECTOR`.

Expected kernel behavior

drop the collapsed pcurve, keeping the edge 3D-only on that face.

Notes

**See also**: Gp007, Gn019, Gs007, Gp028 (domain-mismatch siblings). IMPORTANT live finding (honest, not overclaimed, live-verified this worktree, OCP/OCCT 7.8.1): `occt=shape(1)/shape(1)`, `brepcheck.valid=True`, edge[0]'s 3D curve length reads back as exactly `1.0` (the real 3D geometry survives). A direct `BRep_Tool::CurveOnSurface` probe on the resulting edge does NOT come back empty as "pcurve dropped" would predict — it returns a live `Geom2d_Line`. But evaluating that returned curve at parameter `1.0` gives `(1.0, 0.0)`, NOT `(0.0, 0.0)` as the deliberately-collapsed zero-vector construction declared — i.e. OCCT did not keep the contradictory pcurve AND did not literally drop it either; it silently REGENERATED a fresh, correct, non-degenerate 2D representation that supersedes the collapsed one supplied. This is a related but distinct repair strategy from the catalog's literal "`RemoveSinglePCurve`" (drop) claim — the byte-level input pattern is faithfully reproduced and reachable, and OCCT visibly does NOT propagate the contradiction through to the final BRep, but the specific repair outcome observed is "regenerate", not "drop" — recorded honestly. Synonyms: "pcurve trim collapses to point", "w1 equals w2 pcurve range", "zero-extent 2D pcurve real 3D edge", "collapsed pcurve regenerated not dropped", "CheckPCurves point-range repair". Provenance tier: bytes-sufficient.

Expected validation

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

Gp007, Gn019, Gs007, Gp028

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* Gp191: OPEN_SHELL with one ADVANCED_FACE on a PLANE (z=0, normal +Z); FACE_OUTER_BOUND references an EDGE_LOOP with one EDGE_CURVE 'collapsed_pcurve_edge': v_start(0,0,0) -> v_end(1,0,0), 3D curve is a real 1-unit LINE 'edge_positive_length_3d', wrapped in a SURFACE_CURVE whose SOLE PCURVE has a zero-magnitude 2D UV VECTOR -- the pcurve's own trim domain collapses to a single point (w1==w2) regardless of the real 3D traversal; CheckPCurves' w1==w2 -> RemoveSinglePCurve branch IS the mechanism; EDGE_LOOP IS wired into FACE_OUTER_BOUND, ADVANCED_FACE, OPEN_SHELL; never orphaned */
3HEADER;
4FILE_DESCRIPTION(('Gp191'),'2;1');
5FILE_NAME('Gp191.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=CARTESIAN_POINT('',(0.0,0.0,0.0));
16#7=VERTEX_POINT('',#6);
17#8=CARTESIAN_POINT('',(1.0,0.0,0.0));
18#9=VERTEX_POINT('',#8);
19#10=DIRECTION('',(1.0,0.0,0.0));
20#11=VECTOR('',#10,1.0);
21#12=CARTESIAN_POINT('',(0.0,0.0,0.0));
22#13=LINE('edge_positive_length_3d',#12,#11);
23#14=CARTESIAN_POINT('',(0.0,0.0));
24#15=DIRECTION('',(1.0,0.0));
25#16=VECTOR('',#15,0.0);
26#17=LINE('',#14,#16);
27#18=(GEOMETRIC_REPRESENTATION_CONTEXT(2)PARAMETRIC_REPRESENTATION_CONTEXT()REPRESENTATION_CONTEXT('UV','2D'));
28#19=DEFINITIONAL_REPRESENTATION('',(#17),#18);
29#20=PCURVE('',#5,#19);
30#21=SURFACE_CURVE('',#13,(#20),.PCURVE_S1.);
31#22=EDGE_CURVE('collapsed_pcurve_edge',#7,#9,#21,.T.);
32#23=ORIENTED_EDGE('',*,*,#22,.T.);
33#24=EDGE_LOOP('',(#23));
34#25=FACE_OUTER_BOUND('',#24,.T.);
35#26=ADVANCED_FACE('',(#25),#5,.T.);
36#27=OPEN_SHELL('',(#26));
37#28=SHELL_BASED_SURFACE_MODEL('',(#27));
38#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
39#9051=PRODUCT('Gp191','Gp191','',(#9050));
40#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
41#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
42#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
43#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
44#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
45#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
46#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
47#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
48#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
49#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#28),#9060);
50#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
51ENDSEC;
52END-ISO-10303-21;